---
title: "@typescript-eslint/ban-tslint-comment"
description: "Disallow `// tslint:disable` and `// tslint:enable` comments"
# Generated by src/codegen/lint-rule-docs.ts. Do not edit below this line.
plugin: "typescript"
aliases: ["typescript-eslint/ban-tslint-comment","typescript/ban-tslint-comment"]
kind: "suggestion"
category: "style"
default: "off"
fixable: "yes"
typeAware: false
deprecated: false
---

TSLint is no longer maintained. Once a project has moved off it, its `tslint:disable` and `tslint:enable` comments do nothing, but they look like they still turn something off.

`--fix` removes the comment.

{/* Generated by src/codegen/lint-rule-docs.ts. Do not edit this section. */}

## Configure

Off by default. To turn it on:

```toml bunfig.toml
[lint.rules]
"@typescript-eslint/ban-tslint-comment" = "error" # or "warn"
```

{/* End of the generated section. */}

## Examples

Reported:

{/* bad {"count": 2} */}
```ts
/* tslint:disable */
const port = 3000;
console.log(port); // tslint:disable-line:no-console
```

Not reported:

{/* good */}
```ts
const port = 3000;
console.log(port); // the tslint config is gone
```
