@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.
@@ -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
  "requireConfigFile": false,
70
70
  },
@@ -75,11 +75,11 @@
75
75
  },
76
76
  "plugins": [
77
77
  "@",
78
- "@stylistic",
78
+ "@stylistic:@stylistic/eslint-plugin@5.10.0",
79
79
  "barrel-files:eslint-plugin-barrel-files@3.0.1",
80
80
  "filenames",
81
81
  "import",
82
- "js:@eslint/js@9.39.2",
82
+ "js:@eslint/js@10.0.1",
83
83
  "prettier:eslint-plugin-prettier@5.5.5",
84
84
  "promise",
85
85
  ],
@@ -89,33 +89,54 @@
89
89
  ],
90
90
  "@stylistic/array-bracket-spacing": [
91
91
  0,
92
+ "never",
92
93
  ],
93
94
  "@stylistic/array-element-newline": [
94
95
  0,
95
96
  ],
96
97
  "@stylistic/arrow-parens": [
97
98
  0,
99
+ "always",
98
100
  ],
99
101
  "@stylistic/arrow-spacing": [
100
102
  0,
103
+ {
104
+ "after": true,
105
+ "before": true,
106
+ },
101
107
  ],
102
108
  "@stylistic/block-spacing": [
103
109
  0,
110
+ "always",
104
111
  ],
105
112
  "@stylistic/brace-style": [
106
113
  0,
114
+ "1tbs",
115
+ {
116
+ "allowSingleLine": false,
117
+ },
107
118
  ],
108
119
  "@stylistic/comma-dangle": [
109
120
  0,
121
+ "never",
110
122
  ],
111
123
  "@stylistic/comma-spacing": [
112
124
  0,
125
+ {
126
+ "after": true,
127
+ "before": false,
128
+ },
113
129
  ],
114
130
  "@stylistic/comma-style": [
115
131
  0,
132
+ "last",
116
133
  ],
117
134
  "@stylistic/computed-property-spacing": [
118
135
  0,
136
+ "never",
137
+ {
138
+ "enforceForClassMembers": true,
139
+ },
119
140
  ],
120
141
  "@stylistic/curly-newline": [
121
142
  0,
@@ -126,18 +147,38 @@
126
147
  ],
127
148
  "@stylistic/eol-last": [
128
149
  0,
150
+ "always",
129
151
  ],
130
152
  "@stylistic/exp-list-style": [
131
153
  0,
154
+ {
155
+ "multiLine": {
156
+ "minItems": 0,
157
+ },
158
+ "overrides": {
159
+ "{}": {
160
+ "singleLine": {
161
+ "spacing": "always",
162
+ },
163
+ },
164
+ },
165
+ "singleLine": {
166
+ "maxItems": null,
167
+ "spacing": "never",
168
+ },
169
+ },
132
170
  ],
133
171
  "@stylistic/function-call-argument-newline": [
134
172
  0,
173
+ "always",
135
174
  ],
136
175
  "@stylistic/function-call-spacing": [
137
176
  0,
177
+ "never",
138
178
  ],
139
179
  "@stylistic/function-paren-newline": [
140
180
  0,
181
+ "multiline",
141
182
  ],
142
183
  "@stylistic/generator-star-spacing": [
143
184
  0,
@@ -148,96 +189,201 @@
148
189
  ],
149
190
  "@stylistic/implicit-arrow-linebreak": [
150
191
  0,
192
+ "beside",
151
193
  ],
152
194
  "@stylistic/indent": [
153
195
  0,
196
+ 4,
197
+ {
198
+ "SwitchCase": 1,
199
+ "flatTernaryExpressions": false,
200
+ "ignoredNodes": [],
201
+ },
154
202
  ],
155
203
  "@stylistic/indent-binary-ops": [
156
204
  0,
205
+ 2,
157
206
  ],
158
207
  "@stylistic/jsx-child-element-spacing": [
159
208
  0,
160
209
  ],
161
210
  "@stylistic/jsx-closing-bracket-location": [
162
211
  0,
212
+ "tag-aligned",
163
213
  ],
