A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | AA | AB | AC | AD | AE | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 G | Ben | Hung-Su | ||||||||||||||||||||||||||||
6 | Category | Recommended | Fixable w/ --fix | Rule Name | Reference | Description | |||||||||||||||||||||||||
7 | |||||||||||||||||||||||||||||||
8 | Possible Errors | ||||||||||||||||||||||||||||||
9 | for-direction | Reference | enforce “for” loop update clause moving the counter in the right direction. | ||||||||||||||||||||||||||||
10 | getter-return | Reference | enforce return statements in getters | ||||||||||||||||||||||||||||
11 | no-await-in-loop | Reference | disallow await inside of loops | ||||||||||||||||||||||||||||
12 | X | no-compare-neg-zero | Reference | disallow comparing against -0 | |||||||||||||||||||||||||||
13 | X | no-cond-assign | Reference | disallow assignment operators in conditional expressions | |||||||||||||||||||||||||||
14 | X | no-console | Reference | disallow the use of console | |||||||||||||||||||||||||||
15 | X | no-constant-condition | Reference | disallow constant expressions in conditions | |||||||||||||||||||||||||||
16 | X | no-control-regex | Reference | disallow control characters in regular expressions | |||||||||||||||||||||||||||
17 | X | X | no-debugger | Reference | disallow the use of debugger | ||||||||||||||||||||||||||
18 | X | no-dupe-args | Reference | disallow duplicate arguments in function definitions | |||||||||||||||||||||||||||
19 | X | no-dupe-keys | Reference | disallow duplicate keys in object literals | |||||||||||||||||||||||||||
20 | X | no-duplicate-case | Reference | disallow duplicate case labels | |||||||||||||||||||||||||||
21 | X | no-empty | Reference | disallow empty block statements | |||||||||||||||||||||||||||
22 | X | no-empty-character-class | Reference | disallow empty character classes in regular expressions | |||||||||||||||||||||||||||
23 | X | no-ex-assign | Reference | disallow reassigning exceptions in catch clauses | |||||||||||||||||||||||||||
24 | X | X | no-extra-boolean-cast | Reference | disallow unnecessary boolean casts | ||||||||||||||||||||||||||
25 | X | no-extra-parens | Reference | disallow unnecessary parentheses | |||||||||||||||||||||||||||
26 | X | X | no-extra-semi | Reference | disallow unnecessary semicolons | ||||||||||||||||||||||||||
27 | X | no-func-assign | Reference | disallow reassigning function declarations | |||||||||||||||||||||||||||
28 | X | no-inner-declarations | Reference | disallow variable or function declarations in nested blocks | |||||||||||||||||||||||||||
29 | X | no-invalid-regexp | Reference | disallow invalid regular expression strings in RegExp constructors | |||||||||||||||||||||||||||
30 | X | no-irregular-whitespace | Reference | disallow irregular whitespace outside of strings and comments | |||||||||||||||||||||||||||
31 | X | no-obj-calls | Reference | disallow calling global object properties as functions | |||||||||||||||||||||||||||
32 | no-prototype-builtins | Reference | disallow calling some Object.prototype methods directly on objects | ||||||||||||||||||||||||||||
33 | X | X | no-regex-spaces | Reference | disallow multiple spaces in regular expressions | ||||||||||||||||||||||||||
34 | X | no-sparse-arrays | Reference | disallow sparse arrays | |||||||||||||||||||||||||||
35 | no-template-curly-in-string | Reference | disallow template literal placeholder syntax in regular strings | ||||||||||||||||||||||||||||
36 | X | no-unexpected-multiline | Reference | disallow confusing multiline expressions | |||||||||||||||||||||||||||
37 | X | no-unreachable | Reference | disallow unreachable code after return | throw | continue | and break statements | ||||||||||||||||||||||||
38 | X | no-unsafe-finally | Reference | disallow control flow statements in finally blocks | |||||||||||||||||||||||||||
39 | X | X | no-unsafe-negation | Reference | disallow negating the left operand of relational operators | ||||||||||||||||||||||||||
40 | X | use-isnan | Reference | require calls to isNaN() when checking for NaN | |||||||||||||||||||||||||||
41 | valid-jsdoc | Reference | enforce valid JSDoc comments | ||||||||||||||||||||||||||||
42 | X | valid-typeof | Reference | enforce comparing typeof expressions against valid strings | |||||||||||||||||||||||||||
43 | |||||||||||||||||||||||||||||||
44 | Best Practices | ||||||||||||||||||||||||||||||
45 | accessor-pairs | Reference | enforce getter and setter pairs in objects | ||||||||||||||||||||||||||||
46 | array-callback-return | Reference | enforce return statements in callbacks of array methods | ||||||||||||||||||||||||||||
47 | block-scoped-var | Reference | enforce the use of variables within the scope they are defined | ||||||||||||||||||||||||||||
48 | class-methods-use-this | Reference | enforce that class methods utilize this | ||||||||||||||||||||||||||||
49 | complexity | Reference | enforce a maximum cyclomatic complexity allowed in a program | ||||||||||||||||||||||||||||
50 | consistent-return | Reference | require return statements to either always or never specify values | ||||||||||||||||||||||||||||
51 | X | curly | Reference | enforce consistent brace style for all control statements | |||||||||||||||||||||||||||
52 | default-case | Reference | require default cases in switch statements | ||||||||||||||||||||||||||||
53 | X | dot-location | Reference | enforce consistent newlines before and after dots | |||||||||||||||||||||||||||
54 | X | dot-notation | Reference | enforce dot notation whenever possible | |||||||||||||||||||||||||||
55 | X | eqeqeq | Reference | require the use of === and !== | |||||||||||||||||||||||||||
56 | guard-for-in | Reference | require for-in loops to include an if statement | ||||||||||||||||||||||||||||
57 | no-alert | Reference | disallow the use of alert | confirm | and prompt | ||||||||||||||||||||||||||
58 | no-caller | Reference | disallow the use of arguments.caller or arguments.callee | ||||||||||||||||||||||||||||
59 | X | no-case-declarations | Reference | disallow lexical declarations in case clauses | |||||||||||||||||||||||||||
60 | no-div-regex | Reference | disallow division operators explicitly at the beginning of regular expressions | ||||||||||||||||||||||||||||
61 | X | no-else-return | Reference | disallow else blocks after return statements in if statements | |||||||||||||||||||||||||||
62 | no-empty-function | Reference | disallow empty functions | ||||||||||||||||||||||||||||
63 | X | no-empty-pattern | Reference | disallow empty destructuring patterns | |||||||||||||||||||||||||||
64 | no-eq-null | Reference | disallow null comparisons without type-checking operators | ||||||||||||||||||||||||||||
65 | no-eval | Reference | disallow the use of eval() | ||||||||||||||||||||||||||||
66 | no-extend-native | Reference | disallow extending native types | ||||||||||||||||||||||||||||
67 | X | no-extra-bind | Reference | disallow unnecessary calls to .bind() | |||||||||||||||||||||||||||
68 | X | no-extra-label | Reference | disallow unnecessary labels | |||||||||||||||||||||||||||
69 | X | no-fallthrough | Reference | disallow fallthrough of case statements | |||||||||||||||||||||||||||
70 | X | no-floating-decimal | Reference | disallow leading or trailing decimal points in numeric literals | |||||||||||||||||||||||||||
71 | X | no-global-assign | Reference | disallow assignments to native objects or read-only global variables | |||||||||||||||||||||||||||
72 | X | no-implicit-coercion | Reference | disallow shorthand type conversions | |||||||||||||||||||||||||||
73 | no-implicit-globals | Reference | disallow variable and function declarations in the global scope | ||||||||||||||||||||||||||||
74 | no-implied-eval | Reference | disallow the use of eval()-like methods | ||||||||||||||||||||||||||||
75 | no-invalid-this | Reference | disallow this keywords outside of classes or class-like objects | ||||||||||||||||||||||||||||
76 | no-iterator | Reference | disallow the use of the __iterator__ property | ||||||||||||||||||||||||||||
77 | no-labels | Reference | disallow labeled statements | ||||||||||||||||||||||||||||
78 | no-lone-blocks | Reference | disallow unnecessary nested blocks | ||||||||||||||||||||||||||||
79 | no-loop-func | Reference | disallow function declarations and expressions inside loop statements | ||||||||||||||||||||||||||||
80 | no-magic-numbers | Reference | disallow magic numbers | ||||||||||||||||||||||||||||
81 | X | no-multi-spaces | Reference | disallow multiple spaces | |||||||||||||||||||||||||||
82 | no-multi-str | Reference | disallow multiline strings | ||||||||||||||||||||||||||||
83 | no-new | Reference | disallow new operators outside of assignments or comparisons | ||||||||||||||||||||||||||||
84 | no-new-func | Reference | disallow new operators with the Function object | ||||||||||||||||||||||||||||
85 | no-new-wrappers | Reference | disallow new operators with the String | Number | and Boolean objects | ||||||||||||||||||||||||||
86 | X | no-octal | Reference | disallow octal literals | |||||||||||||||||||||||||||
87 | no-octal-escape | Reference | disallow octal escape sequences in string literals | ||||||||||||||||||||||||||||
88 | no-param-reassign | Reference | disallow reassigning function parameters | ||||||||||||||||||||||||||||
89 | no-proto | Reference | disallow the use of the __proto__ property | ||||||||||||||||||||||||||||
90 | X | no-redeclare | Reference | disallow variable redeclaration | |||||||||||||||||||||||||||
91 | no-restricted-properties | Reference | disallow certain properties on certain objects | ||||||||||||||||||||||||||||
92 | no-return-assign | Reference | disallow assignment operators in return statements | ||||||||||||||||||||||||||||
93 | no-return-await | Reference | disallow unnecessary return await | ||||||||||||||||||||||||||||
94 | no-script-url | Reference | disallow javascript: urls | ||||||||||||||||||||||||||||
95 | X | no-self-assign | Reference | disallow assignments where both sides are exactly the same | |||||||||||||||||||||||||||
96 | no-self-compare | Reference | disallow comparisons where both sides are exactly the same | ||||||||||||||||||||||||||||
97 | no-sequences | Reference | disallow comma operators | ||||||||||||||||||||||||||||
98 | no-throw-literal | Reference | disallow throwing literals as exceptions | ||||||||||||||||||||||||||||
99 | no-unmodified-loop-condition | Reference | disallow unmodified loop conditions | ||||||||||||||||||||||||||||
100 | no-unused-expressions | Reference | disallow unused expressions |