A TypeScript plugin to silence specific diagnostic codes in your project.
Install the package from npm:
npm install --save-dev ts-silence-diagnostics
In your tsconfig.json
, add the plugin configuration:
{
"compilerOptions": {
"plugins": [
{
"name": "ts-silence-diagnostics",
"ignoredCodes": [1234]
}
]
}
}
Replace [1234]
with an array of diagnostic codes you want to ignore.