redline
MediumType safetylint-suppress

Lint or type check switched off

Lint or type check switched off. eslint-disable switches a check off here.

This is how the comment reads inline, under the flagged line.

Why it matters

Each suppression is a finding someone decided not to fix. They pile up, and the linter stops meaning anything.

What to do

Fix what the check found. If the rule is wrong for the project, change the config once, with a reason.

Examples

Flagged
// eslint-disable-next-line @typescript-eslint/no-explicit-any
Better
(fix the type)

What it catches

It reads a pattern on each line, aware of strings and comments. Languages: Any file. Scope: All files. These cases are the rule's own tests: the first set must be flagged and the second must not.

Flagged

// eslint-disable-next-line
src/app.py
x = f()  # type: ignore
src/app.py
import a  # noqa

Left alone

// disable the button while saving

Research

`@ts-ignore`, `eslint-disable`, bare `# noqa` and `# type: ignore`. A green check stops meaning the thing it checks is true.

Turn it off or change it

In a config file for the CLI, or in the API's rules field:

{
  "rules": {
    "disable": [
      "lint-suppress"
    ],
    "severity": {
      "lint-suppress": "low"
    }
  }
}

Read the source or report a false positive.