by typescript-eslint · @typescript-eslint/eslint-plugin
Everything in recommended plus more opinionated rules that also catch bugs. Meant for teams comfortable with TypeScript.
pnpm add -D eslint typescript-eslint// eslint.config.js
import tseslint from "typescript-eslint";
export default [
...tseslint.configs.strict,
];| 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/prefer-literal-enum-member | error | In ESLint, Oxlint, Biome | 76.5M | +52.6% |
| typescript/no-extraneous-class | error | In ESLint, Oxlint, Biome | 75.7M | +52.7% |
| typescript/no-invalid-void-type | error | In ESLint, Oxlint, Biome | 75.4M | +53.2% |
| typescript/no-non-null-assertion | error | In ESLint, Oxlint, Biome | 73.8M | +52.8% |
| typescript/no-useless-constructor | error | In ESLint, Biome | 51.9M | +26.1% |
| typescript/no-non-null-asserted-nullish-coalescing | error | In ESLint, Oxlint | 48.5M | +32.5% |
| typescript/unified-signatures | error | In ESLint, Oxlint, Biome | 47.8M | +32.3% |
| typescript/no-dynamic-delete | error | In ESLint, Oxlint, Biome | 47.7M | +32.3% |