https://github.com/zardoy/vscode-disable-ts-errors
Have complete control over TypeScript / JavaScript diagnostics in your IDE
https://github.com/zardoy/vscode-disable-ts-errors
Last synced: about 1 year ago
JSON representation
Have complete control over TypeScript / JavaScript diagnostics in your IDE
- Host: GitHub
- URL: https://github.com/zardoy/vscode-disable-ts-errors
- Owner: zardoy
- License: mit
- Created: 2023-04-10T11:27:28.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-14T13:28:54.000Z (almost 3 years ago)
- Last Synced: 2025-02-13T03:41:23.108Z (over 1 year ago)
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=zardoy.disable-ts-errors
- Size: 137 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
# VS Code Disable TS Errors
Disable / configure TypeScript diagnostics.
## Usage examples
### Toggle
This was mainly created for easier reading of just-cloned repos that don't have dependencies installed yet (so you don't have bunch of red lines). That's why there is statusbar item that can toggle `disableTsErrors.disableAllErrors` setting.
### Per-diagnostic configuration
For projects without typechecking (without jsconfig, js only) you can use `disableTsErrors.customizations` to disable specific diagnostics, similar how you can override eslint rules reporting with `eslint.rules.customizations`.
Also you can use this setting to disable refactoring hints, such as suggestions for unused variables. Or you can change severity of some errors to warning or hint.
### Using with tsc-silent
If you still really need to disable specific errors in type-checked projects for some reason, you should use this along with [tsc-silent](https://www.npmjs.com/package/tsc-silent). Support for `tsc-silent` is enabled out of the box when the file with the name `tsc-silent.config.js` is found in the root (can be changed via setting).