1.3.2 • Published 9 months ago

suppress-ts-errors v1.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

suppress-ts-errors

CI

Cli tool to add comments to suppress typescript type errors.
Add @ts-expect-error or @ts-ignore comments to all locations where errors are occurring.
Support for .ts, .tsx, .vue.

Kapture 2022-05-01 at 15 35 50

🚀 Usage

Running scripts to .ts and .tsx

Run the script in the directory where tsconfig.json is located.

$ npx suppress-ts-errors

Running scripts to .vue

When targeting vue sfc, the path of the vue component must be specified with the glob pattern.
Notice: It does not support commenting out type errors in the <template> section of vue, only the <script> section.

$ npx suppress-ts-errors vue src/**/*.vue

options

optiondefaultdescription
-t, --tsconfig-path./tsconfig.jsonPath to tsconfig.json.
-c, --comment-type1Choice of inserted comment type. 1 is @ts-expect-error, 2 is @ts-ignore.
-e, --error-codetrueAdd error code to comment. e.g. TS2345.

✨ Contributing

Contributions are welcome 🎉
We accept contributions via Pull Requests. See this guide on how to make a contribution.

📄 License

suppress-ts-errors is available under the MIT License.

1.3.2

9 months ago

1.3.1

9 months ago

1.3.0

10 months ago

1.2.0

2 years ago

1.1.1

2 years ago

1.0.13

2 years ago

1.1.0

2 years ago

1.0.12

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.4

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago