typescript-eslint
103 rules typescript-eslint@8.70.1
Complete effective rule inventory.
Rules
No enabled typescript-eslint rules match this search.
-
@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 -
@typescript-eslint/no-mixed-enumsDisallow enums from having both number and string members
: 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-namespaceDisallow TypeScript namespaces
: error in All typescript-eslint contexts -
@typescript-eslint/no-non-null-asserted-nullish-coalescingDisallow non-null assertions in the left operand of a nullish coalescing operator
: error in All typescript-eslint contexts -
@typescript-eslint/no-non-null-asserted-optional-chainDisallow non-null assertions after an optional chain expression
: error in All typescript-eslint contexts -
@typescript-eslint/no-non-null-assertionDisallow non-null assertions using the
!postfix operator: error in TypeScript source, React source, JavaScript source, React JavaScript source, Syntax-only tool configuration, Design-system React source -
@typescript-eslint/no-redundant-type-constituentsDisallow members of unions and intersections that do nothing or override type information
: 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-require-importsDisallow invocation of
require(): error in All typescript-eslint contexts -
@typescript-eslint/no-shadowDisallow variable declarations from shadowing variables declared in the outer scope
: error in All typescript-eslint contexts -
@typescript-eslint/no-this-aliasDisallow aliasing
this: error in All typescript-eslint contexts -
@typescript-eslint/no-unnecessary-boolean-literal-compareDisallow unnecessary equality comparisons against boolean literals
: 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-unnecessary-conditionDisallow conditionals where the type is always truthy or always falsy
: 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-unnecessary-qualifierDisallow unnecessary namespace qualifiers
: 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-unnecessary-template-expressionDisallow unnecessary template expressions
: 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-unnecessary-type-argumentsDisallow type arguments that are equal to the default
: 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-unnecessary-type-assertionDisallow type assertions that do not change the type of an expression
: 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-unnecessary-type-constraintDisallow unnecessary constraints on generic types
: error in All typescript-eslint contexts -
@typescript-eslint/no-unnecessary-type-conversionDisallow conversion idioms when they do not change the type or value of the expression
: 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-unnecessary-type-parametersDisallow type parameters that aren't used multiple times
: 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-unsafe-argumentDisallow calling a function with a value with type
any: 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-unsafe-assignmentDisallow assigning a value with type
anyto variables and properties: error in TypeScript source, React source, JavaScript source, React JavaScript source, Design-system React source -
@typescript-eslint/no-unsafe-callDisallow calling a value with type
any: 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-unsafe-declaration-mergingDisallow unsafe declaration merging
: error in All typescript-eslint contexts -
@typescript-eslint/no-unsafe-enum-comparisonDisallow comparing an enum value with a non-enum 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-unsafe-function-typeDisallow using the unsafe built-in Function type
: error in All typescript-eslint contexts