Skip to content

ESLint

88 rules eslint@10.11.0

Complete effective rule inventory.

Docs

Rules

40 rules on this page · 88 total

  • array-callback-return

    Enforce return statements in callbacks of array methods

    : error in All ESLint contexts
    No autofix; suggestions available
  • arrow-body-style

    Require braces around arrow function bodies

    : warning in All ESLint contexts
    Autofix available
  • constructor-super

    Require super() calls in constructors

    : warning in JavaScript source, React JavaScript source
    No autofix
  • eqeqeq

    Require the use of === and !==

    : error in All ESLint contexts
    Autofix available; suggestions available
  • for-direction

    Enforce for loop update clause moving the counter in the right direction

    : warning in All ESLint contexts
    Autofix available
  • getter-return

    Enforce return statements in getters

    : warning in JavaScript source, React JavaScript source
    Autofix available
  • no-async-promise-executor

    Disallow using an async function as a Promise executor

    : warning in All ESLint contexts
    Autofix available
  • no-await-in-loop

    Disallow await inside of loops

    : error in TypeScript source, React source, JavaScript source, React JavaScript source, Syntax-only tool configuration, Design-system React source
    No autofix
  • no-case-declarations

    Disallow lexical declarations in case clauses

    : warning in All ESLint contexts
    No autofix; suggestions available
  • no-class-assign

    Disallow reassigning class members

    : warning in JavaScript source, React JavaScript source
    No autofix
  • no-compare-neg-zero

    Disallow comparing against -0

    : warning in All ESLint contexts
    Autofix available; suggestions available
  • no-cond-assign

    Disallow assignment operators in conditional expressions

    : warning in All ESLint contexts
    No autofix
  • no-console

    Disallow the use of console

    : error in All ESLint contexts
    No autofix; suggestions available
  • no-const-assign

    Disallow reassigning const, using, and await using variables

    : warning in JavaScript source, React JavaScript source
    No autofix
  • no-constant-binary-expression

    Disallow expressions where the operation doesn't affect the value

    : warning in All ESLint contexts
    No autofix
  • no-constant-condition

    Disallow constant expressions in conditions

    : warning in All ESLint contexts
    No autofix
  • no-control-regex

    Disallow control characters in regular expressions

    : warning in All ESLint contexts
    No autofix
  • no-debugger

    Disallow the use of debugger

    : warning in All ESLint contexts
    Autofix available
  • no-delete-var

    Disallow deleting variables

    : warning in All ESLint contexts
    No autofix
  • no-dupe-args

    Disallow duplicate arguments in function definitions

    : warning in JavaScript source, React JavaScript source
    No autofix
  • no-dupe-class-members

    Disallow duplicate class members

    : warning in JavaScript source, React JavaScript source
    No autofix
  • no-dupe-else-if

    Disallow duplicate conditions in if-else-if chains

    : warning in All ESLint contexts
    No autofix
  • no-dupe-keys

    Disallow duplicate keys in object literals

    : warning in JavaScript source, React JavaScript source
    No autofix
  • no-duplicate-case

    Disallow duplicate case labels

    : warning in All ESLint contexts
    No autofix
  • no-empty

    Disallow empty block statements

    : warning in All ESLint contexts
    No autofix; suggestions available
  • no-empty-character-class

    Disallow empty character classes in regular expressions

    : warning in All ESLint contexts
    No autofix
  • no-empty-pattern

    Disallow empty destructuring patterns

    : warning in All ESLint contexts
    No autofix
  • no-empty-static-block

    Disallow empty static blocks

    : warning in All ESLint contexts
    No autofix; suggestions available
  • no-eval

    Disallow the use of eval()

    : error in All ESLint contexts
    No autofix
  • no-ex-assign

    Disallow reassigning exceptions in catch clauses

    : warning in All ESLint contexts
    No autofix
  • no-extra-bind

    Disallow unnecessary calls to .bind()

    : error in All ESLint contexts
    Autofix available
  • no-extra-boolean-cast

    Disallow unnecessary boolean casts

    : warning in All ESLint contexts
    Autofix available
  • no-fallthrough

    Disallow fallthrough of case statements

    : error in All ESLint contexts
    No autofix
  • no-func-assign

    Disallow reassigning function declarations

    : warning in JavaScript source, React JavaScript source
    No autofix
  • no-global-assign

    Disallow assignments to native objects or read-only global variables

    : warning in All ESLint contexts
    No autofix
  • no-implied-eval

    Disallow the use of eval()-like methods

    : error in Syntax-only tool configuration
    No autofix
  • no-import-assign

    Disallow assigning to imported bindings

    : warning in JavaScript source, React JavaScript source
    No autofix
  • no-invalid-regexp

    Disallow invalid regular expression strings in RegExp constructors

    : warning in All ESLint contexts
    No autofix
  • no-irregular-whitespace

    Disallow irregular whitespace

    : warning in All ESLint contexts
    No autofix
  • no-loss-of-precision

    Disallow literal numbers that lose precision

    : warning in All ESLint contexts
    No autofix