|
3 | 3 | "amd": true,
|
4 | 4 | "browser": true,
|
5 | 5 | "es6": true,
|
6 |
| - "es2017": true, |
7 |
| - "es2020": true, |
8 |
| - "es2021": true, |
9 | 6 | "jasmine": true,
|
10 | 7 | "jquery": true,
|
11 | 8 | "prototypejs": true,
|
12 | 9 | "node": true
|
13 | 10 | },
|
14 | 11 | "rules": {
|
15 |
| - "comma-dangle": [2, "never"], |
| 12 | + "array-bracket-spacing": [2, "never"], |
| 13 | + "arrow-spacing": [2, {"after": true, "before": true}], |
| 14 | + "block-spacing": [2, "always"], |
| 15 | + "brace-style": [2, "1tbs", {"allowSingleLine": true}], |
| 16 | + "comma-dangle": [ 2, "always-multiline" ], |
| 17 | + "comma-spacing": [2, {"after": true, "before": false}], |
16 | 18 | "comma-style": [2, "last"],
|
| 19 | + "constructor-super": 2, |
17 | 20 | "curly": [2, "all"],
|
| 21 | + "dot-location": [2, "property"], |
| 22 | + "dot-notation": [2, {"allowKeywords": true}], |
18 | 23 | "eol-last": 2,
|
19 | 24 | "eqeqeq": [2, "smart"],
|
| 25 | + "func-call-spacing": [2, "never"], |
| 26 | + "generator-star-spacing": [2, {"after": true, "before": true}], |
20 | 27 | "guard-for-in": 2,
|
21 | 28 | "indent": [2, 4],
|
| 29 | + "key-spacing": [2, {"afterColon": true, "beforeColon": false}], |
22 | 30 | "keyword-spacing": [2, {"after": true, "before": true}],
|
| 31 | + "linebreak-style": [2, "unix"], |
23 | 32 | "lines-around-comment": [
|
24 | 33 | 2,
|
25 | 34 | {
|
|
28 | 37 | "allowObjectStart": true
|
29 | 38 | }
|
30 | 39 | ],
|
| 40 | + "lines-between-class-members": [2, "always", {"exceptAfterSingleLine": true}], |
31 | 41 | "max-depth": [2, 2],
|
32 | 42 | "max-len": [2, 120, 4],
|
33 | 43 | "max-nested-callbacks": [2, 3],
|
| 44 | + "multiline-ternary": [2, "always-multiline"], |
| 45 | + "new-cap": [2, {"capIsNew": false, "newIsCap": true, "properties": true}], |
| 46 | + "new-parens": 2, |
34 | 47 | "newline-after-var": 2,
|
35 | 48 | "no-alert": 2,
|
36 | 49 | "no-array-constructor": 2,
|
37 | 50 | "no-caller": 2,
|
| 51 | + "no-case-declarations": 2, |
38 | 52 | "no-catch-shadow": 2,
|
| 53 | + "no-class-assign": 2, |
| 54 | + "no-compare-neg-zero": 2, |
39 | 55 | "no-cond-assign": 2,
|
| 56 | + "no-console": 2, |
| 57 | + "no-const-assign": 2, |
40 | 58 | "no-constant-condition": 2,
|
| 59 | + "no-control-regex": 2, |
41 | 60 | "no-debugger": 2,
|
| 61 | + "no-delete-var": 2, |
| 62 | + "no-dupe-args": 2, |
| 63 | + "no-dupe-class-members": 2, |
| 64 | + "no-dupe-keys": 2, |
| 65 | + "no-duplicate-case": 2, |
42 | 66 | "no-else-return": 2,
|
| 67 | + "no-empty-character-class": 2, |
| 68 | + "no-empty-pattern": 2, |
43 | 69 | "no-empty": [2, {"allowEmptyCatch": true}],
|
44 | 70 | "no-eval": 2,
|
45 | 71 | "no-ex-assign": 2,
|
|
55 | 81 | "no-implied-eval": 2,
|
56 | 82 | "no-inner-declarations": 2,
|
57 | 83 | "no-invalid-regexp": 2,
|
| 84 | + "no-irregular-whitespace": 2, |
| 85 | + "no-iterator": 2, |
| 86 | + "no-labels": [2, {"allowLoop": false, "allowSwitch": false}], |
58 | 87 | "no-lone-blocks": 2,
|
59 | 88 | "no-lonely-if": 2,
|
60 | 89 | "no-loop-func": 2,
|
| 90 | + "no-mixed-operators": [2, {"allowSamePrecedence": true, "groups": [["==", "!=", "===", "!==", ">", ">=", "<", "<="], ["&&", "||"], ["in", "instanceof"]]}], |
61 | 91 | "no-mixed-spaces-and-tabs": 2,
|
| 92 | + "no-multi-spaces": 2, |
62 | 93 | "no-multi-str": 2,
|
63 |
| - "no-multiple-empty-lines": 2, |
| 94 | + "no-multiple-empty-lines": [2, {"max": 1, "maxEOF": 0}], |
64 | 95 | "no-native-reassign": 2,
|
65 | 96 | "no-negated-in-lhs": 2,
|
| 97 | + "no-new-func": 2, |
66 | 98 | "no-new-object": 2,
|
| 99 | + "no-new-symbol": 2, |
| 100 | + "no-new-wrappers": 2, |
| 101 | + "no-new": 2, |
| 102 | + "no-obj-calls": 2, |
| 103 | + "no-octal-escape": 2, |
| 104 | + "no-octal": 2, |
67 | 105 | "no-proto": 2,
|
| 106 | + "no-prototype-builtins": 2, |
68 | 107 | "no-redeclare": 2,
|
69 | 108 | "no-regex-spaces": 2,
|
70 | 109 | "no-return-assign": 2,
|
| 110 | + "no-self-assign": [2, {"props": true}], |
71 | 111 | "no-self-compare": 2,
|
| 112 | + "no-sequences": 2, |
72 | 113 | "no-shadow": 2,
|
| 114 | + "no-shadow-restricted-names": 2, |
| 115 | + "no-sparse-arrays": 2, |
| 116 | + "no-tabs": 2, |
| 117 | + "no-template-curly-in-string": 2, |
| 118 | + "no-this-before-super": 2, |
| 119 | + "no-throw-literal": 2, |
73 | 120 | "no-trailing-spaces": 2,
|
74 | 121 | "no-undef": 2,
|
75 | 122 | "no-undef-init": 2,
|
| 123 | + "no-unexpected-multiline": 2, |
| 124 | + "no-unmodified-loop-condition": 2, |
| 125 | + "no-unneeded-ternary": [2, {"defaultAssignment": false}], |
76 | 126 | "no-unreachable": 2,
|
| 127 | + "no-unsafe-finally": 2, |
| 128 | + "no-unsafe-negation": 2, |
| 129 | + "no-unused-expressions": [2, {"allowShortCircuit": true, "allowTaggedTemplates": true, "allowTernary": true}], |
| 130 | + "no-unused-labels": 2, |
77 | 131 | "no-unused-vars": [
|
78 | 132 | 2,
|
79 | 133 | {
|
|
89 | 143 | "no-useless-escape": 2,
|
90 | 144 | "no-useless-rename": 2,
|
91 | 145 | "no-useless-return": 2,
|
| 146 | + "no-var": 2, |
| 147 | + "no-void": 2, |
| 148 | + "no-whitespace-before-property": 2, |
92 | 149 | "no-with": 2,
|
93 |
| - "one-var": [2, "always"], |
| 150 | + "object-curly-newline": [2, {"consistent": true, "multiline": true}], |
| 151 | + "object-curly-spacing": [2, "always"], |
| 152 | + "object-property-newline": [2, {"allowMultiplePropertiesPerLine": true}], |
| 153 | + "one-var": [2, {"initialized": "never"}], |
94 | 154 | "operator-assignment": [2, "always"],
|
95 |
| - "quotes": [2, "single", {"allowTemplateLiterals": true}], |
| 155 | + "operator-linebreak": [2, "after", {"overrides": {":": "before", "?": "before", "|>": "before"}}], |
| 156 | + "padded-blocks": [2, {"blocks": "never", "classes": "never", "switches": "never"}], |
| 157 | + "prefer-const": [2, {"destructuring": "all"}], |
| 158 | + "prefer-promise-reject-errors": 2, |
| 159 | + "quote-props": [2, "as-needed"], |
| 160 | + "quotes": [2, "single", {"allowTemplateLiterals": true, "avoidEscape": true}], |
96 | 161 | "radix": 2,
|
| 162 | + "require-yield": 2, |
| 163 | + "rest-spread-spacing": [2, "never"], |
97 | 164 | "semi": [2, "always"],
|
98 | 165 | "semi-spacing": 2,
|
99 | 166 | "space-before-blocks": [2, "always"],
|
100 |
| - "space-before-function-paren": [2, {"anonymous": "always", "named": "never", "asyncArrow": "always"}], |
| 167 | + "space-before-function-paren": [2, "always"], |
101 | 168 | "space-in-parens": [2, "never"],
|
102 | 169 | "space-infix-ops": 2,
|
103 |
| - "space-unary-ops": [2, {"words": false, "nonwords": false}], |
| 170 | + "space-unary-ops": [2, {"nonwords": false, "words": true}], |
| 171 | + "spaced-comment": [2, "always", {"block": {"balanced": true, "exceptions": ["*"], "markers": ["*package", "!", ",", ":", "::", "flow-include"]}, "line": {"markers": ["*package", "!", "/", ",", "="]}}], |
104 | 172 | "strict": ["error", "function"],
|
| 173 | + "symbol-description": 2, |
| 174 | + "template-curly-spacing": [2, "never"], |
| 175 | + "template-tag-spacing": [2, "never"], |
| 176 | + "unicode-bom": [2, "never"], |
105 | 177 | "use-isnan": 2,
|
106 | 178 | "valid-typeof": 2,
|
107 | 179 | "vars-on-top": 2,
|
| 180 | + "wrap-iife": [2, "any", {"functionPrototypeMethods": true}], |
| 181 | + "yield-star-spacing": [2, "both"], |
108 | 182 | "yoda": [2, "never"]
|
109 | 183 | }
|
110 | 184 | }
|
0 commit comments