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-eval

    Disallow the use of eval()

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

    Disallow reassigning exceptions in catch clauses

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

    Disallow unnecessary calls to .bind()

    : error in All ESLint core contexts
    No autofix
  • no-extra-boolean-cast

    Disallow unnecessary boolean casts

    : warning in All ESLint core contexts
    Autofix available; suggestions available
  • no-extra-label

    Disallow unnecessary labels

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

    Disallow fallthrough of case statements

    : error in All ESLint core 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 core 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 core contexts
    No autofix
  • no-irregular-whitespace

    Disallow irregular whitespace

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

    Disallow the use of the __iterator__ property

    : error in All ESLint core contexts
    Autofix available; suggestions available
  • no-lonely-if

    Disallow if statements as the only statement in else blocks

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

    Disallow literal numbers that lose precision

    : warning in All ESLint core contexts
    No autofix
  • no-misleading-character-class

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

    : warning in All ESLint core contexts
    Autofix available; 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 core contexts
    Autofix available; suggestions available
  • no-obj-calls

    Disallow calling global object properties as functions

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

    Disallow reassigning function parameters

    : error in All ESLint core contexts
    No autofix
  • no-promise-executor-return

    Disallow returning values from Promise executor functions

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

    Disallow the use of the __proto__ property

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

    Disallow calling some Object.prototype methods directly on objects

    : error in All ESLint core contexts
    No autofix
  • 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 core contexts
    Autofix available
  • no-restricted-imports

    Disallow specified modules when loaded by import

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

    Disallow certain properties on certain objects

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

    Disallow assignment operators in return statements

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

    Disallow assignments where both sides are exactly the same

    : warning in All ESLint core contexts
    No autofix
  • no-self-compare

    Disallow comparisons where both sides are exactly the same

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

    Disallow returning values from setters

    : warning in JavaScript source, React JavaScript source
    No autofix