Skip to content
Sarj Code Standards

ESLint core

104 rules oxlint@1.91.0

Complete effective rule inventory.

Docs

Rules

32 rules on this page · 104 total

  • no-shadow

    Disallow variable declarations from shadowing variables declared in the outer scope

    : error in All ESLint core contexts
    No autofix
  • no-shadow-restricted-names

    Disallow identifiers from shadowing restricted names

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

    Disallow sparse arrays

    : warning in All ESLint core contexts
    No autofix
  • no-template-curly-in-string

    Disallow template literal placeholder syntax in regular strings

    : warning in All ESLint core 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 core 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-unexpected-multiline

    Disallow confusing multiline expressions

    : warning in All ESLint core contexts
    Autofix available
  • no-unmodified-loop-condition

    Disallow unmodified loop conditions

    : warning in All ESLint core 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-unreachable-loop

    Disallow loops with a body that allows only one iteration

    : warning in All ESLint core contexts
    No autofix
  • no-unsafe-finally

    Disallow control flow statements in finally blocks

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

    Disallow negating the left operand of relational operators

    : warning in JavaScript source, React JavaScript source
    Autofix available
  • no-unsafe-optional-chaining

    Disallow use of optional chaining in contexts where the undefined value is not allowed

    : error in All ESLint core contexts
    No autofix
  • no-unused-expressions

    Disallow unused expressions

    : error in All ESLint core contexts
    No autofix
  • no-unused-labels

    Disallow unused labels

    : warning in All ESLint core contexts
    Autofix available
  • no-unused-private-class-members

    Disallow unused private class members

    : warning in All ESLint core contexts
    No autofix
  • no-unused-vars

    Disallow unused variables

    : error in All ESLint core contexts
    Autofix available; suggestions available
  • no-useless-assignment

    Disallow variable assignments when the value is not used

    : warning in All ESLint core contexts
    No autofix
  • no-useless-backreference

    Disallow useless backreferences in regular expressions

    : warning in All ESLint core contexts
    No autofix
  • no-useless-catch

    Disallow unnecessary catch clauses

    : warning in All ESLint core contexts
    No autofix
  • no-useless-computed-key

    Disallow unnecessary computed property keys in objects and classes

    : error in All ESLint core contexts
    Autofix available
  • no-useless-concat

    Disallow useless concatenation of literals.

    : error in All ESLint core contexts
    No autofix
  • no-useless-constructor

    Disallow unnecessary constructors

    : error in All ESLint core contexts
    Autofix available; suggestions available
  • no-useless-escape

    Disallow unnecessary escape characters

    : warning in All ESLint core contexts
    Autofix available
  • no-useless-rename

    Disallow renaming import, export, and destructured assignments to the same name

    : error in All ESLint core contexts
    Autofix available
  • no-useless-return

    Disallow redundant return statements

    : error in All ESLint core contexts
    No autofix
  • no-var

    Require let or const instead of var

    : error in All ESLint core contexts
    Autofix available
  • no-with

    Disallow with statements

    : warning in JavaScript source, React JavaScript source
    No autofix
  • object-shorthand

    Require or disallow method and property shorthand syntax for object literals

    : error in All ESLint core contexts
    Autofix available
  • prefer-arrow-callback

    Require using arrow functions for callbacks

    : error in All ESLint core contexts
    Autofix available
  • prefer-const

    Require const declarations for variables that are never reassigned after declared

    : error in All ESLint core contexts
    Autofix available