Skip to content

typescript-eslint

103 rules typescript-eslint@8.70.1

Complete effective rule inventory.

Docs

Rules

7 rules on this page · 103 total

  • @typescript-eslint/return-await

    Enforce consistent awaiting of returned promises

    : 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/strict-void-return

    Disallow passing a value-returning function in a position accepting a void function

    : warning in TypeScript source, JavaScript source, TypeScript tests, Bun tests, Playwright end-to-end tests
    No autofix; suggestions available
  • @typescript-eslint/switch-exhaustiveness-check

    Require switch-case statements to be exhaustive

    : 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/triple-slash-reference

    Disallow certain triple slash directives in favor of ES6-style import declarations

    : error in All typescript-eslint contexts
    No autofix
  • @typescript-eslint/unbound-method

    Enforce unbound methods are called with their expected scope

    : 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/unified-signatures

    Disallow two overloads that could be unified into one with a union or an optional/rest parameter

    : error in All typescript-eslint contexts
    No autofix
  • @typescript-eslint/use-unknown-in-catch-callback-variable

    Enforce typing arguments in Promise rejection callbacks as unknown

    : 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