by typescript-eslint · @typescript-eslint/eslint-plugin
The recommended set plus the correctness rules that need type information, such as no-floating-promises.
pnpm add -D eslint typescript-eslint// eslint.config.js
import tseslint from "typescript-eslint";
export default [
...tseslint.configs.recommendedTypeChecked,
{ languageOptions: { parserOptions: { projectService: true } } },
];| Rule | Severity | Linters | Reach | Trend |
|---|---|---|---|---|
| typescript/no-duplicate-enum-values | error | In ESLint, Oxlint, Biome | 257.7M | +52.0% |
| typescript/no-non-null-asserted-optional-chain | error | In ESLint, Oxlint, Biome | 257.7M | +52.0% |
| typescript/no-this-alias | error | In ESLint, Oxlint, Biome | 257.7M | +52.0% |
| typescript/prefer-namespace-keyword | error | In ESLint, Oxlint, Biome | 257.7M | +52.0% |
| typescript/no-extra-non-null-assertion | error | In ESLint, Oxlint, Biome | 257.6M | +52.0% |
| typescript/no-misused-new | error | In ESLint, Oxlint, Biome | 257.6M | +52.0% |
| typescript/no-unsafe-declaration-merging | error | In ESLint, Oxlint, Biome | 257.6M | +52.0% |
| typescript/triple-slash-reference | error | In ESLint, Oxlint, Biome | 256.9M | +52.0% |
| typescript/prefer-as-const | error | In ESLint, Oxlint, Biome | 229.6M | +47.3% |
| typescript/no-wrapper-object-types | error | In ESLint, Oxlint, Biome | 229.6M | +47.3% |
| eslint/prefer-const | error | In ESLint, Oxlint, Biome | 221.9M | +34.2% |
| eslint/prefer-rest-params | error | In ESLint, Oxlint, Biome | 218.5M | +34.5% |
| typescript/no-unnecessary-type-constraint | error | In ESLint, Oxlint, Biome | 207.9M | +36.6% |
| typescript/ban-ts-comment | error | In ESLint, Oxlint, Biome | 207.9M | +36.6% |
| typescript/no-explicit-any | error | In ESLint, Oxlint, Biome | 206.7M | +36.7% |
| eslint/no-var | error | In ESLint, Oxlint, Biome | 193.9M | +27.7% |
| eslint/prefer-spread | error | In ESLint, Oxlint, Biome | 190.5M | +27.9% |
| typescript/no-unused-vars | error | In ESLint, Biome | 184.2M | +27.9% |
| typescript/no-array-constructor | error | In ESLint, Biome | 184.1M | +28.1% |
| typescript/no-unused-expressions | error | In ESLint | 183.4M | +28.0% |
| typescript/no-unsafe-function-type | error | In ESLint, Oxlint, Biome | 179.9M | +29.8% |
| typescript/no-empty-object-type | error | In ESLint, Oxlint, Biome | 179.3M | +29.8% |
| typescript/no-namespace | error | In ESLint, Oxlint, Biome | 179.2M | +29.7% |
| typescript/no-require-imports | error | In ESLint, Oxlint, Biome | 176.6M | +29.0% |
| typescript/no-floating-promises | error | In ESLint, Oxlint, Biome | 124.5M | +87.2% |
| typescript/no-array-delete | error | In ESLint, Oxlint, Biome | 123.9M | +87.8% |
| typescript/no-duplicate-type-constituents | error | In ESLint, Oxlint, Biome | 123.9M | +87.8% |
| typescript/no-unsafe-unary-minus | error | In ESLint, Oxlint, Biome | 123.9M | +87.8% |
| typescript/no-redundant-type-constituents | error | In ESLint, Oxlint, Biome | 123.5M | +88.4% |
| typescript/no-implied-eval | error | In ESLint, Oxlint, Biome | 97.4M | +80.8% |
| typescript/no-for-in-array | error | In ESLint, Oxlint, Biome | 95.9M | +82.8% |
| typescript/no-base-to-string | error | In ESLint, Oxlint, Biome | 95.9M | +82.8% |
| typescript/await-thenable | error | In ESLint, Oxlint | 95.9M | +82.8% |
| typescript/restrict-template-expressions | error | In ESLint, Oxlint | 95.9M | +82.8% |
| typescript/unbound-method | error | In ESLint, Oxlint | 95.5M | +83.6% |
| typescript/no-misused-promises | error | In ESLint, Oxlint, Biome | 74.2M | +52.3% |
| typescript/no-unnecessary-type-assertion | error | In ESLint, Oxlint, Biome | 74.2M | +52.3% |
| typescript/no-unsafe-return | error | In ESLint, Oxlint, Biome | 46.2M | +31.3% |
| typescript/only-throw-error | error | In ESLint, Oxlint, Biome | 46.2M | +31.3% |
| typescript/prefer-promise-reject-errors | error | In ESLint, Oxlint, Biome | 46.2M | +31.3% |
| typescript/restrict-plus-operands | error | In ESLint, Oxlint, Biome | 46.2M | +31.3% |
| typescript/no-unsafe-assignment | error | In ESLint, Oxlint | 46.2M | +31.3% |
| typescript/no-unsafe-enum-comparison | error | In ESLint, Oxlint | 46.2M | +31.3% |
| typescript/no-unsafe-member-access | error | In ESLint, Oxlint | 46.2M | +31.3% |
| typescript/no-unsafe-argument | error | In ESLint, Oxlint | 45.8M | +31.7% |
| typescript/no-unsafe-call | error | In ESLint, Oxlint | 45.8M | +31.7% |
| typescript/require-await | error | In ESLint, Oxlint, Biome | 43.8M | +28.9% |