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-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 -
@typescript-eslint/no-unsafe-member-accessDisallow member access on a value with type
any: error in TypeScript source, React source, JavaScript source, React JavaScript source, Design-system React source -
@typescript-eslint/no-unsafe-returnDisallow returning a value with type
anyfrom a function: 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-type-assertionDisallow type assertions that narrow a type
: error in TypeScript source, React source, JavaScript source, React JavaScript source, Design-system React source -
@typescript-eslint/no-unsafe-unary-minusRequire unary negation to take a number
: 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-unused-expressionsDisallow unused expressions
: error in All typescript-eslint contexts -
@typescript-eslint/no-unused-varsDisallow unused variables
: error in All typescript-eslint contexts -
@typescript-eslint/no-useless-constructorDisallow unnecessary constructors
: error in All typescript-eslint contexts -
@typescript-eslint/no-useless-default-assignmentDisallow default values that will never be used
: 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-useless-empty-exportDisallow empty exports that don't change anything in a module file
: error in All typescript-eslint contexts -
@typescript-eslint/no-wrapper-object-typesDisallow using confusing built-in primitive class wrappers
: error in All typescript-eslint contexts -
@typescript-eslint/non-nullable-type-assertion-styleEnforce non-null assertions over explicit type assertions
: 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/only-throw-errorDisallow throwing non-
Errorvalues as exceptions: 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/prefer-as-constEnforce the use of
as constover literal type: error in All typescript-eslint contexts -
@typescript-eslint/prefer-findEnforce the use of Array.prototype.find() over Array.prototype.filter() followed by [0] when looking for a single result
: 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/prefer-for-ofEnforce the use of
for-ofloop over the standardforloop where possible: error in All typescript-eslint contexts -
@typescript-eslint/prefer-function-typeEnforce using function types instead of interfaces with call signatures
: error in All typescript-eslint contexts