typescript-eslint
103 rules typescript-eslint@8.70.1
Complete effective rule inventory.
Rules
No enabled typescript-eslint rules match this search.
-
@typescript-eslint/adjacent-overload-signaturesRequire that function overload signatures be consecutive
: error in All typescript-eslint contexts -
@typescript-eslint/array-typeRequire consistently using either
T[]orArray<T>for arrays: error in All typescript-eslint contexts -
@typescript-eslint/await-thenableDisallow awaiting a value that is not a Thenable
: error in TypeScript source, React source, JavaScript source, React JavaScript source, TypeScript tests, Bun tests, Playwright end-to-end tests, Design-system React source -
@typescript-eslint/ban-ts-commentDisallow
@ts-<directive>comments or require descriptions after directives: error in All typescript-eslint contexts -
@typescript-eslint/ban-tslint-commentDisallow
// tslint:<rule-flag>comments: error in All typescript-eslint contexts -
@typescript-eslint/class-literal-property-styleEnforce that literals on classes are exposed in a consistent style
: error in All typescript-eslint contexts -
@typescript-eslint/consistent-generic-constructorsEnforce specifying generic type arguments on type annotation or constructor name of a constructor call
: error in All typescript-eslint contexts -
@typescript-eslint/consistent-indexed-object-styleRequire or disallow the
Recordtype: error in All typescript-eslint contexts -
@typescript-eslint/consistent-type-assertionsEnforce consistent usage of type assertions
: error in TypeScript source, React source, JavaScript source, React JavaScript source, Syntax-only tool configuration, Design-system React source -
@typescript-eslint/consistent-type-definitionsEnforce type definitions to consistently use either
interfaceortype: error in All typescript-eslint contexts -
@typescript-eslint/consistent-type-exportsEnforce consistent usage of type exports
: error in TypeScript source, React source, JavaScript source, React JavaScript source, TypeScript tests, Bun tests, Playwright end-to-end tests, Design-system React source -
@typescript-eslint/consistent-type-importsEnforce consistent usage of type imports
: error in All typescript-eslint contexts -
@typescript-eslint/default-param-lastEnforce default parameters to be last
: error in All typescript-eslint contexts -
@typescript-eslint/dot-notationEnforce dot notation whenever possible
: error in TypeScript source, React source, JavaScript source, React JavaScript source, TypeScript tests, Bun tests, Playwright end-to-end tests, Design-system React source -
@typescript-eslint/member-orderingRequire a consistent member declaration order
: error in All typescript-eslint contexts -
@typescript-eslint/naming-conventionEnforce naming conventions for everything across a codebase
: error in All typescript-eslint contexts -
@typescript-eslint/no-array-constructorDisallow generic
Arrayconstructors: error in All typescript-eslint contexts -
@typescript-eslint/no-array-deleteDisallow using the
deleteoperator on array values: error in TypeScript source, React source, JavaScript source, React JavaScript source, TypeScript tests, Bun tests, Playwright end-to-end tests, Design-system React source -
@typescript-eslint/no-base-to-stringRequire
.toString()and.toLocaleString()to only be called on objects which provide useful information when stringified: error in TypeScript source, React source, JavaScript source, React JavaScript source, TypeScript tests, Bun tests, Playwright end-to-end tests, Design-system React source -
@typescript-eslint/no-confusing-non-null-assertionDisallow non-null assertion in locations that may be confusing
: error in All typescript-eslint contexts -
@typescript-eslint/no-confusing-void-expressionRequire expressions of type void to appear in statement position
: error in TypeScript source, React source, JavaScript source, React JavaScript source, TypeScript tests, Bun tests, Playwright end-to-end tests, Design-system React source -
@typescript-eslint/no-deprecatedDisallow using code marked as
@deprecated: error in TypeScript source, React source, JavaScript source, React JavaScript source, TypeScript tests, Bun tests, Playwright end-to-end tests, Design-system React source -
@typescript-eslint/no-duplicate-enum-valuesDisallow duplicate enum member values
: error in All typescript-eslint contexts -
@typescript-eslint/no-duplicate-type-constituentsDisallow duplicate constituents of union or intersection types
: error in TypeScript source, React source, JavaScript source, React JavaScript source, TypeScript tests, Bun tests, Playwright end-to-end tests, Design-system React source -
@typescript-eslint/no-dynamic-deleteDisallow using the
deleteoperator on computed key expressions: error in All typescript-eslint contexts -
@typescript-eslint/no-empty-functionDisallow empty functions
: error in All typescript-eslint contexts -
@typescript-eslint/no-empty-object-typeDisallow accidentally using the "empty object" type
: error in All typescript-eslint contexts -
@typescript-eslint/no-explicit-anyDisallow the
anytype: error in All typescript-eslint contexts -
@typescript-eslint/no-extra-non-null-assertionDisallow extra non-null assertions
: error in All typescript-eslint contexts -
@typescript-eslint/no-extraneous-classDisallow classes used as namespaces
: error in All typescript-eslint contexts -
@typescript-eslint/no-floating-promisesRequire Promise-like statements to be handled appropriately
: error in TypeScript source, React source, JavaScript source, React JavaScript source, TypeScript tests, Bun tests, Playwright end-to-end tests, Design-system React source -
@typescript-eslint/no-for-in-arrayDisallow iterating over an array with a for-in loop
: error in TypeScript source, React source, JavaScript source, React JavaScript source, TypeScript tests, Bun tests, Playwright end-to-end tests, Design-system React source -
@typescript-eslint/no-generated-empty-object-typeDisallow type operations that resolve to the "empty object" type
: error in TypeScript source, React source, JavaScript source, React JavaScript source, TypeScript tests, Bun tests, Playwright end-to-end tests, Design-system React source -
@typescript-eslint/no-implied-evalDisallow the use of
eval()-like functions: error in TypeScript source, React source, JavaScript source, React JavaScript source, TypeScript tests, Bun tests, Playwright end-to-end tests, Design-system React source -
@typescript-eslint/no-import-type-side-effectsEnforce the use of top-level import type qualifier when an import only has specifiers with inline type qualifiers
: error in All typescript-eslint contexts -
@typescript-eslint/no-invalid-void-typeDisallow
voidtype outside of generic or return types: error in All typescript-eslint contexts -
@typescript-eslint/no-meaningless-void-operatorDisallow the
voidoperator except when used to discard a value: error in TypeScript source, React source, JavaScript source, React JavaScript source, TypeScript tests, Bun tests, Playwright end-to-end tests, Design-system React source -
@typescript-eslint/no-misused-newEnforce valid definition of
newandconstructor: error in All typescript-eslint contexts -
@typescript-eslint/no-misused-promisesDisallow Promises in places not designed to handle them
: error in TypeScript source, React source, JavaScript source, React JavaScript source, TypeScript tests, Bun tests, Playwright end-to-end tests, Design-system React source -
@typescript-eslint/no-misused-spreadDisallow using the spread operator when it might cause unexpected behavior
: error in TypeScript source, React source, JavaScript source, React JavaScript source, TypeScript tests, Bun tests, Playwright end-to-end tests, Design-system React source