Disallow comments in // tslint:<rule-flag> format.
// code-linter.json5
{
"rules": {
"@typescript-eslint/ban-tslint-comment": "error"
}
} // This is a comment that just happens to mention tslint
/* This is a multiline comment that just happens to mention tslint */
console.log('hello'); // This is a comment that just happens to mention tslint /* tslint:disable */
/* tslint:enable */
/* tslint:disable:rule1 rule2 rule3... */
/* tslint:enable:rule1 rule2 rule3... */
// tslint:disable-next-line
console.log('hello'); // tslint:disable-line
// tslint:disable-next-line:rule1 rule2 rule3... plugin:@typescript-eslint/all
For details about how to configure Code Linter check rules, see Code Linter.