eslint-config-seekingalpha-base 6.0.0 → 6.2.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,13 @@
1
1
  # Change Log
2
2
 
3
+ ## 6.2.0 - 2023-04-09
4
+
5
+ - [deps] update `eslint` to version `8.38.0`
6
+
7
+ ## 6.1.0 - 2023-03-29
8
+
9
+ - [deps] update `eslint` to version `8.37.0`
10
+
3
11
  ## 6.0.0 - 2023-03-28
4
12
 
5
13
  - introduce `eslint-config-seekingalpha-base/prettier` config
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.36.0 eslint-plugin-array-func@3.1.8 eslint-plugin-import@2.27.5 eslint-plugin-no-use-extend-native@0.5.0 eslint-plugin-promise@6.1.1 eslint-plugin-unicorn@46.0.0 --save-dev
9
+ npm install eslint@8.38.0 eslint-plugin-array-func@3.1.8 eslint-plugin-import@2.27.5 eslint-plugin-no-use-extend-native@0.5.0 eslint-plugin-promise@6.1.1 eslint-plugin-unicorn@46.0.0 --save-dev
10
10
 
11
11
  Install SeekingAlpha shareable ESLint:
12
12
 
package/index.js CHANGED
@@ -1,7 +1,5 @@
1
1
  module.exports = {
2
-
3
2
  extends: [
4
-
5
3
  // ESLint rules (https://eslint.org/docs/rules/)
6
4
  './rules/eslint/index.js',
7
5
 
@@ -19,7 +17,6 @@ module.exports = {
19
17
 
20
18
  // eslint-plugin-unicorn rules (https://github.com/sindresorhus/eslint-plugin-unicorn)
21
19
  './rules/eslint-plugin-unicorn/index.js',
22
-
23
20
  ],
24
21
 
25
22
  parserOptions: {
@@ -30,5 +27,4 @@ module.exports = {
30
27
  globalReturn: false,
31
28
  },
32
29
  },
33
-
34
30
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-seekingalpha-base",
3
- "version": "6.0.0",
3
+ "version": "6.2.0",
4
4
  "description": "SeekingAlpha's sharable base ESLint config",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -48,7 +48,7 @@
48
48
  "node": ">= 18"
49
49
  },
50
50
  "peerDependencies": {
51
- "eslint": "8.36.0",
51
+ "eslint": "8.38.0",
52
52
  "eslint-plugin-array-func": "3.1.8",
53
53
  "eslint-plugin-import": "2.27.5",
54
54
  "eslint-plugin-no-use-extend-native": "0.5.0",
@@ -56,7 +56,7 @@
56
56
  "eslint-plugin-unicorn": "46.0.0"
57
57
  },
58
58
  "devDependencies": {
59
- "eslint": "8.36.0",
59
+ "eslint": "8.38.0",
60
60
  "eslint-find-rules": "4.1.0",
61
61
  "eslint-plugin-array-func": "3.1.8",
62
62
  "eslint-plugin-import": "2.27.5",
package/prettier.js CHANGED
@@ -1,8 +1,5 @@
1
1
  module.exports = {
2
-
3
- extends: [
4
- './index.js',
5
- ],
2
+ extends: ['./index.js'],
6
3
 
7
4
  rules: {
8
5
  'array-bracket-newline': 'off',
@@ -64,6 +61,11 @@ module.exports = {
64
61
  'wrap-regex': 'off',
65
62
  'yield-star-spacing': 'off',
66
63
 
64
+ // Might be enabled
65
+ 'lines-around-comment': 'off',
66
+ 'no-mixed-operators': 'off',
67
+
68
+ // Unicorn
67
69
  'unicorn/empty-brace-spaces': 'off',
68
70
  'unicorn/no-nested-ternary': 'off',
69
71
  'unicorn/number-literal-case': 'off',
@@ -1,9 +1,3 @@
1
1
  module.exports = {
2
-
3
- extends: [
4
- './possible-problems.js',
5
- './suggestions.js',
6
- './layout-and-formatting.js',
7
- ],
8
-
2
+ extends: ['./possible-problems.js', './suggestions.js', './layout-and-formatting.js'],
9
3
  };
@@ -1,31 +1,20 @@
1
1
  const config = require('../config');
2
2
 
3
3
  module.exports = {
4
-
5
4
  // https://eslint.org/docs/rules/#layout-formatting
6
5
 
7
6
  rules: {
8
-
9
7
  // https://eslint.org/docs/rules/array-bracket-newline
10
- 'array-bracket-newline': [
11
- 'error',
12
- 'consistent',
13
- ],
8
+ 'array-bracket-newline': ['error', 'consistent'],
14
9
 
15
10
  // https://eslint.org/docs/rules/array-bracket-spacing
16
- 'array-bracket-spacing': [
17
- 'error',
18
- 'never',
19
- ],
11
+ 'array-bracket-spacing': ['error', 'never'],
20
12
 
21
13
  // https://eslint.org/docs/rules/array-element-newline
22
14
  'array-element-newline': 'off',
23
15
 
24
16
  // https://eslint.org/docs/rules/arrow-parens
25
- 'arrow-parens': [
26
- 'error',
27
- 'always',
28
- ],
17
+ 'arrow-parens': ['error', 'always'],
29
18
 
30
19
  // https://eslint.org/docs/rules/arrow-spacing
31
20
  'arrow-spacing': [
@@ -37,10 +26,7 @@ module.exports = {
37
26
  ],
38
27
 
39
28
  // https://eslint.org/docs/rules/block-spacing
40
- 'block-spacing': [
41
- 'error',
42
- 'always',
43
- ],
29
+ 'block-spacing': ['error', 'always'],
44
30
 
45
31
  // https://eslint.org/docs/rules/brace-style
46
32
  'brace-style': [
@@ -53,7 +39,8 @@ module.exports = {
53
39
 
54
40
  // https://eslint.org/docs/rules/comma-dangle
55
41
  'comma-dangle': [
56
- 'error', {
42
+ 'error',
43
+ {
57
44
  arrays: 'always-multiline',
58
45
  objects: 'always-multiline',
59
46
  imports: 'always-multiline',
@@ -93,28 +80,16 @@ module.exports = {
93
80
  ],
94
81
 
95
82
  // https://eslint.org/docs/rules/computed-property-spacing
96
- 'computed-property-spacing': [
97
- 'error',
98
- 'never',
99
- ],
83
+ 'computed-property-spacing': ['error', 'never'],
100
84
 
101
85
  // https://eslint.org/docs/rules/dot-location
102
- 'dot-location': [
103
- 'error',
104
- 'property',
105
- ],
86
+ 'dot-location': ['error', 'property'],
106
87
 
107
88
  // https://eslint.org/docs/rules/eol-last
108
- 'eol-last': [
109
- 'error',
110
- 'always',
111
- ],
89
+ 'eol-last': ['error', 'always'],
112
90
 
113
91
  // https://eslint.org/docs/rules/func-call-spacing
114
- 'func-call-spacing': [
115
- 'error',
116
- 'never',
117
- ],
92
+ 'func-call-spacing': ['error', 'never'],
118
93
 
119
94
  /*
120
95
  * TODO Enable when fixed for arrow functions
@@ -123,10 +98,7 @@ module.exports = {
123
98
  'function-call-argument-newline': 'off',
124
99
 
125
100
  // https://eslint.org/docs/rules/function-paren-newline
126
- 'function-paren-newline': [
127
- 'error',
128
- 'consistent',
129
- ],
101
+ 'function-paren-newline': ['error', 'consistent'],
130
102
 
131
103
  // https://eslint.org/docs/rules/generator-star-spacing
132
104
  'generator-star-spacing': [
@@ -138,10 +110,7 @@ module.exports = {
138
110
  ],
139
111
 
140
112
  // https://eslint.org/docs/rules/implicit-arrow-linebreak
141
- 'implicit-arrow-linebreak': [
142
- 'error',
143
- 'beside',
144
- ],
113
+ 'implicit-arrow-linebreak': ['error', 'beside'],
145
114
 
146
115
  // https://eslint.org/docs/rules/indent
147
116
  indent: [
@@ -174,10 +143,7 @@ module.exports = {
174
143
  ],
175
144
 
176
145
  // https://eslint.org/docs/rules/jsx-quotes
177
- 'jsx-quotes': [
178
- 'error',
179
- 'prefer-double',
180
- ],
146
+ 'jsx-quotes': ['error', 'prefer-double'],
181
147
 
182
148
  // https://eslint.org/docs/rules/key-spacing
183
149
  'key-spacing': [
@@ -220,10 +186,7 @@ module.exports = {
220
186
  ],
221
187
 
222
188
  // https://eslint.org/docs/rules/linebreak-style
223
- 'linebreak-style': [
224
- 'error',
225
- 'unix',
226
- ],
189
+ 'linebreak-style': ['error', 'unix'],
227
190
 
228
191
  // https://eslint.org/docs/rules/lines-around-comment
229
192
  'lines-around-comment': [
@@ -281,10 +244,7 @@ module.exports = {
281
244
  ],
282
245
 
283
246
  // https://eslint.org/docs/rules/multiline-ternary
284
- 'multiline-ternary': [
285
- 'error',
286
- 'never',
287
- ],
247
+ 'multiline-ternary': ['error', 'never'],
288
248
 
289
249
  // https://eslint.org/docs/rules/new-parens
290
250
  'new-parens': 'error',
@@ -399,10 +359,7 @@ module.exports = {
399
359
  ],
400
360
 
401
361
  // https://eslint.org/docs/rules/operator-linebreak
402
- 'operator-linebreak': [
403
- 'error',
404
- 'none',
405
- ],
362
+ 'operator-linebreak': ['error', 'none'],
406
363
 
407
364
  // https://eslint.org/docs/rules/padded-blocks
408
365
  'padded-blocks': [
@@ -433,19 +390,13 @@ module.exports = {
433
390
  // following 2 lines are replacement for deprecated newline-after-var https://eslint.org/docs/rules/newline-after-var
434
391
  {
435
392
  blankLine: 'always',
436
- prev: [
437
- 'const', 'let', 'var',
438
- ],
393
+ prev: ['const', 'let', 'var'],
439
394
  next: '*',
440
395
  },
441
396
  {
442
397
  blankLine: 'any',
443
- prev: [
444
- 'const', 'let', 'var',
445
- ],
446
- next: [
447
- 'const', 'let', 'var',
448
- ],
398
+ prev: ['const', 'let', 'var'],
399
+ next: ['const', 'let', 'var'],
449
400
  },
450
401
 
451
402
  // following line are replacement for deprecated newline-before-return https://eslint.org/docs/rules/newline-before-return
@@ -467,16 +418,10 @@ module.exports = {
467
418
  ],
468
419
 
469
420
  // https://eslint.org/docs/rules/rest-spread-spacing
470
- 'rest-spread-spacing': [
471
- 'error',
472
- 'never',
473
- ],
421
+ 'rest-spread-spacing': ['error', 'never'],
474
422
 
475
423
  // https://eslint.org/docs/rules/semi
476
- semi: [
477
- 'error',
478
- 'always',
479
- ],
424
+ semi: ['error', 'always'],
480
425
 
481
426
  // https://eslint.org/docs/rules/semi-spacing
482
427
  'semi-spacing': [
@@ -488,10 +433,7 @@ module.exports = {
488
433
  ],
489
434
 
490
435
  // https://eslint.org/docs/rules/semi-style
491
- 'semi-style': [
492
- 'error',
493
- 'last',
494
- ],
436
+ 'semi-style': ['error', 'last'],
495
437
 
496
438
  // https://eslint.org/docs/rules/space-before-blocks
497
439
  'space-before-blocks': 'error',
@@ -507,10 +449,7 @@ module.exports = {
507
449
  ],
508
450
 
509
451
  // https://eslint.org/docs/rules/space-in-parens
510
- 'space-in-parens': [
511
- 'error',
512
- 'never',
513
- ],
452
+ 'space-in-parens': ['error', 'never'],
514
453
 
515
454
  // https://eslint.org/docs/rules/space-infix-ops
516
455
  'space-infix-ops': 'error',
@@ -538,16 +477,10 @@ module.exports = {
538
477
  'template-curly-spacing': 'error',
539
478
 
540
479
  // https://eslint.org/docs/rules/template-tag-spacing
541
- 'template-tag-spacing': [
542
- 'error',
543
- 'never',
544
- ],
480
+ 'template-tag-spacing': ['error', 'never'],
545
481
 
546
482
  // https://eslint.org/docs/rules/unicode-bom
547
- 'unicode-bom': [
548
- 'error',
549
- 'never',
550
- ],
483
+ 'unicode-bom': ['error', 'never'],
551
484
 
552
485
  // https://eslint.org/docs/rules/wrap-iife.html
553
486
  'wrap-iife': [
@@ -562,10 +495,6 @@ module.exports = {
562
495
  'wrap-regex': 'error',
563
496
 
564
497
  // https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/rules/es6.js
565
- 'yield-star-spacing': [
566
- 'error',
567
- 'after',
568
- ],
569
-
498
+ 'yield-star-spacing': ['error', 'after'],
570
499
  },
571
500
  };
@@ -1,5 +1,4 @@
1
1
  module.exports = {
2
-
3
2
  // https://eslint.org/docs/rules/#possible-problems
4
3
 
5
4
  rules: {
@@ -1,11 +1,9 @@
1
1
  const config = require('../config');
2
2
 
3
3
  module.exports = {
4
-
5
4
  // https://eslint.org/docs/rules/#suggestions
6
5
 
7
6
  rules: {
8
-
9
7
  // https://eslint.org/docs/rules/accessor-pairs
10
8
  'accessor-pairs': [
11
9
  'error',
@@ -17,10 +15,7 @@ module.exports = {
17
15
  ],
18
16
 
19
17
  // https://eslint.org/docs/rules/arrow-body-style
20
- 'arrow-body-style': [
21
- 'error',
22
- 'always',
23
- ],
18
+ 'arrow-body-style': ['error', 'always'],
24
19
 
25
20
  // https://eslint.org/docs/rules/block-scoped-var
26
21
  'block-scoped-var': 'error',
@@ -67,10 +62,7 @@ module.exports = {
67
62
  'consistent-return': 'error',
68
63
 
69
64
  // https://eslint.org/docs/rules/consistent-this
70
- 'consistent-this': [
71
- 'error',
72
- 'that',
73
- ],
65
+ 'consistent-this': ['error', 'that'],
74
66
 
75
67
  // https://eslint.org/docs/rules/curly
76
68
  curly: 'error',
@@ -98,10 +90,7 @@ module.exports = {
98
90
  ],
99
91
 
100
92
  // https://eslint.org/docs/rules/eqeqeq
101
- eqeqeq: [
102
- 'error',
103
- 'always',
104
- ],
93
+ eqeqeq: ['error', 'always'],
105
94
 
106
95
  // https://eslint.org/docs/rules/func-name-matching
107
96
  'func-name-matching': [
@@ -117,10 +106,7 @@ module.exports = {
117
106
  * https://eslint.org/docs/rules/func-names
118
107
  * TODO enable when needed?
119
108
  */
120
- 'func-names': [
121
- 'off',
122
- 'always',
123
- ],
109
+ 'func-names': ['off', 'always'],
124
110
 
125
111
  // https://eslint.org/docs/rules/func-style
126
112
  'func-style': [
@@ -132,9 +118,7 @@ module.exports = {
132
118
  ],
133
119
 
134
120
  // https://eslint.org/docs/rules/grouped-accessor-pairs
135
- 'grouped-accessor-pairs': [
136
- 'error', 'getBeforeSet',
137
- ],
121
+ 'grouped-accessor-pairs': ['error', 'getBeforeSet'],
138
122
 
139
123
  /*
140
124
  * https://eslint.org/docs/rules/guard-for-in
@@ -159,22 +143,13 @@ module.exports = {
159
143
  'id-match': 'off',
160
144
 
161
145
  // https://eslint.org/docs/rules/init-declarations
162
- 'init-declarations': [
163
- 'off',
164
- 'always',
165
- ],
146
+ 'init-declarations': ['off', 'always'],
166
147
 
167
148
  // https://eslint.org/docs/rules/max-classes-per-file
168
- 'max-classes-per-file': [
169
- 'error',
170
- config.maxClassesPerFile,
171
- ],
149
+ 'max-classes-per-file': ['error', config.maxClassesPerFile],
172
150
 
173
151
  // https://eslint.org/docs/rules/max-depth
174
- 'max-depth': [
175
- 'error',
176
- config.maxDepth,
177
- ],
152
+ 'max-depth': ['error', config.maxDepth],
178
153
 
179
154
  // https://eslint.org/docs/rules/max-lines
180
155
  'max-lines': [
@@ -198,28 +173,16 @@ module.exports = {
198
173
  ],
199
174
 
200
175
  // https://eslint.org/docs/rules/max-nested-callbacks
201
- 'max-nested-callbacks': [
202
- 'error',
203
- config.maxNestedCallbacks,
204
- ],
176
+ 'max-nested-callbacks': ['error', config.maxNestedCallbacks],
205
177
 
206
178
  // https://eslint.org/docs/rules/max-params
207
- 'max-params': [
208
- 'error',
209
- config.maxParams,
210
- ],
179
+ 'max-params': ['error', config.maxParams],
211
180
 
212
181
  // https://eslint.org/docs/rules/max-statements
213
- 'max-statements': [
214
- 'error',
215
- config.maxStatements,
216
- ],
182
+ 'max-statements': ['error', config.maxStatements],
217
183
 
218
184
  // https://eslint.org/docs/rules/multiline-comment-style
219
- 'multiline-comment-style': [
220
- 'error',
221
- 'starred-block',
222
- ],
185
+ 'multiline-comment-style': ['error', 'starred-block'],
223
186
 
224
187
  // https://eslint.org/docs/rules/new-cap
225
188
  'new-cap': [
@@ -249,7 +212,13 @@ module.exports = {
249
212
  'no-case-declarations': 'error',
250
213
 
251
214
  // https://eslint.org/docs/rules/no-confusing-arrow
252
- 'no-confusing-arrow': 'error',
215
+ 'no-confusing-arrow': [
216
+ 'error',
217
+ {
218
+ allowParens: false,
219
+ onlyOneSimpleParam: false,
220
+ },
221
+ ],
253
222
 
254
223
  // https://eslint.org/docs/rules/no-console
255
224
  'no-console': 'error',
@@ -357,9 +326,7 @@ module.exports = {
357
326
  // These numbers are used in simple cases, we can exclude them
358
327
  ignore: [
359
328
  // eslint-disable-next-line no-magic-numbers
360
- -1,
361
- 0,
362
- 1,
329
+ -1, 0, 1,
363
330
  ],
364
331
  ignoreArrayIndexes: true,
365
332
  enforceConst: true,
@@ -372,41 +339,11 @@ module.exports = {
372
339
  'error',
373
340
  {
374
341
  groups: [
375
- [
376
- '+',
377
- '-',
378
- '*',
379
- '/',
380
- '%',
381
- '**',
382
- ],
383
- [
384
- '&',
385
- '|',
386
- '^',
387
- '~',
388
- '<<',
389
- '>>',
390
- '>>>',
391
- ],
392
- [
393
- '==',
394
- '!=',
395
- '===',
396
- '!==',
397
- '>',
398
- '>=',
399
- '<',
400
- '<=',
401
- ],
402
- [
403
- '&&',
404
- '||',
405
- ],
406
- [
407
- 'in',
408
- 'instanceof',
409
- ],
342
+ ['+', '-', '*', '/', '%', '**'],
343
+ ['&', '|', '^', '~', '<<', '>>', '>>>'],
344
+ ['==', '!=', '===', '!==', '>', '>=', '<', '<='],
345
+ ['&&', '||'],
346
+ ['in', 'instanceof'],
410
347
  ],
411
348
  allowSamePrecedence: true,
412
349
  },
@@ -680,22 +617,13 @@ module.exports = {
680
617
  ],
681
618
 
682
619
  // https://eslint.org/docs/rules/one-var
683
- 'one-var': [
684
- 'error',
685
- 'never',
686
- ],
620
+ 'one-var': ['error', 'never'],
687
621
 
688
622
  // https://eslint.org/docs/rules/one-var-declaration-per-line
689
- 'one-var-declaration-per-line': [
690
- 'error',
691
- 'initializations',
692
- ],
623
+ 'one-var-declaration-per-line': ['error', 'initializations'],
693
624
 
694
625
  // https://eslint.org/docs/rules/operator-assignment
695
- 'operator-assignment': [
696
- 'error',
697
- 'never',
698
- ],
626
+ 'operator-assignment': ['error', 'never'],
699
627
 
700
628
  // https://eslint.org/docs/rules/prefer-arrow-callback
701
629
  'prefer-arrow-callback': [
@@ -816,16 +744,10 @@ module.exports = {
816
744
  ],
817
745
 
818
746
  // https://eslint.org/docs/rules/spaced-comment
819
- 'spaced-comment': [
820
- 'error',
821
- 'always',
822
- ],
747
+ 'spaced-comment': ['error', 'always'],
823
748
 
824
749
  // https://eslint.org/docs/rules/strict
825
- strict: [
826
- 'error',
827
- 'never',
828
- ],
750
+ strict: ['error', 'never'],
829
751
 
830
752
  // https://eslint.org/docs/rules/symbol-description
831
753
  'symbol-description': 'error',
@@ -835,7 +757,5 @@ module.exports = {
835
757
 
836
758
  // https://eslint.org/docs/rules/yoda
837
759
  yoda: 'error',
838
-
839
760
  },
840
-
841
761
  };
@@ -1,11 +1,9 @@
1
1
  // https://github.com/freaktechnik/eslint-plugin-array-func
2
2
 
3
3
  module.exports = {
4
-
5
4
  plugins: ['array-func'],
6
5
 
7
6
  rules: {
8
-
9
7
  'array-func/from-map': 'error',
10
8
 
11
9
  'array-func/no-unnecessary-this-arg': 'error',
@@ -19,7 +17,5 @@ module.exports = {
19
17
 
20
18
  // Disable in favour of unicorn/prefer-array-flat-map
21
19
  'array-func/prefer-flat-map': 'off',
22
-
23
20
  },
24
-
25
21
  };
@@ -1,9 +1,7 @@
1
1
  // https://github.com/benmosher/eslint-plugin-import#helpful-warnings
2
2
 
3
3
  module.exports = {
4
-
5
4
  rules: {
6
-
7
5
  // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/export.md
8
6
  'import/export': 'error',
9
7
 
@@ -34,7 +32,5 @@ module.exports = {
34
32
 
35
33
  // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-mutable-exports.md
36
34
  'import/no-mutable-exports': 'error',
37
-
38
35
  },
39
-
40
36
  };
@@ -1,47 +1,20 @@
1
1
  // eslint-plugin-import rules (https://github.com/benmosher/eslint-plugin-import)
2
2
 
3
3
  module.exports = {
4
-
5
- extends: [
6
- './helpful-warnings.js',
7
- './module-systems.js',
8
- './static-analysis.js',
9
- './style-guide.js',
10
- ],
4
+ extends: ['./helpful-warnings.js', './module-systems.js', './static-analysis.js', './style-guide.js'],
11
5
 
12
6
  plugins: ['import'],
13
7
 
14
8
  settings: {
15
-
16
9
  'import/resolver': {
17
10
  node: {
18
- extensions: [
19
- '.js',
20
- '.jsx',
21
- '.ts',
22
- '.tsx',
23
- '.mts',
24
- '.cts',
25
- '.json',
26
- ],
11
+ extensions: ['.js', '.jsx', '.ts', '.tsx', '.mts', '.cts', '.json'],
27
12
  },
28
13
  },
29
14
 
30
- 'import/extensions': [
31
- '.js',
32
- '.jsx',
33
- '.ts',
34
- '.tsx',
35
- '.mts',
36
- '.cts',
37
- ],
15
+ 'import/extensions': ['.js', '.jsx', '.ts', '.tsx', '.mts', '.cts'],
38
16
 
39
17
  'import/core-modules': [],
40
- 'import/ignore': [
41
- 'node_modules',
42
- '\\.(scss|css|less|hbs|svg|json)$',
43
- ],
44
-
18
+ 'import/ignore': ['node_modules', '\\.(scss|css|less|hbs|svg|json)$'],
45
19
  },
46
-
47
20
  };
@@ -1,9 +1,7 @@
1
1
  // https://github.com/benmosher/eslint-plugin-import#module-systems
2
2
 
3
3
  module.exports = {
4
-
5
4
  rules: {
6
-
7
5
  // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/unambiguous.md
8
6
  'import/unambiguous': 'off',
9
7
 
@@ -19,5 +17,4 @@ module.exports = {
19
17
  // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-import-module-exports.md
20
18
  'import/no-import-module-exports': 'error',
21
19
  },
22
-
23
20
  };
@@ -1,9 +1,7 @@
1
1
  // https://github.com/benmosher/eslint-plugin-import#static-analysis
2
2
 
3
3
  module.exports = {
4
-
5
4
  rules: {
6
-
7
5
  // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-unresolved.md
8
6
  'import/no-unresolved': [
9
7
  'error',
@@ -70,5 +68,4 @@ module.exports = {
70
68
  */
71
69
  'import/no-unused-modules': 'error',
72
70
  },
73
-
74
71
  };
@@ -2,14 +2,9 @@ const config = require('../config');
2
2
 
3
3
  // https://github.com/benmosher/eslint-plugin-import#style-guide
4
4
  module.exports = {
5
-
6
5
  rules: {
7
-
8
6
  // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/consistent-type-specifier-style.md
9
- 'import/consistent-type-specifier-style': [
10
- 'error',
11
- 'prefer-top-level',
12
- ],
7
+ 'import/consistent-type-specifier-style': ['error', 'prefer-top-level'],
13
8
 
14
9
  // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/first.md
15
10
  'import/first': 'error',
@@ -39,16 +34,7 @@ module.exports = {
39
34
  'import/order': [
40
35
  'error',
41
36
  {
42
- groups: [
43
- 'builtin',
44
- 'external',
45
- 'internal',
46
- 'parent',
47
- 'sibling',
48
- 'unknown',
49
- 'index',
50
- 'type',
51
- ],
37
+ groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'unknown', 'index', 'type'],
52
38
 
53
39
  'newlines-between': 'always',
54
40
  },
@@ -95,7 +81,5 @@ module.exports = {
95
81
 
96
82
  // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-named-export.md
97
83
  'import/no-named-export': 'off',
98
-
99
84
  },
100
-
101
85
  };
@@ -1,13 +1,9 @@
1
1
  // https://github.com/dustinspecker/eslint-plugin-no-use-extend-native
2
2
 
3
3
  module.exports = {
4
-
5
4
  plugins: ['no-use-extend-native'],
6
5
 
7
6
  rules: {
8
-
9
7
  'no-use-extend-native/no-use-extend-native': 'error',
10
-
11
8
  },
12
-
13
9
  };
@@ -1,11 +1,9 @@
1
1
  // https://github.com/xjamundx/eslint-plugin-promise
2
2
 
3
3
  module.exports = {
4
-
5
4
  plugins: ['promise'],
6
5
 
7
6
  rules: {
8
-
9
7
  // https://github.com/xjamundx/eslint-plugin-promise/blob/master/docs/rules/always-return.md
10
8
  'promise/always-return': 'error',
11
9
 
@@ -56,5 +54,4 @@ module.exports = {
56
54
  // https://github.com/xjamundx/eslint-plugin-promise/blob/master/docs/rules/prefer-await-to-then.md
57
55
  'promise/prefer-await-to-then': 'off',
58
56
  },
59
-
60
57
  };
@@ -1,11 +1,9 @@
1
1
  // https://github.com/sindresorhus/eslint-plugin-unicorn
2
2
 
3
3
  module.exports = {
4
-
5
4
  plugins: ['unicorn'],
6
5
 
7
6
  rules: {
8
-
9
7
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/better-regex.md
10
8
  'unicorn/better-regex': 'error',
11
9
 
@@ -203,7 +201,8 @@ module.exports = {
203
201
 
204
202
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-flat.md
205
203
  'unicorn/prefer-array-flat': [
206
- 'error', {
204
+ 'error',
205
+ {
207
206
  functions: ['flatDeep'],
208
207
  },
209
208
  ],
@@ -355,9 +354,7 @@ module.exports = {
355
354
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prevent-abbreviations.md
356
355
  'unicorn/prevent-abbreviations': 'off',
357
356
 
358
- 'unicorn/relative-url-style': [
359
- 'error', 'never',
360
- ],
357
+ 'unicorn/relative-url-style': ['error', 'never'],
361
358
 
362
359
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/require-array-join-separator.md
363
360
  'unicorn/require-array-join-separator': 'error',
@@ -372,10 +369,7 @@ module.exports = {
372
369
  'unicorn/string-content': 'off',
373
370
 
374
371
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/switch-case-braces.md
375
- 'unicorn/switch-case-braces': [
376
- 'error',
377
- 'always',
378
- ],
372
+ 'unicorn/switch-case-braces': ['error', 'always'],
379
373
 
380
374
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/template-indent.md
381
375
  'unicorn/template-indent': 'off',
@@ -386,5 +380,4 @@ module.exports = {
386
380
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/throw-new-error.md
387
381
  'unicorn/throw-new-error': 'error',
388
382
  },
389
-
390
383
  };