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

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.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source