Appearance
This rule disallows tslint:<rule-flag> comments
tslint:<rule-flag>
Useful when migrating from TSLint to ESLint. Once TSLint has been removed, this rule helps locate TSLint annotations
Examples of incorrect code for this rule:
// tslint:disable-next-line someCode();
Examples of correct code for this rule:
someCode();
To enable this rule in the CLI or using the config file, you can use:
oxlint --deny typescript/ban-tslint-comment
{ "rules": { "typescript/ban-tslint-comment": "error" } }
typescript/ban-tslint-comment Style
What it does
This rule disallows
tslint:<rule-flag>
commentsWhy is this bad?
Useful when migrating from TSLint to ESLint. Once TSLint has been removed, this rule helps locate TSLint annotations
Examples
Examples of incorrect code for this rule:
Examples of correct code for this rule:
How to use
To enable this rule in the CLI or using the config file, you can use:
References