eslint-config-seekingalpha-base 7.18.0 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Change Log
2
2
 
3
+ ## 8.0.0 - 2024-04-00
4
+
5
+ - [breaking] removed `@stylistic/eslint-plugin-js`
6
+
7
+ ## 7.19.0 - 2024-04-03
8
+
9
+ - [deps] update `eslint-plugin-unicorn` to version `52.0.0`
10
+ - [breaking] enable `unicorn/no-await-in-promise-methods` rule
11
+ - [breaking] enable `unicorn/no-single-promise-in-promise-methods` rule
12
+
3
13
  ## 7.18.0 - 2024-03-17
4
14
 
5
15
  - [deps] update `@stylistic/eslint-plugin-js` to version `1.7.0`
package/README.md CHANGED
@@ -6,7 +6,7 @@ This package includes the shareable ESLint config used by [SeekingAlpha](https:/
6
6
 
7
7
  Install ESLint and all [Peer Dependencies](https://nodejs.org/en/blog/npm/peer-dependencies/):
8
8
 
9
- npm install eslint@8.57.0 @stylistic/eslint-plugin-js@1.7.0 eslint-plugin-array-func@4.0.0 eslint-plugin-import@2.29.1 eslint-plugin-no-use-extend-native@0.5.0 eslint-plugin-promise@6.1.1 eslint-plugin-unicorn@51.0.1 --save-dev
9
+ npm install eslint@8.57.0 eslint-plugin-array-func@4.0.0 eslint-plugin-import@2.29.1 eslint-plugin-no-use-extend-native@0.5.0 eslint-plugin-promise@6.1.1 eslint-plugin-unicorn@52.0.0 --save-dev
10
10
 
11
11
  Install SeekingAlpha shareable ESLint:
12
12
 
package/index.js CHANGED
@@ -3,9 +3,6 @@ module.exports = {
3
3
  // ESLint rules (https://eslint.org/docs/rules/)
4
4
  './rules/eslint/index.js',
5
5
 
6
- // ESLint Stylistic Stylistic Formatting https://eslint.style/packages/js
7
- './rules/eslint-plugin-stylistic-js/index.js',
8
-
9
6
  // eslint-plugin-import rules (https://github.com/benmosher/eslint-plugin-import)
10
7
  './rules/eslint-plugin-import/index.js',
11
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-seekingalpha-base",
3
- "version": "7.18.0",
3
+ "version": "8.0.0",
4
4
  "description": "SeekingAlpha's sharable base ESLint config",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -48,22 +48,20 @@
48
48
  "node": ">= 20"
49
49
  },
50
50
  "peerDependencies": {
51
- "@stylistic/eslint-plugin-js": "1.7.0",
52
51
  "eslint": "8.57.0",
53
52
  "eslint-plugin-array-func": "4.0.0",
54
53
  "eslint-plugin-import": "2.29.1",
55
54
  "eslint-plugin-no-use-extend-native": "0.5.0",
56
55
  "eslint-plugin-promise": "6.1.1",
57
- "eslint-plugin-unicorn": "51.0.1"
56
+ "eslint-plugin-unicorn": "52.0.0"
58
57
  },
59
58
  "devDependencies": {
60
- "@stylistic/eslint-plugin-js": "1.7.0",
61
59
  "eslint": "8.57.0",
62
60
  "eslint-find-rules": "4.1.0",
63
61
  "eslint-plugin-array-func": "4.0.0",
64
62
  "eslint-plugin-import": "2.29.1",
65
63
  "eslint-plugin-no-use-extend-native": "0.5.0",
66
64
  "eslint-plugin-promise": "6.1.1",
67
- "eslint-plugin-unicorn": "51.0.1"
65
+ "eslint-plugin-unicorn": "52.0.0"
68
66
  }
69
67
  }
package/prettier.js CHANGED
@@ -2,69 +2,8 @@ module.exports = {
2
2
  extends: ['./index.js'],
3
3
 
4
4
  rules: {
5
- '@stylistic/js/array-bracket-newline': 'off',
6
- '@stylistic/js/array-bracket-spacing': 'off',
7
- '@stylistic/js/array-element-newline': 'off',
8
- '@stylistic/js/arrow-parens': 'off',
9
- '@stylistic/js/arrow-spacing': 'off',
10
- '@stylistic/js/block-spacing': 'off',
11
- '@stylistic/js/brace-style': 'off',
12
- '@stylistic/js/comma-dangle': 'off',
13
- '@stylistic/js/comma-spacing': 'off',
14
- '@stylistic/js/comma-style': 'off',
15
- '@stylistic/js/computed-property-spacing': 'off',
16
- '@stylistic/js/dot-location': 'off',
17
- '@stylistic/js/eol-last': 'off',
18
- '@stylistic/js/function-call-spacing': 'off',
19
- '@stylistic/js/function-call-argument-newline': 'off',
20
- '@stylistic/js/function-paren-newline': 'off',
21
- '@stylistic/js/generator-star-spacing': 'off',
22
- '@stylistic/js/implicit-arrow-linebreak': 'off',
23
- '@stylistic/js/indent': 'off',
24
- '@stylistic/js/jsx-quotes': 'off',
25
- '@stylistic/js/key-spacing': 'off',
26
- '@stylistic/js/keyword-spacing': 'off',
27
- '@stylistic/js/linebreak-style': 'off',
28
- '@stylistic/js/multiline-ternary': 'off',
29
- '@stylistic/js/newline-per-chained-call': 'off',
30
- '@stylistic/js/new-parens': 'off',
31
- '@stylistic/js/no-extra-parens': 'off',
32
- '@stylistic/js/no-extra-semi': 'off',
33
- '@stylistic/js/no-floating-decimal': 'off',
34
- '@stylistic/js/no-mixed-spaces-and-tabs': 'off',
35
- '@stylistic/js/no-multi-spaces': 'off',
36
- '@stylistic/js/no-multiple-empty-lines': 'off',
37
- '@stylistic/js/no-trailing-spaces': 'off',
38
- '@stylistic/js/no-whitespace-before-property': 'off',
39
- '@stylistic/js/nonblock-statement-body-position': 'off',
40
- '@stylistic/js/object-curly-newline': 'off',
41
- '@stylistic/js/object-curly-spacing': 'off',
42
- '@stylistic/js/object-property-newline': 'off',
43
- '@stylistic/js/one-var-declaration-per-line': 'off',
44
- '@stylistic/js/operator-linebreak': 'off',
45
- '@stylistic/js/padded-blocks': 'off',
46
- '@stylistic/js/quote-props': 'off',
47
- '@stylistic/js/rest-spread-spacing': 'off',
48
- '@stylistic/js/semi': 'off',
49
- '@stylistic/js/semi-spacing': 'off',
50
- '@stylistic/js/semi-style': 'off',
51
- '@stylistic/js/space-before-blocks': 'off',
52
- '@stylistic/js/space-before-function-paren': 'off',
53
- '@stylistic/js/space-in-parens': 'off',
54
- '@stylistic/js/space-infix-ops': 'off',
55
- '@stylistic/js/space-unary-ops': 'off',
56
- '@stylistic/js/switch-colon-spacing': 'off',
57
- '@stylistic/js/template-curly-spacing': 'off',
58
- '@stylistic/js/template-tag-spacing': 'off',
59
- '@stylistic/js/wrap-iife': 'off',
60
- '@stylistic/js/wrap-regex': 'off',
61
- '@stylistic/js/yield-star-spacing': 'off',
62
5
  'unicode-bom': 'off',
63
6
 
64
- // Might be enabled
65
- '@stylistic/js/lines-around-comment': 'off',
66
- '@stylistic/js/no-mixed-operators': 'off',
67
-
68
7
  // Unicorn
69
8
  'unicorn/empty-brace-spaces': 'off',
70
9
  'unicorn/no-nested-ternary': 'off',
@@ -57,6 +57,12 @@ module.exports = {
57
57
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-abusive-eslint-disable.md
58
58
  'unicorn/no-abusive-eslint-disable': 'error',
59
59
 
60
+ /*
61
+ * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-anonymous-default-export.md
62
+ * Duplicates import/no-anonymous-default-export
63
+ */
64
+ 'unicorn/no-anonymous-default-export': 'off',
65
+
60
66
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-array-callback-reference.md
61
67
  'unicorn/no-array-callback-reference': 'error',
62
68
 
@@ -75,6 +81,9 @@ module.exports = {
75
81
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-await-expression-member.md
76
82
  'unicorn/no-await-expression-member': 'error',
77
83
 
84
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-await-in-promise-methods.md
85
+ 'unicorn/no-await-in-promise-methods': 'error',
86
+
78
87
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-console-spaces.md
79
88
  'unicorn/no-console-spaces': 'error',
80
89
 
@@ -137,7 +146,10 @@ module.exports = {
137
146
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-process-exit.md
138
147
  * Already validated by EsLint node rule
139
148
  */
140
- 'unicorn/no-process-exit': 'error',
149
+ 'unicorn/no-process-exit': 'off',
150
+
151
+ // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-single-promise-in-promise-methods.md
152
+ 'unicorn/no-single-promise-in-promise-methods': 'error',
141
153
 
142
154
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-static-only-class.md
143
155
  'unicorn/no-static-only-class': 'error',
@@ -1,530 +0,0 @@
1
- // https://eslint.style/packages/js
2
-
3
- const config = require('../config');
4
-
5
- module.exports = {
6
- plugins: ['@stylistic/js'],
7
-
8
- rules: {
9
- // https://eslint.style/rules/js/array-bracket-newline
10
- '@stylistic/js/array-bracket-newline': ['error', 'consistent'],
11
-
12
- // https://eslint.style/rules/js/array-bracket-spacing
13
- '@stylistic/js/array-bracket-spacing': ['error', 'never'],
14
-
15
- // https://eslint.style/rules/js/array-element-newline
16
- '@stylistic/js/array-element-newline': 'off',
17
-
18
- // https://eslint.style/rules/js/arrow-parens
19
- '@stylistic/js/arrow-parens': ['error', 'always'],
20
-
21
- // https://eslint.style/rules/js/arrow-spacing
22
- '@stylistic/js/arrow-spacing': [
23
- 'error',
24
- {
25
- before: true,
26
- after: true,
27
- },
28
- ],
29
-
30
- // https://eslint.style/rules/js/block-spacing
31
- '@stylistic/js/block-spacing': ['error', 'always'],
32
-
33
- // https://eslint.style/rules/js/brace-style
34
- '@stylistic/js/brace-style': [
35
- 'error',
36
- '1tbs',
37
- {
38
- allowSingleLine: false,
39
- },
40
- ],
41
-
42
- // https://eslint.style/rules/js/comma-dangle
43
- '@stylistic/js/comma-dangle': [
44
- 'error',
45
- {
46
- arrays: 'always-multiline',
47
- objects: 'always-multiline',
48
- imports: 'always-multiline',
49
- exports: 'always-multiline',
50
- functions: 'never',
51
- },
52
- ],
53
-
54
- // https://eslint.style/rules/js/comma-spacing
55
- '@stylistic/js/comma-spacing': [
56
- 'error',
57
- {
58
- before: false,
59
- after: true,
60
- },
61
- ],
62
-
63
- // https://eslint.style/rules/js/comma-style
64
- '@stylistic/js/comma-style': [
65
- 'error',
66
- 'last',
67
- {
68
- exceptions: {
69
- ArrayExpression: false,
70
- ArrayPattern: false,
71
- ArrowFunctionExpression: false,
72
- CallExpression: false,
73
- FunctionDeclaration: false,
74
- FunctionExpression: false,
75
- ImportDeclaration: false,
76
- ObjectExpression: false,
77
- ObjectPattern: false,
78
- VariableDeclaration: false,
79
- NewExpression: false,
80
- },
81
- },
82
- ],
83
-
84
- // https://eslint.style/rules/js/computed-property-spacing
85
- '@stylistic/js/computed-property-spacing': ['error', 'never'],
86
-
87
- // https://eslint.style/rules/js/dot-location
88
- '@stylistic/js/dot-location': ['error', 'property'],
89
-
90
- // https://eslint.style/rules/js/eol-last
91
- '@stylistic/js/eol-last': ['error', 'always'],
92
-
93
- // https://eslint.style/rules/js/function-call-spacing
94
- '@stylistic/js/function-call-spacing': ['error', 'never'],
95
-
96
- /*
97
- * TODO Enable when fixed for arrow functions
98
- * https://eslint.style/rules/js/function-call-argument-newline
99
- */
100
- '@stylistic/js/function-call-argument-newline': 'off',
101
-
102
- // https://eslint.style/rules/js/function-paren-newline
103
- '@stylistic/js/function-paren-newline': ['error', 'consistent'],
104
-
105
- // https://eslint.style/rules/js/generator-star-spacing
106
- '@stylistic/js/generator-star-spacing': [
107
- 'error',
108
- {
109
- before: false,
110
- after: true,
111
- },
112
- ],
113
-
114
- // https://eslint.style/rules/js/implicit-arrow-linebreak
115
- '@stylistic/js/implicit-arrow-linebreak': ['error', 'beside'],
116
-
117
- // https://eslint.style/rules/js/indent
118
- '@stylistic/js/indent': [
119
- 'error',
120
- config.indent,
121
- {
122
- SwitchCase: 1,
123
- VariableDeclarator: 1,
124
- outerIIFEBody: 1,
125
- MemberExpression: 0,
126
- FunctionDeclaration: {
127
- parameters: 1,
128
- body: 1,
129
- },
130
- FunctionExpression: {
131
- parameters: 1,
132
- body: 1,
133
- },
134
- CallExpression: {
135
- arguments: 1,
136
- },
137
- ArrayExpression: 1,
138
- ObjectExpression: 1,
139
- ImportDeclaration: 1,
140
- flatTernaryExpressions: false,
141
- offsetTernaryExpressions: false,
142
- ignoredNodes: [],
143
- ignoreComments: false,
144
- },
145
- ],
146
-
147
- // https://eslint.style/rules/js/jsx-quotes
148
- '@stylistic/js/jsx-quotes': ['error', 'prefer-double'],
149
-
150
- // https://eslint.style/rules/js/key-spacing
151
- '@stylistic/js/key-spacing': [
152
- 'error',
153
- {
154
- beforeColon: false,
155
- afterColon: true,
156
- mode: 'strict',
157
- },
158
- ],
159
-
160
- // https://eslint.style/rules/js/keyword-spacing
161
- '@stylistic/js/keyword-spacing': [
162
- 'error',
163
- {
164
- before: true,
165
- after: true,
166
- overrides: {
167
- return: {
168
- after: true,
169
- },
170
- throw: {
171
- after: true,
172
- },
173
- case: {
174
- after: true,
175
- },
176
- },
177
- },
178
- ],
179
-
180
- // https://eslint.style/rules/js/linebreak-style
181
- '@stylistic/js/linebreak-style': ['error', 'unix'],
182
-
183
- // https://eslint.style/rules/js/lines-around-comment
184
- '@stylistic/js/lines-around-comment': [
185
- 'error',
186
- {
187
- beforeBlockComment: true,
188
- afterBlockComment: false,
189
- beforeLineComment: true,
190
- afterLineComment: false,
191
- allowBlockStart: true,
192
- allowBlockEnd: false,
193
- allowObjectStart: true,
194
- allowObjectEnd: false,
195
- allowArrayStart: false,
196
- allowArrayEnd: false,
197
- allowClassStart: true,
198
- allowClassEnd: false,
199
- applyDefaultIgnorePatterns: true,
200
- ignorePattern: '@ts-expect-error',
201
- },
202
- ],
203
-
204
- // https://eslint.style/rules/js/lines-between-class-members
205
- '@stylistic/js/lines-between-class-members': [
206
- 'error',
207
- 'always',
208
- {
209
- exceptAfterSingleLine: false,
210
- },
211
- ],
212
-
213
- // https://eslint.style/rules/js/max-len
214
- '@stylistic/js/max-len': [
215
- 'error',
216
- {
217
- code: config.maxLen,
218
- tabWidth: config.indent,
219
- comments: config.maxLen,
220
- ignorePattern: 'ignore-long-line',
221
- ignoreComments: false,
222
- ignoreTrailingComments: false,
223
- ignoreRegExpLiterals: false,
224
- ignoreStrings: false,
225
- ignoreTemplateLiterals: false,
226
- ignoreUrls: true,
227
- },
228
- ],
229
-
230
- // https://eslint.style/rules/js/max-statements-per-line
231
- '@stylistic/js/max-statements-per-line': [
232
- 'error',
233
- {
234
- max: config.maxStatementsPerLine,
235
- },
236
- ],
237
-
238
- // https://eslint.style/rules/js/multiline-ternary
239
- '@stylistic/js/multiline-ternary': 'off',
240
-
241
- // https://eslint.style/rules/js/new-parens
242
- '@stylistic/js/new-parens': 'error',
243
-
244
- // https://eslint.style/rules/js/newline-per-chained-call
245
- '@stylistic/js/newline-per-chained-call': [
246
- 'error',
247
- {
248
- ignoreChainWithDepth: 2,
249
- },
250
- ],
251
-
252
- // https://eslint.style/rules/js/no-confusing-arrow
253
- '@stylistic/js/no-confusing-arrow': [
254
- 'error',
255
- {
256
- allowParens: false,
257
- onlyOneSimpleParam: false,
258
- },
259
- ],
260
-
261
- // https://eslint.style/rules/js/no-extra-parens
262
- '@stylistic/js/no-extra-parens': [
263
- 'error',
264
- 'all',
265
- {
266
- conditionalAssign: false,
267
- nestedBinaryExpressions: false,
268
- returnAssign: false,
269
- ignoreJSX: 'all',
270
- enforceForArrowConditionals: false,
271
- enforceForSequenceExpressions: false,
272
- enforceForNewInMemberExpressions: false,
273
- enforceForFunctionPrototypeMethods: false,
274
- },
275
- ],
276
-
277
- // https://eslint.style/rules/js/no-extra-semi
278
- '@stylistic/js/no-extra-semi': 'error',
279
-
280
- // https://eslint.style/rules/js/no-floating-decimal
281
- '@stylistic/js/no-floating-decimal': 'error',
282
-
283
- // https://eslint.style/rules/js/no-mixed-operators
284
- '@stylistic/js/no-mixed-operators': [
285
- 'error',
286
- {
287
- groups: [
288
- ['+', '-', '*', '/', '%', '**'],
289
- ['&', '|', '^', '~', '<<', '>>', '>>>'],
290
- ['==', '!=', '===', '!==', '>', '>=', '<', '<='],
291
- ['&&', '||'],
292
- ['in', 'instanceof'],
293
- ],
294
- allowSamePrecedence: true,
295
- },
296
- ],
297
-
298
- // https://eslint.style/rules/js/no-mixed-spaces-and-tabs
299
- '@stylistic/js/no-mixed-spaces-and-tabs': 'error',
300
-
301
- // https://eslint.style/rules/js/no-multi-spaces
302
- '@stylistic/js/no-multi-spaces': 'error',
303
-
304
- // https://eslint.style/rules/js/no-multiple-empty-lines
305
- '@stylistic/js/no-multiple-empty-lines': [
306
- 'error',
307
- {
308
- max: config.noMultipleEmptyLinesMax,
309
- maxEOF: config.noMultipleEmptyLinesEOF,
310
- maxBOF: config.noMultipleEmptyLinesBOF,
311
- },
312
- ],
313
-
314
- // https://eslint.style/rules/js/no-tabs
315
- '@stylistic/js/no-tabs': 'error',
316
-
317
- // https://eslint.style/rules/js/no-trailing-spaces
318
- '@stylistic/js/no-trailing-spaces': [
319
- 'error',
320
- {
321
- skipBlankLines: false,
322
- ignoreComments: false,
323
- },
324
- ],
325
-
326
- // https://eslint.style/rules/js/no-whitespace-before-property
327
- '@stylistic/js/no-whitespace-before-property': 'error',
328
-
329
- // https://eslint.style/rules/js/nonblock-statement-body-position
330
- '@stylistic/js/nonblock-statement-body-position': [
331
- 'error',
332
- 'beside',
333
- {
334
- overrides: {},
335
- },
336
- ],
337
-
338
- // https://eslint.style/rules/js/object-curly-newline
339
- '@stylistic/js/object-curly-newline': [
340
- 'error',
341
- {
342
- ObjectExpression: {
343
- minProperties: config.newlineObjectExpressionMin,
344
- multiline: true,
345
- consistent: true,
346
- },
347
- ObjectPattern: {
348
- minProperties: config.newlineObjectPatternMin,
349
- multiline: true,
350
- consistent: true,
351
- },
352
- ImportDeclaration: {
353
- minProperties: config.newlineImportDeclarationMin,
354
- multiline: true,
355
- consistent: true,
356
- },
357
- ExportDeclaration: {
358
- minProperties: config.newlineExportDeclarationMin,
359
- multiline: true,
360
- consistent: true,
361
- },
362
- },
363
- ],
364
-
365
- // https://eslint.style/rules/js/object-curly-spacing
366
- '@stylistic/js/object-curly-spacing': [
367
- 'error',
368
- 'always',
369
- {
370
- arraysInObjects: true,
371
- objectsInObjects: true,
372
- },
373
- ],
374
-
375
- // https://eslint.style/rules/js/object-property-newline
376
- '@stylistic/js/object-property-newline': [
377
- 'error',
378
- {
379
- allowAllPropertiesOnSameLine: false,
380
- },
381
- ],
382
-
383
- // https://eslint.style/rules/js/one-var-declaration-per-line
384
- '@stylistic/js/one-var-declaration-per-line': ['error', 'initializations'],
385
-
386
- // https://eslint.style/rules/js/operator-linebreak
387
- '@stylistic/js/operator-linebreak': ['error', 'before', { overrides: { '=': 'none' } }],
388
-
389
- // https://eslint.style/rules/js/padded-blocks
390
- '@stylistic/js/padded-blocks': [
391
- 'error',
392
- {
393
- blocks: 'never',
394
- classes: 'never',
395
- switches: 'never',
396
- },
397
- ],
398
-
399
- // https://eslint.style/rules/js/padding-line-between-statements
400
- '@stylistic/js/padding-line-between-statements': [
401
- 'error',
402
- {
403
- blankLine: 'always',
404
- prev: 'directive',
405
- next: '*',
406
- },
407
- {
408
- blankLine: 'any',
409
- prev: 'directive',
410
- next: 'directive',
411
- },
412
- {
413
- blankLine: 'always',
414
- prev: ['const', 'let', 'var'],
415
- next: '*',
416
- },
417
- {
418
- blankLine: 'any',
419
- prev: ['const', 'let', 'var'],
420
- next: ['const', 'let', 'var'],
421
- },
422
- {
423
- blankLine: 'always',
424
- prev: '*',
425
- next: 'return',
426
- },
427
- ],
428
-
429
- // https://eslint.style/rules/js/quote-props
430
- '@stylistic/js/quote-props': [
431
- 'error',
432
- 'as-needed',
433
- {
434
- keywords: false,
435
- unnecessary: true,
436
- numbers: false,
437
- },
438
- ],
439
-
440
- // https://eslint.style/rules/js/quotes
441
- '@stylistic/js/quotes': [
442
- 'error',
443
- 'single',
444
- {
445
- avoidEscape: true,
446
- allowTemplateLiterals: true,
447
- },
448
- ],
449
-
450
- // https://eslint.style/rules/js/rest-spread-spacing
451
- '@stylistic/js/rest-spread-spacing': ['error', 'never'],
452
-
453
- // https://eslint.style/rules/js/semi
454
- '@stylistic/js/semi': ['error', 'always'],
455
-
456
- // https://eslint.style/rules/js/semi-spacing
457
- '@stylistic/js/semi-spacing': [
458
- 'error',
459
- {
460
- before: false,
461
- after: true,
462
- },
463
- ],
464
-
465
- // https://eslint.style/rules/js/semi-style
466
- '@stylistic/js/semi-style': ['error', 'last'],
467
-
468
- // https://eslint.style/rules/js/space-before-blocks
469
- '@stylistic/js/space-before-blocks': 'error',
470
-
471
- // https://eslint.style/rules/js/space-before-function-paren
472
- '@stylistic/js/space-before-function-paren': [
473
- 'error',
474
- {
475
- anonymous: 'never',
476
- named: 'never',
477
- asyncArrow: 'always',
478
- },
479
- ],
480
-
481
- // https://eslint.style/rules/js/space-in-parens
482
- '@stylistic/js/space-in-parens': ['error', 'never'],
483
-
484
- // https://eslint.style/rules/js/space-infix-ops
485
- '@stylistic/js/space-infix-ops': 'error',
486
-
487
- // https://eslint.style/rules/js/space-unary-ops
488
- '@stylistic/js/space-unary-ops': [
489
- 'error',
490
- {
491
- words: true,
492
- nonwords: false,
493
- overrides: {},
494
- },
495
- ],
496
-
497
- // https://eslint.style/rules/js/spaced-comment
498
- '@stylistic/js/spaced-comment': ['error', 'always'],
499
-
500
- // https://eslint.style/rules/js/switch-colon-spacing
501
- '@stylistic/js/switch-colon-spacing': [
502
- 'error',
503
- {
504
- after: true,
505
- before: false,
506
- },
507
- ],
508
-
509
- // https://eslint.style/rules/js/template-curly-spacing
510
- '@stylistic/js/template-curly-spacing': 'error',
511
-
512
- // https://eslint.style/rules/js/template-tag-spacing
513
- '@stylistic/js/template-tag-spacing': ['error', 'never'],
514
-
515
- // https://eslint.style/rules/js/wrap-iife
516
- '@stylistic/js/wrap-iife': [
517
- 'error',
518
- 'outside',
519
- {
520
- functionPrototypeMethods: false,
521
- },
522
- ],
523
-
524
- // https://eslint.style/rules/js/wrap-regex
525
- '@stylistic/js/wrap-regex': 'error',
526
-
527
- // https://eslint.style/rules/js/yield-star-spacing
528
- '@stylistic/js/yield-star-spacing': ['error', 'after'],
529
- },
530
- };