5 // Enforce return statements in callbacks of array methods.
6 "array-callback-return": "error",
8 // Verify calls of super() in constructors.
9 "constructor-super": "error",
11 // Require default case in switch statements.
12 "default-case": "error",
14 // Disallow use of alert(), confirm(), and prompt().
17 // Disallow likely erroneous `switch` scoped lexical declarations in
18 // case/default clauses.
19 "no-case-declarations": "error",
21 // Disallow use of the console API.
22 "no-console": "error",
24 // Disallow constant expressions in conditions (except for loops).
25 "no-constant-condition": ["error", { "checkLoops": false }],
27 // Disallow extending of native objects.
28 "no-extend-native": "error",
30 // Disallow case statement fallthrough without explicit `// falls through`
32 "no-fallthrough": "error",
34 // No reassigning native JS objects or read only globals.
35 "no-global-assign": "error",
37 // Disallow use of assignment in return statement.
38 "no-return-assign": ["error", "always"],
40 // Disallow template literal placeholder syntax in regular strings.
41 "no-template-curly-in-string": "error",
43 // Disallow use of this/super before calling super() in constructors.
44 "no-this-before-super": "error",
46 // Disallow unmodified loop conditions.
47 "no-unmodified-loop-condition": "error",
49 // No expressions where a statement is expected
50 "no-unused-expressions": "error",
52 // Disallow unnecessary escape usage in strings and regular expressions.
53 "no-useless-escape": "error",
55 // Require "use strict" to be defined globally in the script.
56 "strict": ["error", "global"],
58 // Enforce valid JSDoc comments.
59 "valid-jsdoc": ["error", {
60 "requireParamDescription": false,
61 "requireReturn": false,
62 "requireReturnDescription": false,
65 // Disallow Yoda conditions.
66 "yoda": ["error", "never"],