ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAE
1
Pulled from http://eslint.org/docs/rules/
2
Specify off, warn, or error
3
Specify options based on reference when not using default
4
5
Chris GBenHung-Su
6
CategoryRecommendedFixable w/ --fixRule NameReferenceDescription
7
8
Possible Errors
9
for-directionReferenceenforce “for” loop update clause moving the counter in the right direction.
10
getter-returnReferenceenforce return statements in getters
11
no-await-in-loopReferencedisallow await inside of loops
12
Xno-compare-neg-zeroReferencedisallow comparing against -0
13
Xno-cond-assignReferencedisallow assignment operators in conditional expressions
14
Xno-consoleReferencedisallow the use of console
15
Xno-constant-conditionReferencedisallow constant expressions in conditions
16
Xno-control-regexReferencedisallow control characters in regular expressions
17
XXno-debuggerReferencedisallow the use of debugger
18
Xno-dupe-argsReferencedisallow duplicate arguments in function definitions
19
Xno-dupe-keysReferencedisallow duplicate keys in object literals
20
Xno-duplicate-caseReferencedisallow duplicate case labels
21
Xno-emptyReferencedisallow empty block statements
22
Xno-empty-character-classReferencedisallow empty character classes in regular expressions
23
Xno-ex-assignReferencedisallow reassigning exceptions in catch clauses
24
XXno-extra-boolean-castReferencedisallow unnecessary boolean casts
25
Xno-extra-parensReferencedisallow unnecessary parentheses
26
XXno-extra-semiReferencedisallow unnecessary semicolons
27
Xno-func-assignReferencedisallow reassigning function declarations
28
Xno-inner-declarationsReferencedisallow variable or function declarations in nested blocks
29
Xno-invalid-regexpReferencedisallow invalid regular expression strings in RegExp constructors
30
Xno-irregular-whitespaceReferencedisallow irregular whitespace outside of strings and comments
31
Xno-obj-callsReferencedisallow calling global object properties as functions
32
no-prototype-builtinsReferencedisallow calling some Object.prototype methods directly on objects
33
XXno-regex-spacesReferencedisallow multiple spaces in regular expressions
34
Xno-sparse-arraysReferencedisallow sparse arrays
35
no-template-curly-in-stringReferencedisallow template literal placeholder syntax in regular strings
36
Xno-unexpected-multilineReferencedisallow confusing multiline expressions
37
Xno-unreachableReferencedisallow unreachable code after returnthrowcontinue
and break statements
38
Xno-unsafe-finallyReferencedisallow control flow statements in finally blocks
39
XXno-unsafe-negationReferencedisallow negating the left operand of relational operators
40
Xuse-isnanReferencerequire calls to isNaN() when checking for NaN
41
valid-jsdocReferenceenforce valid JSDoc comments
42
Xvalid-typeofReferenceenforce comparing typeof expressions against valid strings
43
44
Best Practices
45
accessor-pairsReferenceenforce getter and setter pairs in objects
46
array-callback-returnReferenceenforce return statements in callbacks of array methods
47
block-scoped-varReferenceenforce the use of variables within the scope they are defined
48
class-methods-use-thisReferenceenforce that class methods utilize this
49
complexityReferenceenforce a maximum cyclomatic complexity allowed in a program
50
consistent-returnReferencerequire return statements to either always or never specify values
51
XcurlyReferenceenforce consistent brace style for all control statements
52
default-caseReferencerequire default cases in switch statements
53
Xdot-locationReferenceenforce consistent newlines before and after dots
54
Xdot-notationReferenceenforce dot notation whenever possible
55
XeqeqeqReferencerequire the use of === and !==
56
guard-for-inReferencerequire for-in loops to include an if statement
57
no-alertReferencedisallow the use of alertconfirmand prompt
58
no-callerReferencedisallow the use of arguments.caller or arguments.callee
59
Xno-case-declarationsReferencedisallow lexical declarations in case clauses
60
no-div-regexReferencedisallow division operators explicitly at the beginning of regular expressions
61
Xno-else-returnReferencedisallow else blocks after return statements in if statements
62
no-empty-functionReferencedisallow empty functions
63
Xno-empty-patternReferencedisallow empty destructuring patterns
64
no-eq-nullReferencedisallow null comparisons without type-checking operators
65
no-evalReferencedisallow the use of eval()
66
no-extend-nativeReferencedisallow extending native types
67
Xno-extra-bindReferencedisallow unnecessary calls to .bind()
68
Xno-extra-labelReferencedisallow unnecessary labels
69
Xno-fallthroughReferencedisallow fallthrough of case statements
70
Xno-floating-decimalReferencedisallow leading or trailing decimal points in numeric literals
71
Xno-global-assignReferencedisallow assignments to native objects or read-only global variables
72
Xno-implicit-coercionReferencedisallow shorthand type conversions
73
no-implicit-globalsReferencedisallow variable and function declarations in the global scope
74
no-implied-evalReferencedisallow the use of eval()-like methods
75
no-invalid-thisReferencedisallow this keywords outside of classes or class-like objects
76
no-iteratorReferencedisallow the use of the __iterator__ property
77
no-labelsReferencedisallow labeled statements
78
no-lone-blocksReferencedisallow unnecessary nested blocks
79
no-loop-funcReferencedisallow function declarations and expressions inside loop statements
80
no-magic-numbersReferencedisallow magic numbers
81
Xno-multi-spacesReferencedisallow multiple spaces
82
no-multi-strReferencedisallow multiline strings
83
no-newReferencedisallow new operators outside of assignments or comparisons
84
no-new-funcReferencedisallow new operators with the Function object
85
no-new-wrappersReferencedisallow new operators with the StringNumber
and Boolean objects
86
Xno-octalReferencedisallow octal literals
87
no-octal-escapeReferencedisallow octal escape sequences in string literals
88
no-param-reassignReferencedisallow reassigning function parameters
89
no-protoReferencedisallow the use of the __proto__ property
90
Xno-redeclareReferencedisallow variable redeclaration
91
no-restricted-propertiesReferencedisallow certain properties on certain objects
92
no-return-assignReferencedisallow assignment operators in return statements
93
no-return-awaitReferencedisallow unnecessary return await
94
no-script-urlReferencedisallow javascript: urls
95
Xno-self-assignReferencedisallow assignments where both sides are exactly the same
96
no-self-compareReferencedisallow comparisons where both sides are exactly the same
97
no-sequencesReferencedisallow comma operators
98
no-throw-literalReferencedisallow throwing literals as exceptions
99
no-unmodified-loop-conditionReferencedisallow unmodified loop conditions
100
no-unused-expressionsReferencedisallow unused expressions