by typescript-eslint · @typescript-eslint/eslint-plugin
Consistency rules for TypeScript that do not change program behaviour, such as preferring interfaces or array type syntax.
npm install -D eslint typescript-eslint// eslint.config.js
import tseslint from "typescript-eslint";
export default [
...tseslint.configs.stylistic,
];| Rule | Severity | Linters | Reach | Trend |
|---|---|---|---|---|
| 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% |
| 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/adjacent-overload-signatures In ESLint, Oxlint, Biome75.2M reach · +52.9% | error | In ESLint, Oxlint, Biome | 75.2M | +52.9% |
| typescript/prefer-function-type In ESLint, Oxlint, Biome75.2M reach · +52.9% | error | In ESLint, Oxlint, Biome | 75.2M | +52.9% |
| typescript/consistent-type-assertions In ESLint, Oxlint50.7M reach · +29.2% | error | In ESLint, Oxlint | 50.7M | +29.2% |
| typescript/consistent-type-definitions In ESLint, Oxlint, Biome47.4M reach · +32.2% | error | In ESLint, Oxlint, Biome | 47.4M | +32.2% |
| typescript/no-inferrable-types In ESLint, Oxlint, Biome46.7M reach · +31.9% | error | In ESLint, Oxlint, Biome | 46.7M | +31.9% |
| typescript/prefer-for-of In ESLint, Oxlint, Biome46.7M reach · +31.9% | error | In ESLint, Oxlint, Biome | 46.7M | +31.9% |
| typescript/class-literal-property-style In ESLint, Oxlint46.7M reach · +31.9% | error | In ESLint, Oxlint | 46.7M | +31.9% |
| typescript/array-type In ESLint, Oxlint, Biome46.6M reach · +31.9% | error | In ESLint, Oxlint, Biome | 46.6M | +31.9% |
| typescript/consistent-indexed-object-style In ESLint, Oxlint, Biome46.6M reach · +31.9% | error | In ESLint, Oxlint, Biome | 46.6M | +31.9% |
| typescript/ban-tslint-comment In ESLint, Oxlint46.6M reach · +31.9% | error | In ESLint, Oxlint | 46.6M | +31.9% |
| typescript/consistent-generic-constructors In ESLint, Oxlint46.6M reach · +31.9% | error | In ESLint, Oxlint | 46.6M | +31.9% |
| typescript/no-confusing-non-null-assertion In ESLint, Oxlint46.6M reach · +31.9% | error | In ESLint, Oxlint | 46.6M | +31.9% |
| typescript/no-empty-function In ESLint, Biome46.4M reach · +27.7% | error | In ESLint, Biome | 46.4M | +27.7% |