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-bracket-spacing docs

Enforce consistent spacing inside array brackets

Configured in

array-callback-return docs

Enforce return statements in callbacks of array methods

Configured in

array-element-newline docs

Enforce line breaks after each array element

Configured in

arrow-body-style docs

Require braces around arrow function bodies

Not configured in any preset

arrow-parens docs

Require parentheses around arrow function arguments

Configured in

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

brace-style docs

Enforce consistent brace style for blocks

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

comma-dangle docs

Require or disallow trailing commas

Configured in

comma-spacing docs

Enforce consistent spacing before and after commas

Configured in

comma-style docs

Enforce consistent comma style

Configured in

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

constructor-super docs

Require super() calls in constructors

Configured in

curly docs

Enforce consistent brace style for all control statements

Configured in

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-location docs

Enforce consistent newlines before and after dots

Configured in

dot-notation docs

Enforce dot notation whenever possible

Not configured in any preset

eol-last docs

Require or disallow newline at the end of files

Configured in

eqeqeq docs

Require the use of === and !==

Configured in

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

getter-return docs

Enforce return statements in getters

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

implicit-arrow-linebreak docs

Enforce the location of arrow function bodies

Configured in

indent docs

Enforce consistent indentation

Configured in

indent-legacy docs

Enforce consistent indentation

Configured in

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

keyword-spacing docs

Enforce consistent spacing before and after keywords

Configured in

line-comment-position docs

Enforce position of line comments

Not configured in any preset

linebreak-style docs

Enforce consistent linebreak style

Configured in

lines-around-comment docs

Require empty lines around comments

Configured in

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-len docs

Enforce a maximum line length

Configured in

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

Configured in

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-caller docs

Disallow the use of arguments.caller or arguments.callee

Configured in

no-case-declarations docs

Disallow lexical declarations in case clauses

Configured in

no-catch-shadow docs

Disallow catch clause parameters from shadowing variables in the outer scope

Not configured in any preset

no-class-assign docs

Disallow reassigning class members

Configured in

no-compare-neg-zero docs

Disallow comparing against -0

Configured in

no-cond-assign docs

Disallow assignment operators in conditional expressions

Configured in

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-const-assign docs

Disallow reassigning const variables

Configured in

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-constructor-return docs

Disallow returning value from constructor

Configured in

no-continue docs

Disallow continue statements

Not configured in any preset

no-control-regex docs

Disallow control characters in regular expressions

Configured in

no-debugger docs

Disallow the use of debugger

no-delete-var docs

Disallow deleting variables

Configured in

no-div-regex docs

Disallow equal signs explicitly at the beginning of regular expressions

Not configured in any preset

no-dupe-args docs

Disallow duplicate arguments in function definitions

Configured in

no-dupe-class-members docs

Disallow duplicate class members

Configured in

no-dupe-else-if docs

Disallow duplicate conditions in if-else-if chains

Configured in

no-dupe-keys docs

Disallow duplicate keys in object literals

Configured in

no-duplicate-case docs

Disallow duplicate case labels

Configured in

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

no-empty-character-class docs

Disallow empty character classes in regular expressions

no-empty-function docs

Disallow empty functions

no-empty-pattern docs

Disallow empty destructuring patterns

no-empty-static-block docs

Disallow empty static blocks

no-eq-null docs

Disallow null comparisons without type-checking operators

Not configured in any preset

no-eval docs

Disallow the use of eval()

no-ex-assign docs

Disallow reassigning exceptions in catch clauses

Configured in

no-extend-native docs

Disallow extending native types

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

no-extra-label docs

Disallow unnecessary labels

Not configured in any preset

no-extra-parens docs

Disallow unnecessary parentheses

Configured in

no-extra-semi docs

Disallow unnecessary semicolons

Configured in

no-fallthrough docs

Disallow fallthrough of case statements

Configured in

no-floating-decimal docs

Disallow leading or trailing decimal points in numeric literals

Configured in

no-func-assign docs

Disallow reassigning function declarations

Configured in

no-global-assign docs

Disallow assignments to native objects or read-only global variables

Configured in

no-implicit-coercion docs

Disallow shorthand type conversions

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

no-import-assign docs

Disallow assigning to imported bindings

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

no-invalid-regexp docs

Disallow invalid regular expression strings in RegExp constructors

Configured in

no-invalid-this docs

Disallow use of this in contexts where the value of this is undefined

Configured in

no-irregular-whitespace docs

Disallow irregular whitespace

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

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-loss-of-precision docs

Disallow literal numbers that lose precision

Configured in

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-operators docs

Disallow mixed binary operators

Configured in

no-mixed-requires docs

Disallow require calls to be mixed with regular variable declarations

