How to instruct TypeScript tsc to disregard @ts-ignore and @ts-nocheck directives?

Viewed 172

I am looking for a tsconfig.json setting and/or tsc command-line option to make TypeScript disregard all @ts-ignore and @ts-nocheck annotations in code; meaning, it should check code as normal, and not ignore errors normally suppressed by these directives.

Why: So that tsc can be run as a Continuous Integration check and will not allow this "lazy" use of bypassing TypeScript by just adding @ts-ignore instead of properly fixing the root cause of type errors.

0 Answers
Related