|
8 | 8 | "parserOptions": {
|
9 | 9 | "ecmaVersion": 2020
|
10 | 10 | },
|
| 11 | + "globals": { |
| 12 | + "BigInt": true |
| 13 | + }, |
11 | 14 | "rules": {
|
12 |
| - "indent": ["error", 2], |
13 |
| - "linebreak-style": ["error", "unix"], |
| 15 | + "indent": [ |
| 16 | + "error", |
| 17 | + 2 |
| 18 | + ], |
| 19 | + "linebreak-style": [ |
| 20 | + "error", |
| 21 | + "unix" |
| 22 | + ], |
14 | 23 | "quotes": [
|
15 | 24 | "error",
|
16 |
| - "single", |
17 |
| - { |
18 |
| - "allowTemplateLiterals": true |
19 |
| - } |
| 25 | + "single" |
| 26 | + ], |
| 27 | + "semi": [ |
| 28 | + "error", |
| 29 | + "always" |
| 30 | + ], |
| 31 | + "no-loop-func": [ |
| 32 | + "error" |
| 33 | + ], |
| 34 | + "block-spacing": [ |
| 35 | + "error", |
| 36 | + "always" |
| 37 | + ], |
| 38 | + "camelcase": [ |
| 39 | + "error" |
| 40 | + ], |
| 41 | + "eqeqeq": [ |
| 42 | + "error", |
| 43 | + "always" |
| 44 | + ], |
| 45 | + "strict": [ |
| 46 | + "error", |
| 47 | + "global" |
20 | 48 | ],
|
21 |
| - "semi": ["error", "always"], |
22 |
| - "no-loop-func": ["error"], |
23 |
| - "block-spacing": ["error", "always"], |
24 |
| - "camelcase": ["error"], |
25 |
| - "eqeqeq": ["error", "always"], |
26 |
| - "strict": ["error", "global"], |
27 | 49 | "brace-style": [
|
28 | 50 | "error",
|
29 | 51 | "1tbs",
|
30 | 52 | {
|
31 | 53 | "allowSingleLine": true
|
32 | 54 | }
|
33 | 55 | ],
|
34 |
| - "comma-style": ["error", "last"], |
| 56 | + "comma-style": [ |
| 57 | + "error", |
| 58 | + "last" |
| 59 | + ], |
35 | 60 | "comma-spacing": [
|
36 | 61 | "error",
|
37 | 62 | {
|
38 | 63 | "before": false,
|
39 | 64 | "after": true
|
40 | 65 | }
|
41 | 66 | ],
|
42 |
| - "eol-last": ["error"], |
43 |
| - "func-call-spacing": ["error", "never"], |
| 67 | + "eol-last": [ |
| 68 | + "error" |
| 69 | + ], |
| 70 | + "func-call-spacing": [ |
| 71 | + "error", |
| 72 | + "never" |
| 73 | + ], |
44 | 74 | "key-spacing": [
|
45 | 75 | "error",
|
46 | 76 | {
|
|
82 | 112 | "properties": true
|
83 | 113 | }
|
84 | 114 | ],
|
85 |
| - "new-parens": ["error"], |
86 |
| - "no-lonely-if": ["error"], |
87 |
| - "no-trailing-spaces": ["error"], |
88 |
| - "no-unneeded-ternary": ["error"], |
89 |
| - "no-whitespace-before-property": ["error"], |
90 |
| - "object-curly-spacing": ["error", "always"], |
91 |
| - "operator-assignment": ["error", "always"], |
92 |
| - "operator-linebreak": ["error", "after"], |
| 115 | + "new-parens": [ |
| 116 | + "error" |
| 117 | + ], |
| 118 | + "no-lonely-if": [ |
| 119 | + "error" |
| 120 | + ], |
| 121 | + "no-trailing-spaces": [ |
| 122 | + "error" |
| 123 | + ], |
| 124 | + "no-unneeded-ternary": [ |
| 125 | + "error" |
| 126 | + ], |
| 127 | + "no-whitespace-before-property": [ |
| 128 | + "error" |
| 129 | + ], |
| 130 | + "object-curly-spacing": [ |
| 131 | + "error", |
| 132 | + "always" |
| 133 | + ], |
| 134 | + "operator-assignment": [ |
| 135 | + "error", |
| 136 | + "always" |
| 137 | + ], |
| 138 | + "operator-linebreak": [ |
| 139 | + "error", |
| 140 | + "after" |
| 141 | + ], |
93 | 142 | "semi-spacing": [
|
94 | 143 | "error",
|
95 | 144 | {
|
96 | 145 | "before": false,
|
97 | 146 | "after": true
|
98 | 147 | }
|
99 | 148 | ],
|
100 |
| - "space-before-blocks": ["error", "always"], |
| 149 | + "space-before-blocks": [ |
| 150 | + "error", |
| 151 | + "always" |
| 152 | + ], |
101 | 153 | "space-before-function-paren": [
|
102 | 154 | "error",
|
103 | 155 | {
|
|
106 | 158 | "asyncArrow": "always"
|
107 | 159 | }
|
108 | 160 | ],
|
109 |
| - "space-in-parens": ["error", "never"], |
110 |
| - "space-infix-ops": ["error"], |
| 161 | + "space-in-parens": [ |
| 162 | + "error", |
| 163 | + "never" |
| 164 | + ], |
| 165 | + "space-infix-ops": [ |
| 166 | + "error" |
| 167 | + ], |
111 | 168 | "space-unary-ops": [
|
112 | 169 | "error",
|
113 | 170 | {
|
|
118 | 175 | }
|
119 | 176 | }
|
120 | 177 | ],
|
121 |
| - "no-unreachable": ["error"], |
122 |
| - "no-global-assign": ["error"], |
123 |
| - "no-self-compare": ["error"], |
124 |
| - "no-unmodified-loop-condition": ["error"], |
| 178 | + "no-unreachable": [ |
| 179 | + "error" |
| 180 | + ], |
| 181 | + "no-global-assign": [ |
| 182 | + "error" |
| 183 | + ], |
| 184 | + "no-self-compare": [ |
| 185 | + "error" |
| 186 | + ], |
| 187 | + "no-unmodified-loop-condition": [ |
| 188 | + "error" |
| 189 | + ], |
125 | 190 | "no-constant-condition": [
|
126 | 191 | "error",
|
127 | 192 | {
|
128 | 193 | "checkLoops": false
|
129 | 194 | }
|
130 | 195 | ],
|
131 |
| - "no-console": ["off"], |
132 |
| - "no-useless-concat": ["error"], |
133 |
| - "no-useless-escape": ["error"], |
134 |
| - "no-shadow-restricted-names": ["error"], |
| 196 | + "no-console": [ |
| 197 | + "off" |
| 198 | + ], |
| 199 | + "no-useless-concat": [ |
| 200 | + "error" |
| 201 | + ], |
| 202 | + "no-useless-escape": [ |
| 203 | + "error" |
| 204 | + ], |
| 205 | + "no-shadow-restricted-names": [ |
| 206 | + "error" |
| 207 | + ], |
135 | 208 | "no-use-before-define": [
|
136 | 209 | "error",
|
137 | 210 | {
|
138 | 211 | "functions": false
|
139 | 212 | }
|
140 | 213 | ],
|
141 |
| - "arrow-parens": ["error", "as-needed"], |
142 |
| - "arrow-body-style": ["error", "as-needed"], |
143 |
| - "arrow-spacing": ["error"], |
| 214 | + "arrow-parens": [ |
| 215 | + "error", |
| 216 | + "always" |
| 217 | + ], |
| 218 | + "arrow-body-style": [ |
| 219 | + "error", |
| 220 | + "as-needed" |
| 221 | + ], |
| 222 | + "arrow-spacing": [ |
| 223 | + "error" |
| 224 | + ], |
144 | 225 | "no-confusing-arrow": [
|
145 | 226 | "error",
|
146 | 227 | {
|
147 | 228 | "allowParens": true
|
148 | 229 | }
|
149 | 230 | ],
|
150 |
| - "no-useless-computed-key": ["error"], |
151 |
| - "no-useless-rename": ["error"], |
152 |
| - "no-var": ["error"], |
153 |
| - "object-shorthand": ["error", "always"], |
154 |
| - "prefer-arrow-callback": ["error"], |
155 |
| - "prefer-const": ["error"], |
156 |
| - "prefer-numeric-literals": ["error"], |
157 |
| - "prefer-rest-params": ["error"], |
158 |
| - "prefer-spread": ["error"], |
159 |
| - "rest-spread-spacing": ["error", "never"], |
160 |
| - "template-curly-spacing": ["error", "never"] |
| 231 | + "no-useless-computed-key": [ |
| 232 | + "error" |
| 233 | + ], |
| 234 | + "no-useless-rename": [ |
| 235 | + "error" |
| 236 | + ], |
| 237 | + "no-var": [ |
| 238 | + "error" |
| 239 | + ], |
| 240 | + "object-shorthand": [ |
| 241 | + "error", |
| 242 | + "always" |
| 243 | + ], |
| 244 | + "prefer-arrow-callback": [ |
| 245 | + "error" |
| 246 | + ], |
| 247 | + "prefer-const": [ |
| 248 | + "error" |
| 249 | + ], |
| 250 | + "prefer-numeric-literals": [ |
| 251 | + "error" |
| 252 | + ], |
| 253 | + "prefer-rest-params": [ |
| 254 | + "error" |
| 255 | + ], |
| 256 | + "prefer-spread": [ |
| 257 | + "error" |
| 258 | + ], |
| 259 | + "rest-spread-spacing": [ |
| 260 | + "error", |
| 261 | + "never" |
| 262 | + ], |
| 263 | + "template-curly-spacing": [ |
| 264 | + "error", |
| 265 | + "never" |
| 266 | + ] |
161 | 267 | }
|
162 | 268 | }
|
0 commit comments