Skip to content

ESLint

87 rules eslint@10.12.0

Complete effective rule inventory.

Docs

Rules

32 rules on this page · 87 total

  • 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
  • no-misleading-character-class

    Disallow characters which are made with multiple code points in character class syntax

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

    Disallow new operators with the Function object

    : error in Syntax-only tool configuration
    No autofix
  • no-new-native-nonconstructor

    Disallow new operators with global non-constructor functions

    : warning in JavaScript source, React JavaScript source
    No autofix
  • no-nonoctal-decimal-escape

    Disallow \8 and \9 escape sequences in string literals

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

    Disallow calling global object properties as functions

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

    Disallow octal literals

    : warning in All ESLint contexts
    No autofix
  • no-param-reassign

    Disallow reassigning function parameters

    : error in All ESLint contexts
    No autofix
  • no-prototype-builtins

    Disallow calling some Object.prototype methods directly on objects

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

    Disallow variable redeclaration

    : warning in JavaScript source, React JavaScript source
    No autofix
  • no-regex-spaces

    Disallow multiple spaces in regular expressions

    : warning in All ESLint contexts
    Autofix available
  • no-restricted-imports

    Disallow specified modules when loaded by import

    : error in All ESLint contexts
    No autofix
  • no-restricted-syntax

    Disallow specified syntax

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

    Disallow assignments where both sides are exactly the same

    : warning in All ESLint contexts
    No autofix
  • no-setter-return

    Disallow returning values from setters

    : warning in JavaScript source, React JavaScript source
    No autofix
  • no-shadow-restricted-names

    Disallow identifiers from shadowing restricted names

    : warning in All ESLint contexts
    No autofix
  • no-sparse-arrays

    Disallow sparse arrays

    : warning in All ESLint contexts
    No autofix
  • no-this-before-super

    Disallow this/super before calling super() in constructors

    : warning in JavaScript source, React JavaScript source
    No autofix
  • no-unassigned-vars

    Disallow let or var variables that are read but never assigned

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

    Disallow the use of undeclared variables unless mentioned in /*global */ comments

    : warning in JavaScript source, React JavaScript source
    No autofix
  • no-undef-init

    Disallow initializing variables to undefined

    : error in All ESLint contexts
    Autofix available
  • no-unexpected-multiline

    Disallow confusing multiline expressions

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

    Disallow unreachable code after return, throw, continue, and break statements

    : warning in JavaScript source, React JavaScript source
    No autofix
  • no-unsafe-finally

    Disallow control flow statements in finally blocks

    : error in All ESLint contexts
    No autofix
  • no-unsafe-negation

    Disallow negating the left operand of relational operators

    : warning in JavaScript source, React JavaScript source
    Autofix available; suggestions available