164
214
  "@stylistic/jsx-closing-tag-location": [
165
215
  0,
216
+ "tag-aligned",
166
217
  ],
167
218
  "@stylistic/jsx-curly-brace-presence": [
168
219
  0,
220
+ {
221
+ "children": "never",
222
+ "propElementValues": "ignore",
223
+ "props": "never",
224
+ },
169
225
  ],
170
226
  "@stylistic/jsx-curly-newline": [
171
227
  0,
228
+ "consistent",
172
229
  ],
173
230
  "@stylistic/jsx-curly-spacing": [
174
231
  0,
232
+ {
233
+ "allowMultiline": true,
234
+ "when": "never",
235
+ },
175
236
  ],
176
237
  "@stylistic/jsx-equals-spacing": [
177
238
  0,
239
+ "never",
178
240
  ],
179
241
  "@stylistic/jsx-first-prop-new-line": [
180
242
  0,
243
+ "multiline-multiprop",
181
244
  ],
182
245
  "@stylistic/jsx-function-call-newline": [
183
246
  0,
247
+ "multiline",
184
248
  ],
185
249
  "@stylistic/jsx-indent-props": [
186
250
  0,
251
+ 4,
187
252
  ],
188
253
  "@stylistic/jsx-max-props-per-line": [
189
254
  0,
255
+ {
256
+ "maximum": 1,
257
+ },
190
258
  ],
191
259
  "@stylistic/jsx-newline": [
192
260
  0,
261
+ {
262
+ "allowMultilines": false,
263
+ "prevent": false,
264
+ },
193
265
  ],
194
266
  "@stylistic/jsx-one-expression-per-line": [
195
267
  0,
268
+ {
269
+ "allow": "none",
270
+ },
196
271
  ],
197
272
  "@stylistic/jsx-pascal-case": [
198
273
  0,
274
+ {
275
+ "allowAllCaps": false,
276
+ "allowLeadingUnderscore": false,
277
+ "allowNamespace": false,
278
+ },
199
279
  ],
200
280
  "@stylistic/jsx-quotes": [
201
281
  0,
282
+ "prefer-double",
202
283
  ],
203
284
  "@stylistic/jsx-self-closing-comp": [
204
285
  0,
286
+ {
287
+ "component": true,
288
+ "html": true,
289
+ },
205
290
  ],
206
291
  "@stylistic/jsx-sort-props": [
207
292
  0,
293
+ {
294
+ "callbacksLast": false,
295
+ "ignoreCase": false,
296
+ "locale": "auto",
297
+ "multiline": "ignore",
298
+ "noSortAlphabetically": false,
299
+ "reservedFirst": false,
300
+ "reservedLast": [],
301
+ "shorthandFirst": false,
302
+ "shorthandLast": false,
303
+ },
208
304
  ],
209
305
  "@stylistic/jsx-tag-spacing": [
210
306
  0,
307
+ {
308
+ "afterOpening": "never",
309
+ "beforeClosing": "allow",
310
+ "beforeSelfClosing": "always",
311
+ "closingSlash": "never",
312
+ },
211
313
  ],
212
314
  "@stylistic/jsx-wrap-multilines": [
213
315
  0,
316
+ {
317
+ "arrow": "parens",
318
+ "assignment": "parens",
319
+ "condition": "ignore",
320
+ "declaration": "parens",
321
+ "logical": "ignore",
322
+ "prop": "ignore",
323
+ "propertyValue": "ignore",
324
+ "return": "parens",
325
+ },
214
326
  ],
215
327
  "@stylistic/key-spacing": [
216
328
  0,
329
+ {},
217
330
  ],
218
331
  "@stylistic/keyword-spacing": [
219
332
  0,
333
+ {
334
+ "after": true,
335
+ "before": true,
336
+ "overrides": {},
337
+ },
220
338
  ],
221
339
  "@stylistic/line-comment-position": [
222
340
  0,
341
+ "above",
223
342
  ],
224
343
  "@stylistic/linebreak-style": [
225
344
  0,
345
+ "unix",
226
346
  ],
