Skip to content

typescript-eslint

103 rules typescript-eslint@8.70.1

Complete effective rule inventory.

Docs

Rules

40 rules on this page · 103 total

  • @typescript-eslint/adjacent-overload-signatures

    Require that function overload signatures be consecutive

    : error in All typescript-eslint contexts
    No autofix
  • @typescript-eslint/array-type

    Require consistently using either T[] or Array<T> for arrays

    : error in All typescript-eslint contexts
    Autofix available
  • @typescript-eslint/await-thenable

    Disallow 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
    No autofix; suggestions available
  • @typescript-eslint/ban-ts-comment

    Disallow @ts-<directive> comments or require descriptions after directives

    : error in All typescript-eslint contexts
    No autofix; suggestions available
  • @typescript-eslint/ban-tslint-comment

    Disallow // tslint:<rule-flag> comments

    : error in All typescript-eslint contexts
    Autofix available
  • @typescript-eslint/class-literal-property-style

    Enforce that literals on classes are exposed in a consistent style

    : error in All typescript-eslint contexts
    No autofix; suggestions available
  • @typescript-eslint/consistent-generic-constructors

    Enforce specifying generic type arguments on type annotation or constructor name of a constructor call

    : error in All typescript-eslint contexts
    Autofix available
  • @typescript-eslint/consistent-indexed-object-style

    Require or disallow the Record type

    : error in All typescript-eslint contexts
    Autofix available; suggestions available
  • @typescript-eslint/consistent-type-assertions

    Enforce consistent usage of type assertions

    : error in TypeScript source, React source, JavaScript source, React JavaScript source, Syntax-only tool configuration, Design-system React source
    Autofix available; suggestions available
  • @typescript-eslint/consistent-type-definitions

    Enforce type definitions to consistently use either interface or type

    : error in All typescript-eslint contexts
    Autofix available
  • @typescript-eslint/consistent-type-exports

    Enforce 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
    Autofix available
  • @typescript-eslint/consistent-type-imports

    Enforce consistent usage of type imports

    : error in All typescript-eslint contexts
    Autofix available
  • @typescript-eslint/default-param-last

    Enforce default parameters to be last

    : error in All typescript-eslint contexts
    No autofix
  • @typescript-eslint/dot-notation

    Enforce 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
    Autofix available
  • @typescript-eslint/member-ordering

    Require a consistent member declaration order

    : error in All typescript-eslint contexts
    No autofix
  • @typescript-eslint/naming-convention

    Enforce naming conventions for everything across a codebase

    : error in All typescript-eslint contexts
    No autofix
  • @typescript-eslint/no-array-constructor

    Disallow generic Array constructors

    : error in All typescript-eslint contexts
    Autofix available
  • @typescript-eslint/no-array-delete

    Disallow using the delete operator 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
    No autofix; suggestions available
  • @typescript-eslint/no-base-to-string

    Require .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
    No autofix
  • @typescript-eslint/no-confusing-non-null-assertion

    Disallow non-null assertion in locations that may be confusing

    : error in All typescript-eslint contexts
    No autofix; suggestions available
  • @typescript-eslint/no-confusing-void-expression

    Require 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
    Autofix available; suggestions available
  • @typescript-eslint/no-deprecated

    Disallow 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
    No autofix
  • @typescript-eslint/no-duplicate-enum-values

    Disallow duplicate enum member values

    : error in All typescript-eslint contexts
    No autofix
  • @typescript-eslint/no-duplicate-type-constituents

    Disallow 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
    Autofix available
  • @typescript-eslint/no-dynamic-delete

    Disallow using the delete operator on computed key expressions

    : error in All typescript-eslint contexts
    No autofix
  • : error in All typescript-eslint contexts
    No autofix; suggestions available
  • @typescript-eslint/no-empty-object-type

    Disallow accidentally using the "empty object" type

    : error in All typescript-eslint contexts
    No autofix; suggestions available
  • : error in All typescript-eslint contexts
    Autofix available; suggestions available
  • @typescript-eslint/no-extra-non-null-assertion

    Disallow extra non-null assertions

    : error in All typescript-eslint contexts
    Autofix available
  • @typescript-eslint/no-extraneous-class

    Disallow classes used as namespaces

    : error in All typescript-eslint contexts
    No autofix
  • @typescript-eslint/no-floating-promises

    Require 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
    No autofix; suggestions available
  • @typescript-eslint/no-for-in-array

    Disallow 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
    No autofix
  • @typescript-eslint/no-generated-empty-object-type

    Disallow 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
    No autofix
  • @typescript-eslint/no-implied-eval

    Disallow 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
    No autofix
  • @typescript-eslint/no-import-type-side-effects

    Enforce the use of top-level import type qualifier when an import only has specifiers with inline type qualifiers

    : error in All typescript-eslint contexts
    Autofix available
  • @typescript-eslint/no-invalid-void-type

    Disallow void type outside of generic or return types

    : error in All typescript-eslint contexts
    No autofix
  • @typescript-eslint/no-meaningless-void-operator

    Disallow the void operator 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
    Autofix available; suggestions available
  • @typescript-eslint/no-misused-new

    Enforce valid definition of new and constructor

    : error in All typescript-eslint contexts
    No autofix
  • @typescript-eslint/no-misused-promises

    Disallow 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
    No autofix
  • @typescript-eslint/no-misused-spread

    Disallow 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
    No autofix; suggestions available