Skip to content
This repository was archived by the owner on Sep 19, 2025. It is now read-only.

Adds diagnosticCodesToIgnore for tsLinter

Choose a tag to compare

@tmcw tmcw released this 10 Sep 15:05
· 77 commits to main since this release
1dd3222

This new option lets you ignore expected lint errors by listing their error codes.

Example:

tsLinter({
    diagnosticCodesToIgnore: [
        2354, // tslib not found
		2307, // Cannot find module 'xxx' or its corresponding type declarations
		1375, // 'await' expressions are only allowed at the top level of a file when that file is a module
    ],
}),

Thanks @KABBOUCHI for this contribution!