Skip to content

typescript/ban-tslint-comment Style

🛠️ An auto-fix is available for this rule.

What it does

This rule disallows tslint:<rule-flag> comments

Why is this bad?

Useful when migrating from TSLint to ESLint. Once TSLint has been removed, this rule helps locate TSLint annotations

Example

ts
// tslint:disable-next-line
someCode();

How to use

To enable this rule in the CLI or using the config file, you can use:

bash
oxlint --deny typescript/ban-tslint-comment
json
{
  "rules": {
    "typescript/ban-tslint-comment": "error"
  }
}

References

Released under the MIT License.