eslint-config-typed 4.0.5 → 4.0.6

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.
Files changed (37) hide show
  1. package/dist/types/rules/eslint-cypress-rules.d.mts +2 -2
  2. package/dist/types/rules/eslint-import-rules.d.mts +214 -168
  3. package/dist/types/rules/eslint-import-rules.d.mts.map +1 -1
  4. package/dist/types/rules/eslint-jest-rules.d.mts +47 -45
  5. package/dist/types/rules/eslint-jest-rules.d.mts.map +1 -1
  6. package/dist/types/rules/eslint-playwright-rules.d.mts +41 -34
  7. package/dist/types/rules/eslint-playwright-rules.d.mts.map +1 -1
  8. package/dist/types/rules/eslint-prefer-arrow-functions-rules.d.mts +6 -2
  9. package/dist/types/rules/eslint-prefer-arrow-functions-rules.d.mts.map +1 -1
  10. package/dist/types/rules/eslint-react-rules.d.mts +208 -185
  11. package/dist/types/rules/eslint-react-rules.d.mts.map +1 -1
  12. package/dist/types/rules/eslint-rules.d.mts +1244 -1073
  13. package/dist/types/rules/eslint-rules.d.mts.map +1 -1
  14. package/dist/types/rules/eslint-stylistic-rules.d.mts +707 -619
  15. package/dist/types/rules/eslint-stylistic-rules.d.mts.map +1 -1
  16. package/dist/types/rules/eslint-ts-restrictions-rules.d.mts +94 -76
  17. package/dist/types/rules/eslint-ts-restrictions-rules.d.mts.map +1 -1
  18. package/dist/types/rules/eslint-unicorn-rules.d.mts +145 -121
  19. package/dist/types/rules/eslint-unicorn-rules.d.mts.map +1 -1
  20. package/dist/types/rules/eslint-vitest-rules.d.mts +43 -42
  21. package/dist/types/rules/eslint-vitest-rules.d.mts.map +1 -1
  22. package/dist/types/rules/typescript-eslint-rules.d.mts +1973 -1763
  23. package/dist/types/rules/typescript-eslint-rules.d.mts.map +1 -1
  24. package/package.json +57 -57
  25. package/src/plugins/vitest-coding-style/rules/original-assert-api-type.test.mts +147 -143
  26. package/src/types/rules/eslint-cypress-rules.mts +2 -2
  27. package/src/types/rules/eslint-import-rules.mts +214 -168
  28. package/src/types/rules/eslint-jest-rules.mts +47 -45
  29. package/src/types/rules/eslint-playwright-rules.mts +41 -34
  30. package/src/types/rules/eslint-prefer-arrow-functions-rules.mts +6 -2
  31. package/src/types/rules/eslint-react-rules.mts +208 -185
  32. package/src/types/rules/eslint-rules.mts +1229 -1058
  33. package/src/types/rules/eslint-stylistic-rules.mts +707 -619
  34. package/src/types/rules/eslint-ts-restrictions-rules.mts +94 -76
  35. package/src/types/rules/eslint-unicorn-rules.mts +145 -121
  36. package/src/types/rules/eslint-vitest-rules.mts +43 -42
  37. package/src/types/rules/typescript-eslint-rules.mts +1973 -1763
