Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
.gitattributes
README.md
accessor-pairs.md
array-bracket-newline.md
array-bracket-spacing.md
array-callback-return.md
array-element-newline.md
arrow-body-style.md
arrow-parens.md
arrow-spacing.md
block-scoped-var.md
block-spacing.md
brace-style.md
callback-return.md
camelcase.md
capitalized-comments.md
class-methods-use-this.md
comma-dangle.md
comma-spacing.md
comma-style.md
complexity.md
computed-property-spacing.md
consistent-return.md
consistent-this.md
constructor-super.md
curly.md
default-case.md
dot-location.md
dot-notation.md
eol-last.md
eqeqeq.md
for-direction.md
func-call-spacing.md
func-name-matching.md
func-names.md
func-style.md
function-paren-newline.md
generator-star-spacing.md
generator-star.md
getter-return.md
global-require.md
global-strict.md
guard-for-in.md
handle-callback-err.md
id-blacklist.md
id-length.md
id-match.md
implicit-arrow-linebreak.md
indent-legacy.md
indent.md
index.md
init-declarations.md
jsx-quotes.md
key-spacing.md
keyword-spacing.md
line-comment-position.md
linebreak-style.md
lines-around-comment.md
lines-around-directive.md
lines-between-class-members.md
max-classes-per-file.md
max-depth.md
max-len.md
max-lines-per-function.md
max-lines.md
max-nested-callbacks.md
max-params.md
max-statements-per-line.md
max-statements.md
multiline-comment-style.md
multiline-ternary.md
new-cap.md
new-parens.md
newline-after-var.md
newline-before-return.md
newline-per-chained-call.md
no-alert.md
no-array-constructor.md
no-arrow-condition.md
no-async-promise-executor.md
no-await-in-loop.md
no-bitwise.md
no-buffer-constructor.md
no-caller.md
no-case-declarations.md
no-catch-shadow.md
no-class-assign.md
no-comma-dangle.md
no-compare-neg-zero.md
no-cond-assign.md
no-confusing-arrow.md
no-console.md
no-const-assign.md
no-constant-condition.md
no-continue.md
no-control-regex.md
no-debugger.md
no-delete-var.md
no-div-regex.md
no-dupe-args.md
no-dupe-class-members.md
no-dupe-keys.md
no-duplicate-case.md
no-duplicate-imports.md
no-else-return.md
no-empty-character-class.md
no-empty-class.md
no-empty-function.md
no-empty-label.md
no-empty-pattern.md
no-empty.md
no-eq-null.md
no-eval.md
no-ex-assign.md
no-extend-native.md
no-extra-bind.md
no-extra-boolean-cast.md
no-extra-label.md
no-extra-parens.md
no-extra-semi.md
no-extra-strict.md
no-fallthrough.md
no-floating-decimal.md
no-func-assign.md
no-global-assign.md
no-implicit-coercion.md
no-implicit-globals.md
no-implied-eval.md
no-inline-comments.md
no-inner-declarations.md
no-invalid-regexp.md
no-invalid-this.md
no-irregular-whitespace.md
no-iterator.md
no-label-var.md
no-labels.md
no-lone-blocks.md
no-lonely-if.md
no-loop-func.md
no-magic-numbers.md
no-misleading-character-class.md
no-mixed-operators.md
no-mixed-requires.md
no-mixed-spaces-and-tabs.md
no-multi-assign.md
no-multi-spaces.md
no-multi-str.md
no-multiple-empty-lines.md
no-native-reassign.md
no-negated-condition.md
no-negated-in-lhs.md
no-nested-ternary.md
no-new-func.md
no-new-object.md
no-new-require.md
no-new-symbol.md
no-new-wrappers.md
no-new.md
no-obj-calls.md
no-octal-escape.md
no-octal.md
no-param-reassign.md
no-path-concat.md
no-plusplus.md
no-process-env.md
no-process-exit.md
no-proto.md
no-prototype-builtins.md
no-redeclare.md
no-regex-spaces.md
no-reserved-keys.md
no-restricted-globals.md
no-restricted-imports.md
no-restricted-modules.md
no-restricted-properties.md
no-restricted-syntax.md
no-return-assign.md
no-return-await.md
no-script-url.md
no-self-assign.md
no-self-compare.md
no-sequences.md
no-shadow-restricted-names.md
no-shadow.md
no-space-before-semi.md
no-spaced-func.md
no-sparse-arrays.md
no-sync.md
no-tabs.md
no-template-curly-in-string.md
no-ternary.md
no-this-before-super.md
no-throw-literal.md
no-trailing-spaces.md
no-undef-init.md
no-undef.md
no-undefined.md
no-underscore-dangle.md
no-unexpected-multiline.md
no-unmodified-loop-condition.md
no-unneeded-ternary.md
no-unreachable.md
no-unsafe-finally.md
no-unsafe-negation.md
no-unused-expressions.md
no-unused-labels.md
no-unused-vars.md
no-use-before-define.md
no-useless-call.md
no-useless-catch.md
no-useless-computed-key.md
no-useless-concat.md
no-useless-constructor.md
no-useless-escape.md
no-useless-rename.md
no-useless-return.md
no-var.md
no-void.md
no-warning-comments.md
no-whitespace-before-property.md
no-with.md
no-wrap-func.md
nonblock-statement-body-position.md
object-curly-newline.md
object-curly-spacing.md
object-property-newline.md
object-shorthand.md
one-var-declaration-per-line.md
one-var.md
operator-assignment.md
operator-linebreak.md
padded-blocks.md
padding-line-between-statements.md
prefer-arrow-callback.md
prefer-const.md
prefer-destructuring.md
prefer-named-capture-group.md
prefer-numeric-literals.md
prefer-object-spread.md
prefer-promise-reject-errors.md
prefer-reflect.md
prefer-rest-params.md
prefer-spread.md
prefer-template.md
quote-props.md
quotes.md
radix.md
require-atomic-updates.md
require-await.md
require-jsdoc.md
require-unicode-regexp.md
require-yield.md
rest-spread-spacing.md
semi-spacing.md
semi-style.md
semi.md
sort-imports.md
sort-keys.md
sort-vars.md
space-after-function-name.md
space-after-keywords.md
space-before-blocks.md
space-before-function-paren.md
space-before-function-parentheses.md
space-before-keywords.md
space-in-brackets.md
space-in-parens.md
space-infix-ops.md
space-return-throw-case.md
space-unary-ops.md
space-unary-word-ops.md
spaced-comment.md
spaced-line-comment.md
strict.md
switch-colon-spacing.md
symbol-description.md
template-curly-spacing.md
template-tag-spacing.md
unicode-bom.md
use-isnan.md
valid-jsdoc.md
valid-typeof.md
vars-on-top.md
wrap-iife.md
wrap-regex.md
yield-star-spacing.md
yoda.md

