|
12 | 12 | "BigInt": true
|
13 | 13 | },
|
14 | 14 | "rules": {
|
15 |
| - "indent": ["error", 2], |
16 |
| - "linebreak-style": ["error", "unix"], |
17 |
| - "quotes": ["error", "single"], |
18 |
| - "semi": ["error", "always"], |
19 |
| - "no-loop-func": ["error"], |
20 |
| - "block-spacing": ["error", "always"], |
21 |
| - "camelcase": ["error"], |
22 |
| - "eqeqeq": ["error", "always"], |
23 |
| - "strict": ["error", "global"], |
| 15 | + "indent": [ |
| 16 | + "error", |
| 17 | + 2 |
| 18 | + ], |
| 19 | + "linebreak-style": [ |
| 20 | + "error", |
| 21 | + "unix" |
| 22 | + ], |
| 23 | + "quotes": [ |
| 24 | + "error", |
| 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" |
| 48 | + ], |
24 | 49 | "brace-style": [
|
25 | 50 | "error",
|
26 | 51 | "1tbs",
|
27 | 52 | {
|
28 | 53 | "allowSingleLine": true
|
29 | 54 | }
|
30 | 55 | ],
|
31 |
| - "comma-style": ["error", "last"], |
| 56 | + "comma-style": [ |
| 57 | + "error", |
| 58 | + "last" |
| 59 | + ], |
32 | 60 | "comma-spacing": [
|
33 | 61 | "error",
|
34 | 62 | {
|
35 | 63 | "before": false,
|
36 | 64 | "after": true
|
37 | 65 | }
|
38 | 66 | ],
|
39 |
| - "eol-last": ["error"], |
40 |
| - "func-call-spacing": ["error", "never"], |
| 67 | + "eol-last": [ |
| 68 | + "error" |
| 69 | + ], |
| 70 | + "func-call-spacing": [ |
| 71 | + "error", |
| 72 | + "never" |
| 73 | + ], |
41 | 74 | "key-spacing": [
|
42 | 75 | "error",
|
43 | 76 | {
|
|
79 | 112 | "properties": true
|
80 | 113 | }
|
81 | 114 | ],
|
82 |
| - "new-parens": ["error"], |
83 |
| - "no-lonely-if": ["error"], |
84 |
| - "no-trailing-spaces": ["error"], |
85 |
| - "no-unneeded-ternary": ["error"], |
86 |
| - "no-whitespace-before-property": ["error"], |
87 |
| - "object-curly-spacing": ["error", "always"], |
88 |
| - "operator-assignment": ["error", "always"], |
89 |
| - "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 | + ], |
90 | 142 | "semi-spacing": [
|
91 | 143 | "error",
|
92 | 144 | {
|
93 | 145 | "before": false,
|
94 | 146 | "after": true
|
95 | 147 | }
|
96 | 148 | ],
|
97 |
| - "space-before-blocks": ["error", "always"], |
| 149 | + "space-before-blocks": [ |
| 150 | + "error", |
| 151 | + "always" |
| 152 | + ], |
98 | 153 | "space-before-function-paren": [
|
99 | 154 | "error",
|
100 | 155 | {
|
|
103 | 158 | "asyncArrow": "always"
|
104 | 159 | }
|
105 | 160 | ],
|
106 |
| - "space-in-parens": ["error", "never"], |
107 |
| - "space-infix-ops": ["error"], |
| 161 | + "space-in-parens": [ |
| 162 | + "error", |
| 163 | + "never" |
| 164 | + ], |
| 165 | + "space-infix-ops": [ |
| 166 | + "error" |
| 167 | + ], |
108 | 168 | "space-unary-ops": [
|
109 | 169 | "error",
|
110 | 170 | {
|
|
115 | 175 | }
|
116 | 176 | }
|
117 | 177 | ],
|
118 |
| - "no-unreachable": ["error"], |
119 |
| - "no-global-assign": ["error"], |
120 |
| - "no-self-compare": ["error"], |
121 |
| - "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 | + ], |
122 | 190 | "no-constant-condition": [
|
123 | 191 | "error",
|
124 | 192 | {
|
125 | 193 | "checkLoops": false
|
126 | 194 | }
|
127 | 195 | ],
|
128 |
| - "no-console": ["off"], |
129 |
| - "no-useless-concat": ["error"], |
130 |
| - "no-useless-escape": ["error"], |
131 |
| - "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 | + ], |
132 | 208 | "no-use-before-define": [
|
133 | 209 | "error",
|
134 | 210 | {
|
135 | 211 | "functions": false
|
136 | 212 | }
|
137 | 213 | ],
|
138 |
| - "arrow-parens": ["error", "as-needed"], |
139 |
| - "arrow-body-style": ["error", "as-needed"], |
140 |
| - "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 | + ], |
141 | 225 | "no-confusing-arrow": [
|
142 | 226 | "error",
|
143 | 227 | {
|
144 | 228 | "allowParens": true
|
145 | 229 | }
|
146 | 230 | ],
|
147 |
| - "no-useless-computed-key": ["error"], |
148 |
| - "no-useless-rename": ["error"], |
149 |
| - "no-var": ["error"], |
150 |
| - "object-shorthand": ["error", "always"], |
151 |
| - "prefer-arrow-callback": ["error"], |
152 |
| - "prefer-const": ["error"], |
153 |
| - "prefer-numeric-literals": ["error"], |
154 |
| - "prefer-rest-params": ["error"], |
155 |
| - "prefer-spread": ["error"], |
156 |
| - "rest-spread-spacing": ["error", "never"], |
157 |
| - "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 | + ] |
158 | 267 | }
|
159 | 268 | }
|
0 commit comments