227
347
  "@stylistic/lines-around-comment": [
228
348
  0,
349
+ {
350
+ "beforeBlockComment": true,
351
+ },
229
352
  ],
230
353
  "@stylistic/lines-between-class-members": [
231
354
  0,
355
+ "always",
356
+ {
357
+ "exceptAfterOverload": true,
358
+ "exceptAfterSingleLine": false,
359
+ },
232
360
  ],
233
361
  "@stylistic/max-len": [
234
362
  0,
363
+ {
364
+ "code": 80,
365
+ "tabWidth": 4,
366
+ },
235
367
  ],
236
368
  "@stylistic/max-statements-per-line": [
237
369
  0,
370
+ {
371
+ "max": 1,
372
+ },
238
373
  ],
239
374
  "@stylistic/member-delimiter-style": [
240
375
  0,
376
+ {
377
+ "multiline": {
378
+ "delimiter": "semi",
379
+ "requireLast": true,
380
+ },
381
+ "multilineDetection": "brackets",
382
+ "singleline": {
383
+ "delimiter": "semi",
384
+ "requireLast": false,
385
+ },
386
+ },
241
387
  ],
242
388
  "@stylistic/multiline-comment-style": [
243
389
  0,
@@ -245,18 +391,28 @@
245
391
  ],
246
392
  "@stylistic/multiline-ternary": [
247
393
  0,
394
+ "always",
248
395
  ],
249
396
  "@stylistic/new-parens": [
250
397
  0,
398
+ "always",
251
399
  ],
252
400
  "@stylistic/newline-per-chained-call": [
253
401
  0,
402
+ {
403
+ "ignoreChainWithDepth": 2,
404
+ },
254
405
  ],
255
406
  "@stylistic/no-confusing-arrow": [
256
407
  0,
408
+ {
409
+ "allowParens": true,
410
+ "onlyOneSimpleParam": false,
411
+ },
257
412
  ],
258
413
  "@stylistic/no-extra-parens": [
259
414
  0,
415
+ "all",
260
416
  ],
261
417
  "@stylistic/no-extra-semi": [
262
418
  0,
@@ -266,81 +422,175 @@
266
422
  ],
267
423
  "@stylistic/no-mixed-operators": [
268
424
  0,
425
+ {
426
+ "allowSamePrecedence": true,
427
+ "groups": [
428
+ [
429
+ "+",
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
+ "in",
461
+ "instanceof",
462
+ ],
463
+ ],
464
+ },
269
465
  ],
270
466
  "@stylistic/no-mixed-spaces-and-tabs": [
271
467
  0,
468
+ false,
272
469
  ],
273
470
  "@stylistic/no-multi-spaces": [
274
471
  0,
472
+ {
473
+ "exceptions": {
474
+ "ImportAttribute": true,
475
+ "Property": true,
476
+ },
477
+ "ignoreEOLComments": false,
478
+ "includeTabs": true,
479
+ },
275
480
  ],
276
481
  "@stylistic/no-multiple-empty-lines": [
277
482
  0,
483
+ {
484
+ "max": 2,
485
+ },
278
486
  ],
279
487
  "@stylistic/no-tabs": [
280
488
  0,
489
+ {
490
+ "allowIndentationTabs": false,
491
+ },
281
492
  ],
282
493
  "@stylistic/no-trailing-spaces": [
283
494
  0,
495
+ {
496
+ "ignoreComments": false,
497
+ "skipBlankLines": false,
498
+ },
284
499
  ],
285
500
  "@stylistic/no-whitespace-before-property": [
286
501
  0,
287
502
  ],
288
503
  "@stylistic/nonblock-statement-body-position": [
289
504
  0,
505
+ "beside",
290
506
  ],
291
507
  "@stylistic/object-curly-newline": [
292
508
  0,
293
509
  ],
294
510
  "@stylistic/object-curly-spacing": [
295
511
  0,
512
+ "never",
296
513
  ],
297
514
  "@stylistic/object-property-newline": [
298
515
  0,
516
+ {
517
+ "allowAllPropertiesOnSameLine": false,
518
+ },
299
519
  ],