README.md

Rules

Rules in ESLint are grouped by category to help you understand their purpose.

No rules are enabled by default. The "extends": "eslint:recommended" property in a configuration file enables rules that report common problems, which have a check mark (recommended) below.

The --fix option on the command line automatically fixes problems (currently mostly whitespace) reported by rules which have a wrench (fixable) below.

Possible Errors

These rules relate to possible syntax or logic errors in JavaScript code:

Best Practices

These rules relate to better ways of doing things to help you avoid problems:

Strict Mode

These rules relate to strict mode directives:

  • strict: require or disallow strict mode directives

Variables

These rules relate to variable declarations:

Node.js and CommonJS

These rules relate to code running in Node.js, or in browsers with CommonJS:

Stylistic Issues

These rules relate to style guidelines, and are therefore quite subjective:

ECMAScript 6

These rules relate to ES6, also known as ES2015:

Removed

These rules from older versions of ESLint have been replaced by newer rules:

Removed rule Replaced by
generator-star generator-star-spacing
global-strict strict
no-arrow-condition no-confusing-arrow and no-constant-condition
no-comma-dangle comma-dangle
no-empty-class no-empty-character-class
no-empty-label no-labels
no-extra-strict strict
no-reserved-keys quote-props
no-space-before-semi semi-spacing
no-wrap-func no-extra-parens
space-after-function-name space-before-function-paren
space-after-keywords keyword-spacing
space-before-function-parentheses space-before-function-paren
space-before-keywords keyword-spacing
space-in-brackets object-curly-spacing and array-bracket-spacing
space-return-throw-case keyword-spacing
space-unary-word-ops space-unary-ops
spaced-line-comment spaced-comment
You can’t perform that action at this time.