不允许使用`//tslint:<rule-flag>`格式的注释。
规则配置
// 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...