@@ -276,156 +276,198 @@ namespace Extensions {
276
276
  * ### schema
277
277
  *
278
278
  * ```json
279
- * {
280
- * "anyOf": [
281
- * {
282
- * "type": "array",
283
- * "items": [
284
- * {
285
- * "type": "string",
286
- * "enum": ["always", "ignorePackages", "never"]
287
- * }
288
- * ],
289
- * "additionalItems": false
290
- * },
291
- * {
292
- * "type": "array",
293
- * "items": [
294
- * {
295
- * "type": "string",
296
- * "enum": ["always", "ignorePackages", "never"]
297
- * },
298
- * {
299
- * "type": "object",
300
- * "properties": {
301
- * "pattern": {
302
- * "type": "object",
303
- * "patternProperties": {
304
- * ".*": {
305
- * "type": "string",
306
- * "enum": ["always", "ignorePackages", "never"]
307
- * }
308
- * }
309
- * },
310
- * "ignorePackages": {
311
- * "type": "boolean"
312
- * },
313
- * "checkTypeImports": {
314
- * "type": "boolean"
315
- * },
316
- * "pathGroupOverrides": {
317
- * "type": "array",
318
- * "items": {
279
+ * [
280
+ * {
281
+ * "anyOf": [
282
+ * {
283
+ * "type": "array",
284
+ * "items": [
285
+ * {
286
+ * "type": "string",
287
+ * "enum": [
288
+ * "always",
289
+ * "ignorePackages",
290
+ * "never"
291
+ * ]
292
+ * }
293
+ * ],
294
+ * "additionalItems": false
295
+ * },
296
+ * {
297
+ * "type": "array",
298
+ * "items": [
299
+ * {
300
+ * "type": "string",
301
+ * "enum": [
302
+ * "always",
303
+ * "ignorePackages",
304
+ * "never"
305
+ * ]
306
+ * },
307
+ * {
308
+ * "type": "object",
309
+ * "properties": {
310
+ * "pattern": {
319
311
  * "type": "object",
320
- * "properties": {
321
- * "pattern": {
322
- * "type": "string"
323
- * },
324
- * "patternOptions": {
325
- * "type": "object"
326
- * },
327
- * "action": {
312
+ * "patternProperties": {
313
+ * ".*": {
328
314
  * "type": "string",
329
- * "enum": ["enforce", "ignore"]
315
+ * "enum": [
316
+ * "always",
317
+ * "ignorePackages",
318
+ * "never"
319
+ * ]
330
320
  * }
331
- * },
332
- * "additionalProperties": false,
333
- * "required": ["pattern", "action"]
321
+ * }
322
+ * },
323
+ * "ignorePackages": {
324
+ * "type": "boolean"
325
+ * },
326
+ * "checkTypeImports": {
327
+ * "type": "boolean"
328
+ * },
329
+ * "pathGroupOverrides": {
330
+ * "type": "array",
331
+ * "items": {
332
+ * "type": "object",
333
+ * "properties": {
334
+ * "pattern": {
335
+ * "type": "string"
336
+ * },
337
+ * "patternOptions": {
338
+ * "type": "object"
339
+ * },
340
+ * "action": {
341
+ * "type": "string",
342
+ * "enum": [
343
+ * "enforce",
344
+ * "ignore"
345
+ * ]
346
+ * }
347
+ * },
348
+ * "additionalProperties": false,
349
+ * "required": [
350
+ * "pattern",
351
+ * "action"
352
+ * ]
353
+ * }
354
+ * },
355
+ * "fix": {
356
+ * "type": "boolean"
334
357
  * }
335
- * },
336
- * "fix": {
337
- * "type": "boolean"
338
358
  * }
339
359
  * }
340
- * }
341
- * ],
342
- * "additionalItems": false
343
- * },
344
- * {
345
- * "type": "array",
346
- * "items": [
347
- * {
348
- * "type": "object",
349
- * "properties": {
350
- * "pattern": {
351
- * "type": "object",
352
- * "patternProperties": {
353
- * ".*": {
354
- * "type": "string",
355
- * "enum": ["always", "ignorePackages", "never"]
356
- * }
357
- * }
358
- * },
359
- * "ignorePackages": {
360
- * "type": "boolean"
361
- * },
362
- * "checkTypeImports": {
363
- * "type": "boolean"
364
- * },
365
- * "pathGroupOverrides": {
366
- * "type": "array",
367
- * "items": {
360
+ * ],
361
+ * "additionalItems": false
362
+ * },
363
+ * {
364
+ * "type": "array",
365
+ * "items": [
366
+ * {
367
+ * "type": "object",
368
+ * "properties": {
369
+ * "pattern": {
368
370
  * "type": "object",
369
- * "properties": {
370
- * "pattern": {
371
- * "type": "string"
372
- * },
373
- * "patternOptions": {
374
- * "type": "object"
375
- * },
376
- * "action": {
371
+ * "patternProperties": {
372
+ * ".*": {
377
373
  * "type": "string",
378
- * "enum": ["enforce", "ignore"]
374
+ * "enum": [
375
+ * "always",
376
+ * "ignorePackages",
377
+ * "never"
378
+ * ]
379
379
  * }
380
- * },
381
- * "additionalProperties": false,
382
- * "required": ["pattern", "action"]
380
+ * }
381
+ * },
382
+ * "ignorePackages": {
383
+ * "type": "boolean"
384
+ * },
385
+ * "checkTypeImports": {
386
+ * "type": "boolean"
387
+ * },
388
+ * "pathGroupOverrides": {
389
+ * "type": "array",
390
+ * "items": {
391
+ * "type": "object",
392
+ * "properties": {
393
+ * "pattern": {
394
+ * "type": "string"
395
+ * },
396
+ * "patternOptions": {
397
+ * "type": "object"
398
+ * },
399
+ * "action": {
400
+ * "type": "string",
401
+ * "enum": [
402
+ * "enforce",
403
+ * "ignore"
404
+ * ]
405
+ * }
406
+ * },
407
+ * "additionalProperties": false,
408
+ * "required": [
409
+ * "pattern",
410
+ * "action"
411
+ * ]
412
+ * }
413
+ * },
414
+ * "fix": {
415
+ * "type": "boolean"
383
416
  * }
384
- * },
385
- * "fix": {
386
- * "type": "boolean"
387
417
  * }
388
418
  * }
389
- * }
390
- * ],
391
- * "additionalItems": false
392
- * },
393
- * {
394
- * "type": "array",
395
- * "items": [
396
- * {
397
- * "type": "string",
398
- * "enum": ["always", "ignorePackages", "never"]
399
- * },
400
- * {
401
- * "type": "object",
402
- * "patternProperties": {
403
- * ".*": {
404
- * "type": "string",
405
- * "enum": ["always", "ignorePackages", "never"]
419
+ * ],
420
+ * "additionalItems": false
421
+ * },
422
+ * {
423
+ * "type": "array",
424
+ * "items": [
425
+ * {
426
+ * "type": "string",
427
+ * "enum": [
428
+ * "always",
429
+ * "ignorePackages",
430
+ * "never"
431
+ * ]
432
+ * },
433
+ * {
434
+ * "type": "object",
435
+ * "patternProperties": {
436
+ * ".*": {
437
+ * "type": "string",
438
+ * "enum": [
439
+ * "always",
440
+ * "ignorePackages",
441
+ * "never"
442
+ * ]
443
+ * }
406
444
  * }
407
445
  * }
408
- * }
409
- * ],
410
- * "additionalItems": false
411
- * },
412
- * {
413
- * "type": "array",
414
- * "items": [
415
- * {
416
- * "type": "object",
417
- * "patternProperties": {
418
- * ".*": {
419
- * "type": "string",
420
- * "enum": ["always", "ignorePackages", "never"]
446
+ * ],
447
+ * "additionalItems": false
448
+ * },
449
+ * {
450
+ * "type": "array",
451
+ * "items": [
452
+ * {
453
+ * "type": "object",
454
+ * "patternProperties": {
455
+ * ".*": {
456
+ * "type": "string",
457
+ * "enum": [
458
+ * "always",
459
+ * "ignorePackages",
460
+ * "never"
461
+ * ]
462
+ * }
421
463
  * }
422
464
  * }
423
- * }
424
- * ],
425
- * "additionalItems": false
426
- * }
427
- * ]
428
- * }
465
+ * ],
466
+ * "additionalItems": false
467
+ * }
468
+ * ]
469
+ * }
470
+ * ]
429
471
  * ```
430
472
  */
431
473
  export type Options =
@@ -1257,41 +1299,45 @@ namespace NoCommonjs {
1257
1299
  * ### schema
1258
1300
  *
1259
1301
  * ```json
1260
- * {
1261
- * "anyOf": [
1262
- * {
1263
- * "type": "array",
1264
- * "items": [
1265
- * {
1266
- * "type": "string",
1267
- * "enum": ["allow-primitive-modules"]
1268
- * }
1269
- * ],
1270
- * "additionalItems": false
1271
- * },
1272
- * {
1273
- * "type": "array",
1274
- * "items": [
1275
- * {
1276
- * "type": "object",
1277
- * "properties": {
1278
- * "allowPrimitiveModules": {
1279
- * "type": "boolean"
1280
- * },
1281
- * "allowRequire": {
1282
- * "type": "boolean"
1302
+ * [
1303
+ * {
1304
+ * "anyOf": [
1305
+ * {
1306
+ * "type": "array",
1307
+ * "items": [
1308
+ * {
1309
+ * "type": "string",
1310
+ * "enum": [
1311
+ * "allow-primitive-modules"
1312
+ * ]
1313
+ * }
1314
+ * ],
1315
+ * "additionalItems": false
1316
+ * },
1317
+ * {
1318
+ * "type": "array",
1319
+ * "items": [
1320
+ * {
1321
+ * "type": "object",
1322
+ * "properties": {
1323
+ * "allowPrimitiveModules": {
1324
+ * "type": "boolean"
1325
+ * },
1326
+ * "allowRequire": {
1327
+ * "type": "boolean"
1328
+ * },
1329
+ * "allowConditionalRequire": {
1330
+ * "type": "boolean"
1331
+ * }
1283
1332
  * },
1284
- * "allowConditionalRequire": {
1285
- * "type": "boolean"
1286
- * }
1287
- * },
1288
- * "additionalProperties": false
1289
- * }
1290
- * ],
1291
- * "additionalItems": false
1292
- * }
1293
- * ]
1294
- * }
1333
+ * "additionalProperties": false
1334
+ * }
1335
+ * ],
1336
+ * "additionalItems": false
1337
+ * }
1338
+ * ]
1339
+ * }
1340
+ * ]
1295
1341
  * ```
1296
1342
  */
1297
1343
  export type Options =
@@ -1655,28 +1655,9 @@ namespace ValidTitle {
1655
1655
  * [
1656
1656
  * {
1657
1657
  * "type": "object",
1658
- * "properties": {
1659
- * "ignoreSpaces": {
1660
- * "type": "boolean",
1661
- * "default": false
1662
- * },
1663
- * "ignoreTypeOfDescribeName": {
1664
- * "type": "boolean",
1665
- * "default": false
1666
- * },
1667
- * "ignoreTypeOfTestName": {
1668
- * "type": "boolean",
1669
- * "default": false
1670
- * },
1671
- * "disallowedWords": {
1672
- * "type": "array",
1673
- * "items": {
1674
- * "type": "string"
1675
- * }
1676
- * }
1677
- * },
1678
- * "patternProperties": {
1679
- * "^must(?:Not)?Match$": {
1658
+ * "additionalProperties": false,
1659
+ * "definitions": {
1660
+ * "PatternOrPatternArray": {
1680
1661
  * "oneOf": [
1681
1662
  * {
1682
1663
  * "type": "string"
@@ -1689,37 +1670,58 @@ namespace ValidTitle {
1689
1670
  * "minItems": 1,
1690
1671
  * "maxItems": 2,
1691
1672
  * "additionalItems": false
1673
+ * }
1674
+ * ]
1675
+ * },
1676
+ * "MustMatchType": {
1677
+ * "oneOf": [
1678
+ * {
1679
+ * "$ref": "#/definitions/PatternOrPatternArray"
1692
1680
  * },
1693
1681
  * {
1694
1682
  * "type": "object",
1695
- * "propertyNames": {
1696
- * "enum": [
1697
- * "describe",
1698
- * "test",
1699
- * "it"
1700
- * ]
1683
+ * "properties": {
1684
+ * "describe": {
1685
+ * "$ref": "#/definitions/PatternOrPatternArray"
1686
+ * },
1687
+ * "test": {
1688
+ * "$ref": "#/definitions/PatternOrPatternArray"
1689
+ * },
1690
+ * "it": {
1691
+ * "$ref": "#/definitions/PatternOrPatternArray"
1692
+ * }
1701
1693
  * },
1702
- * "additionalProperties": {
1703
- * "oneOf": [
1704
- * {
1705
- * "type": "string"
1706
- * },
1707
- * {
1708
- * "type": "array",
1709
- * "items": {
1710
- * "type": "string"
1711
- * },
1712
- * "minItems": 1,
1713
- * "maxItems": 2,
1714
- * "additionalItems": false
1715
- * }
1716
- * ]
1717
- * }
1694
+ * "additionalProperties": false
1718
1695
  * }
1719
1696
  * ]
1720
1697
  * }
1721
1698
  * },
1722
- * "additionalProperties": false
1699
+ * "properties": {
1700
+ * "ignoreSpaces": {
1701
+ * "type": "boolean",
1702
+ * "default": false
1703
+ * },
1704
+ * "ignoreTypeOfDescribeName": {
1705
+ * "type": "boolean",
1706
+ * "default": false
1707
+ * },
1708
+ * "ignoreTypeOfTestName": {
1709
+ * "type": "boolean",
1710
+ * "default": false
1711
+ * },
1712
+ * "disallowedWords": {
1713
+ * "type": "array",
1714
+ * "items": {
1715
+ * "type": "string"
1716
+ * }
1717
+ * },
1718
+ * "mustMatch": {
1719
+ * "$ref": "#/definitions/MustMatchType"
1720
+ * },
1721
+ * "mustNotMatch": {
1722
+ * "$ref": "#/definitions/MustMatchType"
1723
+ * }
1724
+ * }
1723
1725
  * }
1724
1726
  * ]
1725
1727
  * ```
@@ -30,12 +30,16 @@ namespace ExpectExpect {
30
30
  * "additionalProperties": false,
31
31
  * "properties": {
32
32
  * "assertFunctionNames": {
33
- * "items": [
34
- * {
35
- * "type": "string"
36
- * }
37
- * ],
38
- * "type": "array"
33
+ * "type": "array",
34
+ * "items": {
35
+ * "type": "string"
36
+ * }
37
+ * },
38
+ * "assertFunctionPatterns": {
39
+ * "type": "array",
40
+ * "items": {
41
+ * "type": "string"
42
+ * }
39
43
  * }
40
44
  * },
41
45
  * "type": "object"
@@ -44,7 +48,8 @@ namespace ExpectExpect {
44
48
  * ```
45
49
  */
46
50
  export type Options = Readonly<{
47
- assertFunctionNames?: readonly [] | readonly [string];
51
+ assertFunctionNames?: readonly string[];
52
+ assertFunctionPatterns?: readonly string[];
48
53
  }>;
49
54
 
50
55
  export type RuleEntry =
@@ -1380,8 +1385,9 @@ namespace ValidTitle {
1380
1385
  * [
1381
1386
  * {
1382
1387
  * "additionalProperties": false,
1383
- * "patternProperties": {
1384
- * "^must(?:Not)?Match$": {
1388
+ * "type": "object",
1389
+ * "definitions": {
1390
+ * "PatternOrPatternArray": {
1385
1391
  * "oneOf": [
1386
1392
  * {
1387
1393
  * "type": "string"
@@ -1394,32 +1400,28 @@ namespace ValidTitle {
1394
1400
  * "maxItems": 2,
1395
1401
  * "minItems": 1,
1396
1402
  * "type": "array"
1403
+ * }
1404
+ * ]
1405
+ * },
1406
+ * "MustMatchType": {
1407
+ * "oneOf": [
1408
+ * {
1409
+ * "$ref": "#/definitions/PatternOrPatternArray"
1397
1410
  * },
1398
1411
  * {
1399
- * "additionalProperties": {
1400
- * "oneOf": [
1401
- * {
1402
- * "type": "string"
1403
- * },
1404
- * {
1405
- * "additionalItems": false,
1406
- * "items": {
1407
- * "type": "string"
1408
- * },
1409
- * "maxItems": 2,
1410
- * "minItems": 1,
1411
- * "type": "array"
1412
- * }
1413
- * ]
1414
- * },
1415
- * "propertyNames": {
1416
- * "enum": [
1417
- * "describe",
1418
- * "test",
1419
- * "step"
1420
- * ]
1412
+ * "type": "object",
1413
+ * "properties": {
1414
+ * "describe": {
1415
+ * "$ref": "#/definitions/PatternOrPatternArray"
1416
+ * },
1417
+ * "test": {
1418
+ * "$ref": "#/definitions/PatternOrPatternArray"
1419
+ * },
1420
+ * "step": {
1421
+ * "$ref": "#/definitions/PatternOrPatternArray"
1422
+ * }
1421
1423
  * },
1422
- * "type": "object"
1424
+ * "additionalProperties": false
1423
1425
  * }
1424
1426
  * ]
1425
1427
  * }
@@ -1446,9 +1448,14 @@ namespace ValidTitle {
1446
1448
  * "ignoreTypeOfTestName": {
1447
1449
  * "default": false,
1448
1450
  * "type": "boolean"
1451
+ * },
1452
+ * "mustMatch": {
1453
+ * "$ref": "#/definitions/MustMatchType"
1454
+ * },
1455
+ * "mustNotMatch": {
1456
+ * "$ref": "#/definitions/MustMatchType"
1449
1457
  * }
1450
- * },
1451
- * "type": "object"
1458
+ * }
1452
1459
  * }
1453
1460
  * ]
1454
1461
  * ```
@@ -65,8 +65,12 @@ namespace PreferArrowFunctions {
65
65
  * },
66
66
  * "returnStyle": {
67
67
  * "default": "unchanged",
68
- * "pattern": "^(explicit|implicit|unchanged)$",
69
- * "type": "string"
68
+ * "type": "string",
69
+ * "enum": [
70
+ * "explicit",
71
+ * "implicit",
72
+ * "unchanged"
73
+ * ]
70
74
  * },
71
75
  * "singleReturnOnly": {
72
76
  * "default": false,