@wistia/eslint-config 1.6.2 → 2.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.
@@ -2,7 +2,7 @@
2
2
  "language": "@/js",
3
3
  "languageOptions": {
4
4
  "ecmaVersion": 2026,
5
- "parser": "espree@10.4.0",
5
+ "parser": "espree@11.2.0",
6
6
  "parserOptions": {
7
7
  "sourceType": "module",
8
8
  },
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "plugins": [
15
15
  "@",
16
- "testing-library:eslint-plugin-testing-library@7.15.4",
16
+ "testing-library:eslint-plugin-testing-library@7.16.1",
17
17
  "jest-dom:eslint-plugin-jest-dom@5.5.0",
18
18
  ],
19
19
  "rules": {
@@ -64,7 +64,7 @@
64
64
  "undefined": false,
65
65
  "unescape": false,
66
66
  },
67
- "parser": "typescript-eslint/parser@8.53.1",
67
+ "parser": "typescript-eslint/parser@8.57.1",
68
68
  "parserOptions": {
69
69
  "ecmaVersion": 2024,
70
70
  "project": "./tsconfig.json",
@@ -77,8 +77,8 @@
77
77
  },
78
78
  "plugins": [
79
79
  "@",
80
- "@stylistic",
81
- "@typescript-eslint:@typescript-eslint/eslint-plugin@8.53.1",
80
+ "@stylistic:@stylistic/eslint-plugin@5.10.0",
81
+ "@typescript-eslint:@typescript-eslint/eslint-plugin@8.57.1",
82
82
  "barrel-files:eslint-plugin-barrel-files@3.0.1",
83
83
  "filenames",
84
84
  "import",
@@ -91,33 +91,54 @@
91
91
  ],
92
92
  "@stylistic/array-bracket-spacing": [
93
93
  0,
94
+ "never",
94
95
  ],
95
96
  "@stylistic/array-element-newline": [
96
97
  0,
97
98
  ],
98
99
  "@stylistic/arrow-parens": [
99
100
  0,
101
+ "always",
100
102
  ],
101
103
  "@stylistic/arrow-spacing": [
102
104
  0,
105
+ {
106
+ "after": true,
107
+ "before": true,
108
+ },
103
109
  ],
104
110
  "@stylistic/block-spacing": [
105
111
  0,
112
+ "always",
106
113
  ],
107
114
  "@stylistic/brace-style": [
108
115
  0,
116
+ "1tbs",
117
+ {
118
+ "allowSingleLine": false,
119
+ },
109
120
  ],
110
121
  "@stylistic/comma-dangle": [
111
122
  0,
123
+ "never",
112
124
  ],
113
125
  "@stylistic/comma-spacing": [
114
126
  0,
127
+ {
128
+ "after": true,
129
+ "before": false,
130
+ },
115
131
  ],
116
132
  "@stylistic/comma-style": [
117
133
  0,
134
+ "last",
118
135
  ],
119
136
  "@stylistic/computed-property-spacing": [
120
137
  0,
138
+ "never",
139
+ {
140
+ "enforceForClassMembers": true,
141
+ },
121
142
  ],
122
143
  "@stylistic/curly-newline": [
123
144
  0,
@@ -128,18 +149,38 @@
128
149
  ],
129
150
  "@stylistic/eol-last": [
130
151
  0,
152
+ "always",
131
153
  ],
132
154
  "@stylistic/exp-list-style": [
133
155
  0,
156
+ {
157
+ "multiLine": {
158
+ "minItems": 0,
159
+ },
160
+ "overrides": {
161
+ "{}": {
162
+ "singleLine": {
163
+ "spacing": "always",
164
+ },
165
+ },
166
+ },
167
+ "singleLine": {
168
+ "maxItems": null,
169
+ "spacing": "never",
170
+ },
171
+ },
134
172
  ],
135
173
  "@stylistic/function-call-argument-newline": [
136
174
  0,
175
+ "always",
137
176
  ],
138
177
  "@stylistic/function-call-spacing": [
139
178
  0,
179
+ "never",
140
180
  ],
141
181
  "@stylistic/function-paren-newline": [
142
182
  0,
183
+ "multiline",
143
184
  ],
144
185
  "@stylistic/generator-star-spacing": [
145
186
  0,
@@ -150,96 +191,201 @@
150
191
  ],
151
192
  "@stylistic/implicit-arrow-linebreak": [
152
193
  0,
194
+ "beside",
153
195
  ],
154
196
  "@stylistic/indent": [
155
197
  0,
198
+ 4,
199
+ {
200
+ "SwitchCase": 1,
201
+ "flatTernaryExpressions": false,
202
+ "ignoredNodes": [],
203
+ },
156
204
  ],
157
205
  "@stylistic/indent-binary-ops": [
158
206
  0,
207
+ 2,
159
208
  ],
160
209
  "@stylistic/jsx-child-element-spacing": [
161
210
  0,
162
211
  ],
163
212
  "@stylistic/jsx-closing-bracket-location": [
164
213
  0,
214
+ "tag-aligned",
165
215
  ],
166
216
  "@stylistic/jsx-closing-tag-location": [
167
217
  0,
218
+ "tag-aligned",
168
219
  ],
169
220
  "@stylistic/jsx-curly-brace-presence": [
170
221
  0,
222
+ {
223
+ "children": "never",
224
+ "propElementValues": "ignore",
225
+ "props": "never",
226
+ },
171
227
  ],
172
228
  "@stylistic/jsx-curly-newline": [
173
229
  0,
230
+ "consistent",
174
231
  ],
175
232
  "@stylistic/jsx-curly-spacing": [
176
233
  0,
234
+ {
235
+ "allowMultiline": true,
236
+ "when": "never",
237
+ },
177
238
  ],
178
239
  "@stylistic/jsx-equals-spacing": [
179
240
  0,
241
+ "never",
180
242
  ],
181
243
  "@stylistic/jsx-first-prop-new-line": [
182
244
  0,
245
+ "multiline-multiprop",
183
246
  ],
184
247
  "@stylistic/jsx-function-call-newline": [
185
248
  0,
249
+ "multiline",
186
250
  ],
187
251
  "@stylistic/jsx-indent-props": [
188
252
  0,
253
+ 4,
189
254
  ],
190
255
  "@stylistic/jsx-max-props-per-line": [
191
256
  0,
257
+ {
258
+ "maximum": 1,
259
+ },
192
260
  ],
193
261
  "@stylistic/jsx-newline": [
194
262
  0,
263
+ {
264
+ "allowMultilines": false,
265
+ "prevent": false,
266
+ },
195
267
  ],
196
268
  "@stylistic/jsx-one-expression-per-line": [
197
269
  0,
270
+ {
271
+ "allow": "none",
272
+ },
198
273
  ],
199
274
  "@stylistic/jsx-pascal-case": [
200
275
  0,
276
+ {
277
+ "allowAllCaps": false,
278
+ "allowLeadingUnderscore": false,
279
+ "allowNamespace": false,
280
+ },
201
281
  ],
202
282
  "@stylistic/jsx-quotes": [
203
283
  0,
284
+ "prefer-double",
204
285
  ],
205
286
  "@stylistic/jsx-self-closing-comp": [
206
287
  0,
288
+ {
289
+ "component": true,
290
+ "html": true,
291
+ },
207
292
  ],
208
293
  "@stylistic/jsx-sort-props": [
209
294
  0,
295
+ {
296
+ "callbacksLast": false,
297
+ "ignoreCase": false,
298
+ "locale": "auto",
299
+ "multiline": "ignore",
300
+ "noSortAlphabetically": false,
301
+ "reservedFirst": false,
302
+ "reservedLast": [],
303
+ "shorthandFirst": false,
304
+ "shorthandLast": false,
305
+ },
210
306
  ],
211
307
  "@stylistic/jsx-tag-spacing": [
212
308
  0,
309
+ {
310
+ "afterOpening": "never",
311
+ "beforeClosing": "allow",
312
+ "beforeSelfClosing": "always",
313
+ "closingSlash": "never",
314
+ },
213
315
  ],
214
316
  "@stylistic/jsx-wrap-multilines": [
215
317
  0,
318
+ {
319
+ "arrow": "parens",
320
+ "assignment": "parens",
321
+ "condition": "ignore",
322
+ "declaration": "parens",
323
+ "logical": "ignore",
324
+ "prop": "ignore",
325
+ "propertyValue": "ignore",
326
+ "return": "parens",
327
+ },
216
328
  ],
217
329
  "@stylistic/key-spacing": [
218
330
  0,
331
+ {},
219
332
  ],
220
333
  "@stylistic/keyword-spacing": [
221
334
  0,
335
+ {
336
+ "after": true,
337
+ "before": true,
338
+ "overrides": {},
339
+ },
222
340
  ],
223
341
  "@stylistic/line-comment-position": [
224
342
  0,
343
+ "above",
225
344
  ],
226
345
  "@stylistic/linebreak-style": [
227
346
  0,
347
+ "unix",
228
348
  ],
229
349
  "@stylistic/lines-around-comment": [
230
350
  0,
351
+ {
352
+ "beforeBlockComment": true,
353
+ },
231
354
  ],
232
355
  "@stylistic/lines-between-class-members": [
233
356
  0,
357
+ "always",
358
+ {
359
+ "exceptAfterOverload": true,
360
+ "exceptAfterSingleLine": false,
361
+ },
234
362
  ],
235
363
  "@stylistic/max-len": [
236
364
  0,
365
+ {
366
+ "code": 80,
367
+ "tabWidth": 4,
368
+ },
237
369
  ],
238
370
  "@stylistic/max-statements-per-line": [
239
371
  0,
372
+ {
373
+ "max": 1,
374
+ },
240
375
  ],
241
376
  "@stylistic/member-delimiter-style": [
242
377
  0,
378
+ {
379
+ "multiline": {
380
+ "delimiter": "semi",
381
+ "requireLast": true,
382
+ },
383
+ "multilineDetection": "brackets",
384
+ "singleline": {
385
+ "delimiter": "semi",
386
+ "requireLast": false,
387
+ },
388
+ },
243
389
  ],
244
390
  "@stylistic/multiline-comment-style": [
245
391
  0,
@@ -247,18 +393,28 @@
247
393
  ],
248
394
  "@stylistic/multiline-ternary": [
249
395
  0,
396
+ "always",
250
397
  ],
251
398
  "@stylistic/new-parens": [
252
399
  0,
400
+ "always",
253
401
  ],
254
402
  "@stylistic/newline-per-chained-call": [
255
403
  0,
404
+ {
405
+ "ignoreChainWithDepth": 2,
406
+ },
256
407
  ],
257
408
  "@stylistic/no-confusing-arrow": [
258
409
  0,
410
+ {
411
+ "allowParens": true,
412
+ "onlyOneSimpleParam": false,
413
+ },
259
414
  ],
260
415
  "@stylistic/no-extra-parens": [
261
416
  0,
417
+ "all",
262
418
  ],
263
419
  "@stylistic/no-extra-semi": [
264
420
  0,
@@ -268,81 +424,175 @@
268
424
  ],
269
425
  "@stylistic/no-mixed-operators": [
270
426
  0,
427
+ {
428
+ "allowSamePrecedence": true,
429
+ "groups": [
430
+ [
431
+ "+",
432
+ "-",
433
+ "*",
434
+ "/",
435
+ "%",
436
+ "**",
437
+ ],
438
+ [
439
+ "&",
440
+ "|",
441
+ "^",
442
+ "~",
443
+ "<<",
444
+ ">>",
445
+ ">>>",
446
+ ],
447
+ [
448
+ "==",
449
+ "!=",
450
+ "===",
451
+ "!==",
452
+ ">",
453
+ ">=",
454
+ "<",
455
+ "<=",
456
+ ],
457
+ [
458
+ "&&",
459
+ "||",
460
+ ],
461
+ [
462
+ "in",
463
+ "instanceof",
464
+ ],
465
+ ],
466
+ },
271
467
  ],
272
468
  "@stylistic/no-mixed-spaces-and-tabs": [
273
469
  0,
470
+ false,
274
471
  ],
275
472
  "@stylistic/no-multi-spaces": [
276
473
  0,
474
+ {
475
+ "exceptions": {
476
+ "ImportAttribute": true,
477
+ "Property": true,
478
+ },
479
+ "ignoreEOLComments": false,
480
+ "includeTabs": true,
481
+ },
277
482
  ],
278
483
  "@stylistic/no-multiple-empty-lines": [
279
484
  0,
485
+ {
486
+ "max": 2,
487
+ },
280
488
  ],
281
489
  "@stylistic/no-tabs": [
282
490
  0,
491
+ {
492
+ "allowIndentationTabs": false,
493
+ },
283
494
  ],
284
495
  "@stylistic/no-trailing-spaces": [
285
496
  0,
497
+ {
498
+ "ignoreComments": false,
499
+ "skipBlankLines": false,
500
+ },
286
501
  ],
287
502
  "@stylistic/no-whitespace-before-property": [
288
503
  0,
289
504
  ],
290
505
  "@stylistic/nonblock-statement-body-position": [
291
506
  0,
507
+ "beside",
292
508
  ],
293
509
  "@stylistic/object-curly-newline": [
294
510
  0,
295
511
  ],
296
512
  "@stylistic/object-curly-spacing": [
297
513
  0,
514
+ "never",
298
515
  ],
299
516
  "@stylistic/object-property-newline": [
300
517
  0,
518
+ {
519
+ "allowAllPropertiesOnSameLine": false,
520
+ },
301
521
  ],
302
522
  "@stylistic/one-var-declaration-per-line": [
303
523
  0,
524
+ "initializations",
304
525
  ],
305
526
  "@stylistic/operator-linebreak": [
306
527
  0,
307
528
  ],
308
529
  "@stylistic/padded-blocks": [
309
530
  0,
531
+ "always",
532
+ {
533
+ "allowSingleLineBlocks": false,
534
+ },
310
535
  ],
311
536
  "@stylistic/padding-line-between-statements": [
312
537
  0,
313
538
  ],
314
539
  "@stylistic/quote-props": [
315
540
  0,
541
+ "always",
316
542
  ],
317
543
  "@stylistic/quotes": [
318
544
  0,
545
+ "double",
546
+ {
547
+ "allowTemplateLiterals": "never",
548
+ "avoidEscape": false,
549
+ "ignoreStringLiterals": false,
550
+ },
319
551
  ],
320
552
  "@stylistic/rest-spread-spacing": [
321
553
  0,
554
+ "never",
322
555
  ],
323
556
  "@stylistic/semi": [
324
557
  0,
558
+ "always",
325
559
  ],
326
560
  "@stylistic/semi-spacing": [
327
561
  0,
562
+ {
563
+ "after": true,
564
+ "before": false,
565
+ },
328
566
  ],
329
567
  "@stylistic/semi-style": [
330
568
  0,
569
+ "last",
331
570
  ],
332
571
  "@stylistic/space-before-blocks": [
333
572
  0,
573
+ "always",
334
574
  ],
335
575
  "@stylistic/space-before-function-paren": [
336
576
  0,
577
+ "always",
337
578
  ],
338
579
  "@stylistic/space-in-parens": [
339
580
  0,
581
+ "never",
340
582
  ],
341
583
  "@stylistic/space-infix-ops": [
342
584
  0,
585
+ {
586
+ "ignoreTypes": false,
587
+ "int32Hint": false,
588
+ },
343
589
  ],
344
590
  "@stylistic/space-unary-ops": [
345
591
  0,
592
+ {
593
+ "nonwords": false,
594
+ "words": true,
595
+ },
346
596
  ],
347
597
  "@stylistic/spaced-comment": [
348
598
  2,
@@ -376,15 +626,22 @@
376
626
  ],
377
627
  "@stylistic/switch-colon-spacing": [
378
628
  0,
629
+ {
630
+ "after": true,
631
+ "before": false,
632
+ },
379
633
  ],
380
634
  "@stylistic/template-curly-spacing": [
381
635
  0,
636
+ "never",
382
637
  ],
383
638
  "@stylistic/template-tag-spacing": [
384
639
  0,
640
+ "never",
385
641
  ],
386
642
  "@stylistic/type-annotation-spacing": [
387
643
  0,
644
+ {},
388
645
  ],
389
646
  "@stylistic/type-generic-spacing": [
390
647
  0,
@@ -394,12 +651,17 @@
394
651
  ],
395
652
  "@stylistic/wrap-iife": [
396
653
  0,
654
+ "outside",
655
+ {
656
+ "functionPrototypeMethods": false,
657
+ },
397
658
  ],
398
659
  "@stylistic/wrap-regex": [
399
660
  0,
400
661
  ],
401
662
  "@stylistic/yield-star-spacing": [
402
663
  0,
664
+ "after",
403
665
  ],
404
666
  "@typescript-eslint/adjacent-overload-signatures": [
405
667
  2,
@@ -2012,7 +2274,7 @@
2012
2274
  "no-shadow-restricted-names": [
2013
2275
  2,
2014
2276
  {
2015
- "reportGlobalThis": false,
2277
+ "reportGlobalThis": true,
2016
2278
  },
2017
2279
  ],
2018
2280
  "no-sparse-arrays": [
@@ -2320,7 +2582,6 @@
2320
2582
  ],
2321
2583
  "radix": [
2322
2584
  2,
2323
- "always",
2324
2585
  ],
2325
2586
  "require-atomic-updates": [
2326
2587
  0,