Table of Contents
Developer Guide
Architecture
Change Requests
Code Conventions
Code Path Analysis Details
Contributing
Contributing
Developer Guide
Development Environment
New Rules
Node.js API
Pull Requests
Reporting Bugs
Rule Changes
ScopeManager
Selectors
Shareable Configs
Source Code
Unit Tests
Working on Issues
Working with Custom Formatters
Working with Custom Parsers
Working with Plugins
Working with Rules
Working with Rules (Deprecated)
Guide
Command Line Interface
Configuration Files
Configuring ESLint
Configuring ESLint
ESLint Formatters
ESLint Formatters
Ignoring Code
Integrations
Language Options
Migrating from JSCS
Migrating to v1.0.0
Migrating to v2.0.0
Migrating to v3.0.0
Migrating to v4.0.0
Migrating to v5.0.0
Migrating to v6.0.0
Migrating to v7.0.0
Migrating to v8.0.0
Plugins
Rule Deprecation
Rules
Rules
User Guide
Rules
accessor-pairs
array-bracket-newline
array-bracket-spacing
array-callback-return
array-element-newline
arrow-body-style
arrow-parens
arrow-spacing
block-scoped-var
block-spacing
brace-style
callback-return
camelcase
capitalized-comments
class-methods-use-this
comma-dangle
comma-spacing
comma-style
complexity
computed-property-spacing
consistent-return
consistent-this
constructor-super
curly
default-case
default-case-last
default-param-last
dot-location
dot-notation
eol-last
eqeqeq
for-direction
func-call-spacing
func-name-matching
func-names
func-style
function-call-argument-newline
function-paren-newline
generator-star
generator-star-spacing
getter-return
global-require
global-strict
grouped-accessor-pairs
guard-for-in
handle-callback-err
id-denylist
id-denylist
id-length
id-match
implicit-arrow-linebreak
indent
indent-legacy
init-declarations
jsx-quotes
key-spacing
keyword-spacing
line-comment-position
linebreak-style
lines-around-comment
lines-around-directive
lines-between-class-members
max-classes-per-file
max-depth
max-len
max-lines
max-lines-per-function
max-nested-callbacks
max-params
max-statements
max-statements-per-line
multiline-comment-style
multiline-ternary
new-cap
new-parens
newline-after-var
newline-before-return
newline-per-chained-call
no-alert
no-array-constructor
no-arrow-condition
no-async-promise-executor
no-await-in-loop
no-bitwise
no-buffer-constructor
no-caller
no-case-declarations
no-catch-shadow
no-class-assign
no-comma-dangle
no-compare-neg-zero
no-cond-assign
no-confusing-arrow
no-console
no-const-assign
no-constant-binary-expression
no-constant-condition
no-constructor-return
no-continue
no-control-regex
no-debugger
no-delete-var
no-div-regex
no-dupe-args
no-dupe-class-members
no-dupe-else-if
no-dupe-keys
no-duplicate-case
no-duplicate-imports
no-else-return
no-empty
no-empty-character-class
no-empty-class
no-empty-function
no-empty-label
no-empty-pattern
no-eq-null
no-eval
no-ex-assign
no-extend-native
no-extra-bind
no-extra-boolean-cast
no-extra-label
no-extra-parens
no-extra-semi
no-extra-strict
no-fallthrough
no-floating-decimal
no-func-assign
no-global-assign
no-implicit-coercion
no-implicit-globals
no-implied-eval
no-import-assign
no-inline-comments
no-inner-declarations
no-invalid-regexp
no-invalid-this
no-irregular-whitespace
no-iterator
no-label-var
no-labels
no-lone-blocks
no-lonely-if
no-loop-func
no-loss-of-precision
no-magic-numbers
no-misleading-character-class
no-mixed-operators
no-mixed-requires
no-mixed-spaces-and-tabs
no-multi-assign
no-multi-spaces
no-multi-str
no-multiple-empty-lines
no-native-reassign
no-negated-condition
no-negated-in-lhs
no-nested-ternary
no-new
no-new-func
no-new-object
no-new-require
no-new-symbol
no-new-wrappers
no-nonoctal-decimal-escape
no-obj-calls
no-octal
no-octal-escape
no-param-reassign
no-path-concat
no-plusplus
no-process-env
no-process-exit
no-promise-executor-return
no-proto
no-prototype-builtins
no-redeclare
no-regex-spaces
no-reserved-keys
no-restricted-exports
no-restricted-globals
no-restricted-imports
no-restricted-modules
no-restricted-properties
no-restricted-syntax
no-return-assign
no-return-await
no-script-url
no-self-assign
no-self-compare
no-sequences
no-setter-return
no-shadow
no-shadow-restricted-names
no-space-before-semi
no-spaced-func
no-sparse-arrays
no-sync
no-tabs
no-template-curly-in-string
no-ternary
no-this-before-super
no-throw-literal
no-trailing-spaces
no-undef
no-undef-init
no-undefined
no-underscore-dangle
no-unexpected-multiline
no-unmodified-loop-condition
no-unneeded-ternary
no-unreachable
no-unreachable-loop
no-unsafe-finally
no-unsafe-negation
no-unsafe-optional-chaining
no-unused-expressions
no-unused-labels
no-unused-private-class-members
no-unused-vars
no-use-before-define
no-useless-backreference
no-useless-call
no-useless-catch
no-useless-computed-key
no-useless-concat
no-useless-constructor
no-useless-escape
no-useless-rename
no-useless-return
no-var
no-void
no-warning-comments
no-whitespace-before-property
no-with
no-wrap-func
nonblock-statement-body-position
object-curly-newline
object-curly-spacing
object-property-newline
object-shorthand
one-var
one-var-declaration-per-line
operator-assignment
operator-linebreak
padded-blocks
padding-line-between-statements
prefer-arrow-callback
prefer-const
prefer-destructuring
prefer-exponentiation-operator
prefer-named-capture-group
prefer-numeric-literals
prefer-object-has-own
prefer-object-spread
prefer-promise-reject-errors
prefer-reflect
prefer-regex-literals
prefer-rest-params
prefer-spread
prefer-template
quote-props
quotes
radix
require-atomic-updates
require-await
require-jsdoc
require-unicode-regexp
require-yield
rest-spread-spacing
Rules
semi
semi-spacing
semi-style
sort-imports
sort-keys
sort-vars
space-after-function-name
space-after-keywords
space-before-blocks
space-before-function-paren
space-before-function-parentheses
space-before-keywords
space-in-brackets
space-in-parens
space-infix-ops
space-return-throw-case
space-unary-ops
space-unary-word-ops
spaced-comment
spaced-line-comment
strict
switch-colon-spacing
symbol-description
template-curly-spacing
template-tag-spacing
unicode-bom
use-isnan
valid-jsdoc
valid-typeof
vars-on-top
wrap-iife
wrap-regex
yield-star-spacing
yoda
中文
English
A
A
Serif
Sans
White
Sepia
Night
首页
API Docs
工具
首页
API Docs
工具
eslint
/
8.16.0
/
8.0.0
/
Files
File Name
user-guide/
Name
ESLint
Version
8.16.0
Badge
Last Updated
2022-05-25T19:21:24Z