300
520
  "@stylistic/one-var-declaration-per-line": [
301
521
  0,
522
+ "initializations",
302
523
  ],
303
524
  "@stylistic/operator-linebreak": [
304
525
  0,
305
526
  ],
306
527
  "@stylistic/padded-blocks": [
307
528
  0,
529
+ "always",
530
+ {
531
+ "allowSingleLineBlocks": false,
532
+ },
308
533
  ],
309
534
  "@stylistic/padding-line-between-statements": [
310
535
  0,
311
536
  ],
312
537
  "@stylistic/quote-props": [
313
538
  0,
539
+ "always",
314
540
  ],
315
541
  "@stylistic/quotes": [
316
542
  0,
543
+ "double",
544
+ {
545
+ "allowTemplateLiterals": "never",
546
+ "avoidEscape": false,
547
+ "ignoreStringLiterals": false,
548
+ },
317
549
  ],
318
550
  "@stylistic/rest-spread-spacing": [
319
551
  0,
552
+ "never",
320
553
  ],
321
554
  "@stylistic/semi": [
322
555
  0,
556
+ "always",
323
557
  ],
324
558
  "@stylistic/semi-spacing": [
325
559
  0,
560
+ {
561
+ "after": true,
562
+ "before": false,
563
+ },
326
564
  ],
327
565
  "@stylistic/semi-style": [
328
566
  0,
567
+ "last",
329
568
  ],
330
569
  "@stylistic/space-before-blocks": [
331
570
  0,
571
+ "always",
332
572
  ],
333
573
  "@stylistic/space-before-function-paren": [
334
574
  0,
575
+ "always",
335
576
  ],
336
577
  "@stylistic/space-in-parens": [
337
578
  0,
579
+ "never",
338
580
  ],
339
581
  "@stylistic/space-infix-ops": [
340
582
  0,
583
+ {
584
+ "ignoreTypes": false,
585
+ "int32Hint": false,
586
+ },
341
587
  ],
342
588
  "@stylistic/space-unary-ops": [
343
589
  0,
590
+ {
591
+ "nonwords": false,
592
+ "words": true,
593
+ },
344
594
  ],
345
595
  "@stylistic/spaced-comment": [
346
596
  2,
@@ -374,15 +624,22 @@
374
624
  ],
375
625
  "@stylistic/switch-colon-spacing": [
376
626
  0,
627
+ {
628
+ "after": true,
629
+ "before": false,
630
+ },
377
631
  ],
378
632
  "@stylistic/template-curly-spacing": [
379
633
  0,
634
+ "never",
380
635
  ],
381
636
  "@stylistic/template-tag-spacing": [
382
637
  0,
638
+ "never",
383
639
  ],
384
640
  "@stylistic/type-annotation-spacing": [
385
641
  0,
642
+ {},
386
643
  ],
387
644
  "@stylistic/type-generic-spacing": [
388
645
  0,
@@ -392,12 +649,17 @@
392
649
  ],
393
650
  "@stylistic/wrap-iife": [
394
651
  0,
652
+ "outside",
653
+ {
654
+ "functionPrototypeMethods": false,
655
+ },
395
656
  ],
396
657
  "@stylistic/wrap-regex": [
397
658
  0,
398
659
  ],
399
660
  "@stylistic/yield-star-spacing": [
400
661
  0,
662
+ "after",
401
663
  ],