Not configured in any preset

no-mixed-spaces-and-tabs docs

Disallow mixed spaces and tabs for indentation

Configured in

no-multi-assign docs

Disallow use of chained assignment expressions

no-multi-spaces docs

Disallow multiple spaces

Configured in

no-multi-str docs

Disallow multiline strings

Not configured in any preset

no-multiple-empty-lines docs

Disallow multiple empty lines

Configured in

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

Configured in

no-nonoctal-decimal-escape docs

Disallow \8 and \9 escape sequences in string literals

Configured in

no-obj-calls docs

Disallow calling global object properties as functions

Configured in

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-param-reassign docs

Disallow reassigning function parameters

Configured in

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

Configured in

no-proto docs

Disallow the use of the __proto__ property

Configured in

no-prototype-builtins docs

Disallow calling some Object.prototype methods directly on objects

Configured in

no-redeclare docs

Disallow variable redeclaration

Not configured in any preset

no-regex-spaces docs

Disallow multiple spaces in regular expressions

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

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

Configured in

no-self-compare docs

Disallow comparisons where both sides are exactly the same

Configured in

no-sequences docs

Disallow comma operators

no-setter-return docs

Disallow returning values from setters

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

Configured in

no-spaced-func docs

Disallow spacing between function identifiers and their applications (deprecated)

Configured in

no-sparse-arrays docs

Disallow sparse arrays

Configured in

no-sync docs

Disallow synchronous methods

Not configured in any preset

no-tabs docs

Disallow all tabs

Configured in

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

Configured in

no-throw-literal docs

Disallow throwing literals as exceptions

no-trailing-spaces docs

Disallow trailing whitespace at the end of lines

Configured in

no-undef docs

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

Configured in

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-unexpected-multiline docs

Disallow confusing multiline expressions

Configured in

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

Configured in

no-unreachable-loop docs

Disallow loops with a body that allows only one iteration

Not configured in any preset

no-unsafe-finally docs

Disallow control flow statements in finally blocks

Configured in

no-unsafe-negation docs

Disallow negating the left operand of relational operators

Configured in

no-unsafe-optional-chaining docs

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

Configured in

no-unused-expressions docs

Disallow unused expressions

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

no-use-before-define docs

Disallow the use of variables before they are defined

no-useless-backreference docs

Disallow useless backreferences in regular expressions

no-useless-call docs

Disallow unnecessary calls to .call() and .apply()

Not configured in any preset

no-useless-catch docs

Disallow unnecessary catch clauses

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

no-useless-constructor docs

Disallow unnecessary constructors

Not configured in any preset

no-useless-escape docs

Disallow unnecessary escape characters

no-useless-rename docs

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

no-useless-return docs

Disallow redundant return statements

no-var docs

Require let or const instead of var

no-void docs

Disallow void operators

no-warning-comments docs

Disallow specified warning terms in comments

Not configured in any preset

no-whitespace-before-property docs

Disallow whitespace before properties

Configured in

no-with docs

Disallow with statements

Configured in

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-curly-spacing docs

Enforce consistent spacing inside 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

one-var docs

Enforce variables to be declared either together or separately in functions

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

operator-linebreak docs

Enforce consistent linebreak style for operators

Configured in

padded-blocks docs

Require or disallow padding within blocks

Configured in

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

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

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

quote-props docs

Require quotes around object literal property names

Configured in

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()

Configured in

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

semi docs

Require or disallow semicolons instead of ASI

Configured in

semi-spacing docs

Enforce consistent spacing before and after semicolons

Configured in

semi-style docs

Enforce location of semicolons

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-blocks docs

Enforce consistent spacing before blocks

Configured in

space-before-function-paren docs

Enforce consistent spacing before function definition opening parenthesis

Configured in

space-in-parens docs

Enforce consistent spacing inside parentheses

Configured in

space-infix-ops docs

Require spacing around infix operators

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

switch-colon-spacing docs

Enforce spacing around colons of switch statements

Configured in

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

unicode-bom docs

Require or disallow Unicode byte order mark (BOM)

Configured in

use-isnan docs

Require calls to isNaN() when checking for NaN

Configured in

valid-jsdoc docs

Enforce valid JSDoc comments

Not configured in any preset

valid-typeof docs

Enforce comparing typeof expressions against valid strings

Configured in

vars-on-top docs

Require var declarations be placed at the top of their containing scope

Not configured in any preset

wrap-iife docs

Require parentheses around immediate function invocations

Configured in

wrap-regex docs

Require parenthesis around regex literals

Configured in

yield-star-spacing docs

Require or disallow spacing around the * in yield* expressions

Configured in

yoda docs

Require or disallow "Yoda" conditions