eslint
accessor-pairs docs
Enforce getter and setter pairs in objects and classes
Not configured in any preset
array-bracket-newline docs
Enforce linebreaks after opening and before closing array brackets
Configured in
array-callback-return docs
Enforce return
statements in callbacks of array methods
arrow-body-style docs
Require braces around arrow function bodies
Not configured in any preset
arrow-spacing docs
Enforce consistent spacing before and after the arrow in arrow functions
Configured in
block-scoped-var docs
Enforce the use of variables within the scope they are defined
Not configured in any preset
block-spacing docs
Disallow or enforce spaces inside of blocks after opening block and before closing block
Configured in
callback-return docs
Require return
statements after callbacks
Not configured in any preset
camelcase docs
Enforce camelcase naming convention
Not configured in any preset
capitalized-comments docs
Enforce or disallow capitalization of the first letter of a comment
Not configured in any preset
class-methods-use-this docs
Enforce that class methods utilize this
Not configured in any preset
complexity docs
Enforce a maximum cyclomatic complexity allowed in a program
Not configured in any preset
computed-property-spacing docs
Enforce consistent spacing inside computed property brackets
Configured in
consistent-return docs
Require return
statements to either always or never specify values
Not configured in any preset
consistent-this docs
Enforce consistent naming when capturing the current execution context
Not configured in any preset
default-case docs
Require default
cases in switch
statements
Not configured in any preset
default-case-last docs
Enforce default clauses in switch statements to be last
Not configured in any preset
default-param-last docs
Enforce default parameters to be last
Not configured in any preset
dot-notation docs
Enforce dot notation whenever possible
Not configured in any preset
for-direction docs
Enforce "for" loop update clause moving the counter in the right direction
Not configured in any preset
func-call-spacing docs
Require or disallow spacing between function identifiers and their invocations
Configured in
func-name-matching docs
Require function names to match the name of the variable or property to which they are assigned
Not configured in any preset
func-names docs
Require or disallow named function
expressions
Not configured in any preset
func-style docs
Enforce the consistent use of either function
declarations or expressions
Not configured in any preset
function-call-argument-newline docs
Enforce line breaks between arguments of a function call
Configured in
function-paren-newline docs
Enforce consistent line breaks inside function parentheses
Configured in
generator-star-spacing docs
Enforce consistent spacing around *
operators in generator functions
Configured in
global-require docs
Require require()
calls to be placed at top-level module scope
Not configured in any preset
grouped-accessor-pairs docs
Require grouped accessor pairs in object literals and classes
Not configured in any preset
guard-for-in docs
Require for-in
loops to include an if
statement
Not configured in any preset
handle-callback-err docs
Require error handling in callbacks
Not configured in any preset
id-blacklist docs
Disallow specified identifiers
Not configured in any preset
id-denylist docs
Disallow specified identifiers
Not configured in any preset
id-length docs
Enforce minimum and maximum identifier lengths
Not configured in any preset
id-match docs
Require identifiers to match a specified regular expression
Not configured in any preset
init-declarations docs
Require or disallow initialization in variable declarations
Not configured in any preset
jsx-quotes docs
Enforce the consistent use of either double or single quotes in JSX attributes
Configured in
key-spacing docs
Enforce consistent spacing between keys and values in object literal properties
Configured in
line-comment-position docs
Enforce position of line comments
Not configured in any preset
lines-around-directive docs
Require or disallow newlines around directives
Not configured in any preset
lines-between-class-members docs
Require or disallow an empty line between class members
Not configured in any preset
logical-assignment-operators docs
Require or disallow logical assignment operator shorthand
Not configured in any preset
max-classes-per-file docs
Enforce a maximum number of classes per file
Not configured in any preset
max-depth docs
Enforce a maximum depth that blocks can be nested
Not configured in any preset
max-lines docs
Enforce a maximum number of lines per file
Not configured in any preset
max-lines-per-function docs
Enforce a maximum number of lines of code in a function
Not configured in any preset
max-nested-callbacks docs
Enforce a maximum depth that callbacks can be nested
Not configured in any preset
max-params docs
Enforce a maximum number of parameters in function definitions
Not configured in any preset
max-statements docs
Enforce a maximum number of statements allowed in function blocks
Not configured in any preset
max-statements-per-line docs
Enforce a maximum number of statements allowed per line
Not configured in any preset
multiline-comment-style docs
Enforce a particular style for multiline comments
Not configured in any preset
multiline-ternary docs
Enforce newlines between operands of ternary expressions
Configured in
new-cap docs
Require constructor names to begin with a capital letter
Not configured in any preset
new-parens docs
Enforce or disallow parentheses when invoking a constructor with no arguments
Configured in
newline-after-var docs
Require or disallow an empty line after variable declarations
Not configured in any preset
newline-before-return docs
Require an empty line before return
statements
Not configured in any preset
newline-per-chained-call docs
Require a newline after each call in a method chain
Configured in
no-alert docs
Disallow the use of alert
, confirm
, and prompt
Not configured in any preset
no-array-constructor docs
Disallow Array
constructors
Not configured in any preset
no-async-promise-executor docs
Disallow using an async function as a Promise executor
no-await-in-loop docs
Disallow await
inside of loops
Not configured in any preset
no-bitwise docs
Disallow bitwise operators
Not configured in any preset
no-buffer-constructor docs
Disallow use of the Buffer()
constructor
Not configured in any preset
no-catch-shadow docs
Disallow catch
clause parameters from shadowing variables in the outer scope
Not configured in any preset
no-cond-assign docs
Disallow assignment operators in conditional expressions
no-confusing-arrow docs
Disallow arrow functions where they could be confused with comparisons
Configured in
no-console docs
Disallow the use of console
Not configured in any preset
no-constant-binary-expression docs
Disallow expressions where the operation doesn't affect the value
Not configured in any preset
no-constant-condition docs
Disallow constant expressions in conditions
Not configured in any preset
no-continue docs
Disallow continue
statements
Not configured in any preset
no-debugger docs
Disallow the use of debugger
Configured in
no-div-regex docs
Disallow equal signs explicitly at the beginning of regular expressions
Not configured in any preset
no-duplicate-imports docs
Disallow duplicate module imports
Not configured in any preset
no-else-return docs
Disallow else
blocks after return
statements in if
statements
Not configured in any preset
no-empty docs
Disallow empty block statements
Configured in
no-empty-character-class docs
Disallow empty character classes in regular expressions
Configured in
no-empty-function docs
Disallow empty functions
Configured in
no-empty-pattern docs
Disallow empty destructuring patterns
Configured in
no-empty-static-block docs
Disallow empty static blocks
Configured in
no-eq-null docs
Disallow null
comparisons without type-checking operators
Not configured in any preset
no-eval docs
Disallow the use of eval()
Configured in
no-extra-bind docs
Disallow unnecessary calls to .bind()
Not configured in any preset
no-extra-boolean-cast docs
Disallow unnecessary boolean casts
Configured in
no-extra-label docs
Disallow unnecessary labels
Not configured in any preset
no-floating-decimal docs
Disallow leading or trailing decimal points in numeric literals
Configured in
no-global-assign docs
Disallow assignments to native objects or read-only global variables
no-implicit-coercion docs
Disallow shorthand type conversions
Configured in
no-implicit-globals docs
Disallow declarations in the global scope
Not configured in any preset
no-implied-eval docs
Disallow the use of eval()
-like methods
Configured in
no-inline-comments docs
Disallow inline comments after code
Not configured in any preset
no-inner-declarations docs
Disallow variable or function
declarations in nested blocks
Configured in
no-invalid-regexp docs
Disallow invalid regular expression strings in RegExp
constructors
no-invalid-this docs
Disallow use of this
in contexts where the value of this
is undefined
no-irregular-whitespace docs
Disallow irregular whitespace
Configured in
no-iterator docs
Disallow the use of the __iterator__
property
Not configured in any preset
no-label-var docs
Disallow labels that share a name with a variable
Not configured in any preset
no-labels docs
Disallow labeled statements
Configured in
no-lone-blocks docs
Disallow unnecessary nested blocks
Not configured in any preset
no-lonely-if docs
Disallow if
statements as the only statement in else
blocks
Not configured in any preset
no-loop-func docs
Disallow function declarations that contain unsafe references inside loop statements
Not configured in any preset
no-magic-numbers docs
Disallow magic numbers
Not configured in any preset
no-misleading-character-class docs
Disallow characters which are made with multiple code points in character class syntax
Not configured in any preset
no-mixed-requires docs
Disallow require
calls to be mixed with regular variable declarations
Not configured in any preset
no-multi-assign docs
Disallow use of chained assignment expressions
Configured in
no-multi-str docs
Disallow multiline strings
Not configured in any preset
no-native-reassign docs
Disallow assignments to native objects or read-only global variables
Not configured in any preset
no-negated-condition docs
Disallow negated conditions
Not configured in any preset
no-negated-in-lhs docs
Disallow negating the left operand in in
expressions
Not configured in any preset
no-nested-ternary docs
Disallow nested ternary expressions
Not configured in any preset
no-new docs
Disallow new
operators outside of assignments or comparisons
Not configured in any preset
no-new-func docs
Disallow new
operators with the Function
object
Not configured in any preset
no-new-native-nonconstructor docs
Disallow new
operators with global non-constructor functions
Not configured in any preset
no-new-object docs
Disallow Object
constructors
Not configured in any preset
no-new-require docs
Disallow new
operators with calls to require
Not configured in any preset
no-new-symbol docs
Disallow new
operators with the Symbol
object
Not configured in any preset
no-new-wrappers docs
Disallow new
operators with the String
, Number
, and Boolean
objects
no-nonoctal-decimal-escape docs
Disallow \8
and \9
escape sequences in string literals
no-octal docs
Disallow octal literals
Not configured in any preset
no-octal-escape docs
Disallow octal escape sequences in string literals
Not configured in any preset
no-path-concat docs
Disallow string concatenation with __dirname
and __filename
Not configured in any preset
no-plusplus docs
Disallow the unary operators ++
and --
Not configured in any preset
no-process-env docs
Disallow the use of process.env
Not configured in any preset
no-process-exit docs
Disallow the use of process.exit()
Not configured in any preset
no-promise-executor-return docs
Disallow returning values from Promise executor functions
no-prototype-builtins docs
Disallow calling some Object.prototype
methods directly on objects
no-redeclare docs
Disallow variable redeclaration
Not configured in any preset
no-regex-spaces docs
Disallow multiple spaces in regular expressions
Configured in
no-restricted-exports docs
Disallow specified names in exports
Not configured in any preset
no-restricted-globals docs
Disallow specified global variables
Not configured in any preset
no-restricted-imports docs
Disallow specified modules when loaded by import
Not configured in any preset
no-restricted-modules docs
Disallow specified modules when loaded by require
Not configured in any preset
no-restricted-properties docs
Disallow certain properties on certain objects
Not configured in any preset
no-restricted-syntax docs
Disallow specified syntax
Not configured in any preset
no-return-assign docs
Disallow assignment operators in return
statements
Configured in
no-return-await docs
Disallow unnecessary return await
Not configured in any preset
no-script-url docs
Disallow javascript:
urls
Not configured in any preset
no-self-assign docs
Disallow assignments where both sides are exactly the same
no-self-compare docs
Disallow comparisons where both sides are exactly the same
no-sequences docs
Disallow comma operators
Configured in
no-shadow docs
Disallow variable declarations from shadowing variables declared in the outer scope
Not configured in any preset
no-shadow-restricted-names docs
Disallow identifiers from shadowing restricted names
no-spaced-func docs
Disallow spacing between function identifiers and their applications (deprecated)
Configured in
no-sync docs
Disallow synchronous methods
Not configured in any preset
no-template-curly-in-string docs
Disallow template literal placeholder syntax in regular strings
Not configured in any preset
no-ternary docs
Disallow ternary operators
Not configured in any preset
no-this-before-super docs
Disallow this
/super
before calling super()
in constructors
no-throw-literal docs
Disallow throwing literals as exceptions
Configured in
no-undef docs
Disallow the use of undeclared variables unless mentioned in /*global */
comments
no-undef-init docs
Disallow initializing variables to undefined
Not configured in any preset
no-undefined docs
Disallow the use of undefined
as an identifier
Not configured in any preset
no-underscore-dangle docs
Disallow dangling underscores in identifiers
Not configured in any preset
no-unmodified-loop-condition docs
Disallow unmodified loop conditions
Not configured in any preset
no-unneeded-ternary docs
Disallow ternary operators when simpler alternatives exist
Not configured in any preset
no-unreachable docs
Disallow unreachable code after return
, throw
, continue
, and break
statements
no-unreachable-loop docs
Disallow loops with a body that allows only one iteration
Not configured in any preset
no-unsafe-negation docs
Disallow negating the left operand of relational operators
no-unsafe-optional-chaining docs
Disallow use of optional chaining in contexts where the undefined
value is not allowed
no-unused-expressions docs
Disallow unused expressions
Configured in
no-unused-labels docs
Disallow unused labels
Not configured in any preset
no-unused-private-class-members docs
Disallow unused private class members
Not configured in any preset
no-unused-vars docs
Disallow unused variables
Configured in
no-use-before-define docs
Disallow the use of variables before they are defined
Configured in
no-useless-backreference docs
Disallow useless backreferences in regular expressions
Configured in
no-useless-call docs
Disallow unnecessary calls to .call()
and .apply()
Not configured in any preset
no-useless-catch docs
Disallow unnecessary catch
clauses
Configured in
no-useless-computed-key docs
Disallow unnecessary computed property keys in objects and classes
Not configured in any preset
no-useless-concat docs
Disallow unnecessary concatenation of literals or template literals
Configured in
no-useless-constructor docs
Disallow unnecessary constructors
Not configured in any preset
no-useless-escape docs
Disallow unnecessary escape characters
Configured in
no-useless-rename docs
Disallow renaming import, export, and destructured assignments to the same name
Configured in
no-useless-return docs
Disallow redundant return statements
Configured in
no-var docs
Require let
or const
instead of var
Configured in
no-void docs
Disallow void
operators
Configured in
no-warning-comments docs
Disallow specified warning terms in comments
Not configured in any preset
nonblock-statement-body-position docs
Enforce the location of single-line statements
Configured in
object-curly-newline docs
Enforce consistent line breaks after opening and before closing braces
Configured in
object-property-newline docs
Enforce placing object properties on separate lines
Configured in
object-shorthand docs
Require or disallow method and property shorthand syntax for object literals
Configured in
one-var docs
Enforce variables to be declared either together or separately in functions
Configured in
one-var-declaration-per-line docs
Require or disallow newlines around variable declarations
Configured in
operator-assignment docs
Require or disallow assignment operator shorthand where possible
Not configured in any preset
padding-line-between-statements docs
Require or disallow padding lines between statements
Not configured in any preset
prefer-arrow-callback docs
Require using arrow functions for callbacks
Not configured in any preset
prefer-const docs
Require const
declarations for variables that are never reassigned after declared
Configured in
prefer-destructuring docs
Require destructuring from arrays and/or objects
Not configured in any preset
prefer-exponentiation-operator docs
Disallow the use of Math.pow
in favor of the **
operator
Not configured in any preset
prefer-named-capture-group docs
Enforce using named capture group in regular expression
Not configured in any preset
prefer-numeric-literals docs
Disallow parseInt()
and Number.parseInt()
in favor of binary, octal, and hexadecimal literals
Not configured in any preset
prefer-object-has-own docs
Disallow use of Object.prototype.hasOwnProperty.call()
and prefer use of Object.hasOwn()
Not configured in any preset
prefer-object-spread docs
Disallow using Object.assign with an object literal as the first argument and prefer the use of object spread instead
Not configured in any preset
prefer-promise-reject-errors docs
Require using Error objects as Promise rejection reasons
Configured in
prefer-reflect docs
Require Reflect
methods where applicable
Not configured in any preset
prefer-regex-literals docs
Disallow use of the RegExp
constructor in favor of regular expression literals
Not configured in any preset
prefer-rest-params docs
Require rest parameters instead of arguments
Not configured in any preset
prefer-spread docs
Require spread operators instead of .apply()
Not configured in any preset
prefer-template docs
Require template literals instead of string concatenation
Not configured in any preset
quotes docs
Enforce the consistent use of either backticks, double, or single quotes
Configured in
radix docs
Enforce the consistent use of the radix argument when using parseInt()
require-atomic-updates docs
Disallow assignments that can lead to race conditions due to usage of await
or yield
Not configured in any preset
require-await docs
Disallow async functions which have no await
expression
Not configured in any preset
require-jsdoc docs
Require JSDoc comments
Not configured in any preset
require-unicode-regexp docs
Enforce the use of u
flag on RegExp
Not configured in any preset
require-yield docs
Require generator functions to contain yield
Not configured in any preset
rest-spread-spacing docs
Enforce spacing between rest and spread operators and their expressions
Configured in
sort-imports docs
Enforce sorted import declarations within modules
Not configured in any preset
sort-keys docs
Require object keys to be sorted
Not configured in any preset
sort-vars docs
Require variables within the same declaration block to be sorted
Not configured in any preset
space-before-function-paren docs
Enforce consistent spacing before function
definition opening parenthesis
Configured in
space-unary-ops docs
Enforce consistent spacing before or after unary operators
Configured in
spaced-comment docs
Enforce consistent spacing after the //
or /*
in a comment
Not configured in any preset
strict docs
Require or disallow strict mode directives
Not configured in any preset
symbol-description docs
Require symbol descriptions
Not configured in any preset
template-curly-spacing docs
Require or disallow spacing around embedded expressions of template strings
Configured in
template-tag-spacing docs
Require or disallow spacing between template tags and their literals
Configured in
valid-jsdoc docs
Enforce valid JSDoc comments
Not configured in any preset
valid-typeof docs
Enforce comparing typeof
expressions against valid strings
vars-on-top docs
Require var
declarations be placed at the top of their containing scope
Not configured in any preset
yield-star-spacing docs
Require or disallow spacing around the *
in yield*
expressions
Configured in
yoda docs
Require or disallow "Yoda" conditions
Configured in