by typescript-eslint · @typescript-eslint/eslint-plugin
Correctness rules for TypeScript code that do not need type information. The usual starting point for TypeScript projects.
npm install -D eslint typescript-eslint// eslint.config.js
import tseslint from "typescript-eslint";
export default [
...tseslint.configs.recommended,
];| Rule | Severity | Linters | Reach | Trend |
|---|---|---|---|---|
| typescript/no-duplicate-enum-values In ESLint, Oxlint, Biome260.7M reach · +52.6% | error | In ESLint, Oxlint, Biome | 260.7M | +52.6% |
| typescript/no-non-null-asserted-optional-chain In ESLint, Oxlint, Biome260.7M reach · +52.6% | error | In ESLint, Oxlint, Biome | 260.7M | +52.6% |
| typescript/no-this-alias In ESLint, Oxlint, Biome260.7M reach · +52.6% | error | In ESLint, Oxlint, Biome | 260.7M | +52.6% |
| typescript/prefer-namespace-keyword In ESLint, Oxlint, Biome260.7M reach · +52.6% | error | In ESLint, Oxlint, Biome | 260.7M | +52.6% |
| typescript/no-extra-non-null-assertion In ESLint, Oxlint, Biome260.7M reach · +52.6% | error | In ESLint, Oxlint, Biome | 260.7M | +52.6% |
| typescript/no-misused-new In ESLint, Oxlint, Biome260.7M reach · +52.6% | error | In ESLint, Oxlint, Biome | 260.7M | +52.6% |
| typescript/no-unsafe-declaration-merging In ESLint, Oxlint, Biome260.7M reach · +52.6% | error | In ESLint, Oxlint, Biome | 260.7M | +52.6% |
| typescript/triple-slash-reference In ESLint, Oxlint, Biome260M reach · +52.6% | error | In ESLint, Oxlint, Biome | 260M | +52.6% |
| typescript/prefer-as-const In ESLint, Oxlint, Biome232.2M reach · +47.9% | error | In ESLint, Oxlint, Biome | 232.2M | +47.9% |
| typescript/no-wrapper-object-types In ESLint, Oxlint, Biome232.2M reach · +47.9% | error | In ESLint, Oxlint, Biome | 232.2M | +47.9% |
| eslint/prefer-const In ESLint, Oxlint, Biome223.9M reach · +34.8% | error | In ESLint, Oxlint, Biome | 223.9M | +34.8% |
| eslint/prefer-rest-params In ESLint, Oxlint, Biome220.5M reach · +35.1% | error | In ESLint, Oxlint, Biome | 220.5M | +35.1% |
| typescript/no-unnecessary-type-constraint In ESLint, Oxlint, Biome209.9M reach · +37.3% | error | In ESLint, Oxlint, Biome | 209.9M | +37.3% |
| typescript/ban-ts-comment In ESLint, Oxlint, Biome209.9M reach · +37.3% | error | In ESLint, Oxlint, Biome | 209.9M | +37.3% |
| typescript/no-explicit-any In ESLint, Oxlint, Biome208.7M reach · +37.3% | error | In ESLint, Oxlint, Biome | 208.7M | +37.3% |
| eslint/no-var In ESLint, Oxlint, Biome195.4M reach · +28.3% | error | In ESLint, Oxlint, Biome | 195.4M | +28.3% |
| eslint/prefer-spread In ESLint, Oxlint, Biome192M reach · +28.5% | error | In ESLint, Oxlint, Biome | 192M | +28.5% |
| typescript/no-unused-vars In ESLint, Biome185.6M reach · +28.5% | error | In ESLint, Biome | 185.6M | +28.5% |
| typescript/no-array-constructor In ESLint, Biome185.6M reach · +28.7% | error | In ESLint, Biome | 185.6M | +28.7% |
| typescript/no-unused-expressions In ESLint184.8M reach · +28.6% | error | In ESLint | 184.8M | +28.6% |
| typescript/no-unsafe-function-type In ESLint, Oxlint, Biome181.4M reach · +30.4% | error | In ESLint, Oxlint, Biome | 181.4M | +30.4% |
| typescript/no-empty-object-type In ESLint, Oxlint, Biome180.8M reach · +30.5% | error | In ESLint, Oxlint, Biome | 180.8M | +30.5% |
| typescript/no-namespace In ESLint, Oxlint, Biome180.7M reach · +30.3% | error | In ESLint, Oxlint, Biome | 180.7M | +30.3% |
| typescript/no-require-imports In ESLint, Oxlint, Biome178.1M reach · +29.7% | error | In ESLint, Oxlint, Biome | 178.1M | +29.7% |