402
664
  "accessor-pairs": [
403
665
  2,
@@ -1549,7 +1811,7 @@
1549
1811
  "no-shadow-restricted-names": [
1550
1812
  2,
1551
1813
  {
1552
- "reportGlobalThis": false,
1814
+ "reportGlobalThis": true,
1553
1815
  },
1554
1816
  ],
1555
1817
  "no-sparse-arrays": [
@@ -1881,7 +2143,6 @@
1881
2143
  ],
1882
2144
  "radix": [
1883
2145
  2,
1884
- "always",
1885
2146
  ],
1886
2147
  "require-atomic-updates": [
1887
2148
  0,
@@ -17,7 +17,7 @@
17
17
  "xit": false,
18
18
  "xtest": false,
19
19
  },
20
- "parser": "espree@10.4.0",
20
+ "parser": "espree@11.2.0",
21
21
  "parserOptions": {
22
22
  "sourceType": "module",
23
23
  },
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "plugins": [
30
30
  "@",
31
- "jest:eslint-plugin-jest@29.12.1",
31
+ "jest:eslint-plugin-jest@29.15.0",
32
32
  "jest-formatting",
33
33
  "no-only-tests",
34
34
  ],
@@ -86,7 +86,7 @@
86
86
  "setTimeout": false,
87
87
  "structuredClone": false,
88
88
  },
89
- "parser": "espree@10.4.0",
89
+ "parser": "espree@11.2.0",
90
90
  "parserOptions": {
91
91
  "sourceType": "module",
92
92
  },
@@ -97,7 +97,7 @@
97
97
  },
98
98
  "plugins": [
99
99
  "@",
100
- "n:eslint-plugin-n@17.23.2",
100
+ "n:eslint-plugin-n@17.24.0",
101
101
  "import",
102
102
  ],
103
103
  "rules": {
@@ -76,7 +76,7 @@
76
76
  "setTimeout": false,
77
77
  "structuredClone": false,
78
78
  },
79
- "parser": "espree@10.4.0",
79
+ "parser": "espree@11.2.0",
80
80
  "parserOptions": {
81
81
  "sourceType": "module",
82
82
  },
@@ -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
  },
@@ -159,6 +159,7 @@
159
159
  "CookieStore": false,
160
160
  "CookieStoreManager": false,
161
161
  "CountQueuingStrategy": false,
162
+ "CrashReportContext": false,
162
163
  "CreateMonitor": false,
163
164
  "Credential": false,
164
165
  "CredentialsContainer": false,
@@ -327,6 +328,7 @@
327
328
  "HTMLFormElement": false,
328
329
  "HTMLFrameElement": false,
329
330
  "HTMLFrameSetElement": false,
331
+ "HTMLGeolocationElement": false,
330
332
  "HTMLHRElement": false,
331
333
  "HTMLHeadElement": false,
332
334
  "HTMLHeadingElement": false,
@@ -515,6 +517,7 @@
515
517
  "OffscreenCanvasRenderingContext2D": false,
516
518
  "Option": false,
517
519
  "OrientationSensor": false,
520
+ "Origin": false,
518
521
  "OscillatorNode": false,
519
522
  "OverconstrainedError": false,
520
523
  "PERSISTENT": false,
@@ -547,6 +550,7 @@
547
550
  "PerformanceScriptTiming": false,
548
551
  "PerformanceServerTiming": false,
549
552
  "PerformanceTiming": false,
553
+ "PerformanceTimingConfidence": false,
550
554
  "PeriodicSyncManager": false,
551
555
  "PeriodicWave": false,
552
556
  "PermissionStatus": false,
@@ -927,6 +931,7 @@
927
931
  "XRView": false,
928
932
  "XRViewerPose": false,
929
933
  "XRViewport": false,
934
+ "XRVisibilityMaskChangeEvent": false,
930
935
  "XRWebGLBinding": false,
931
936
  "XRWebGLDepthInformation": false,
932
937
  "XRWebGLLayer": false,
@@ -948,6 +953,7 @@
948
953
  "confirm": false,
949
954
  "console": false,
950
955
  "cookieStore": false,
956
+ "crashReport": false,
951
957
  "createImageBitmap": false,
952
958
  "credentialless": false,
953
959
  "crossOriginIsolated": false,
@@ -1168,7 +1174,7 @@
1168
1174
  "when": false,
1169
1175
  "window": false,
1170
1176
  },
1171
- "parser": "espree@10.4.0",
1177
+ "parser": "espree@11.2.0",
1172
1178
  "parserOptions": {
1173
1179
  "ecmaFeatures": {
1174
1180
  "jsx": true,
@@ -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
  },
@@ -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
  "ecmaFeatures": {
8
8
  "jsx": true,