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
@@ -76,61 +76,75 @@ namespace NoRestrictedCastName {
76
76
  * ### schema
77
77
  *
78
78
  * ```json
79
- * {
80
- * "type": "array",
81
- * "items": {
82
- * "oneOf": [
83
- * {
84
- * "type": "string"
85
- * },
86
- * {
87
- * "type": "object",
88
- * "properties": {
89
- * "name": {
90
- * "type": "string"
91
- * },
92
- * "fixWith": {
93
- * "type": "object",
94
- * "oneOf": [
95
- * {
96
- * "type": "object",
97
- * "properties": {
98
- * "kind": {
99
- * "type": "string",
100
- * "enum": ["type"]
79
+ * [
80
+ * {
81
+ * "type": "array",
82
+ * "items": {
83
+ * "oneOf": [
84
+ * {
85
+ * "type": "string"
86
+ * },
87
+ * {
88
+ * "type": "object",
89
+ * "properties": {
90
+ * "name": {
91
+ * "type": "string"
92
+ * },
93
+ * "fixWith": {
94
+ * "type": "object",
95
+ * "oneOf": [
96
+ * {
97
+ * "type": "object",
98
+ * "properties": {
99
+ * "kind": {
100
+ * "type": "string",
101
+ * "enum": [
102
+ * "type"
103
+ * ]
104
+ * },
105
+ * "name": {
106
+ * "type": "string"
107
+ * }
101
108
  * },
102
- * "name": {
103
- * "type": "string"
104
- * }
109
+ * "required": [
110
+ * "kind",
111
+ * "name"
112
+ * ],
113
+ * "additionalProperties": false
105
114
  * },
106
- * "required": ["kind", "name"],
107
- * "additionalProperties": false
108
- * },
109
- * {
110
- * "type": "object",
111
- * "properties": {
112
- * "kind": {
113
- * "type": "string",
114
- * "enum": ["function"]
115
+ * {
116
+ * "type": "object",
117
+ * "properties": {
118
+ * "kind": {
119
+ * "type": "string",
120
+ * "enum": [
121
+ * "function"
122
+ * ]
123
+ * },
124
+ * "name": {
125
+ * "type": "string"
126
+ * }
115
127
  * },
116
- * "name": {
117
- * "type": "string"
118
- * }
119
- * },
120
- * "required": ["kind", "name"],
121
- * "additionalProperties": false
122
- * }
123
- * ]
124
- * }
125
- * },
126
- * "required": ["name"],
127
- * "additionalProperties": false
128
- * }
129
- * ]
130
- * },
131
- * "uniqueItems": true,
132
- * "minItems": 0
133
- * }
128
+ * "required": [
129
+ * "kind",
130
+ * "name"
131
+ * ],
132
+ * "additionalProperties": false
133
+ * }
134
+ * ]
135
+ * }
136
+ * },
137
+ * "required": [
138
+ * "name"
139
+ * ],
140
+ * "additionalProperties": false
141
+ * }
142
+ * ]
143
+ * },
144
+ * "uniqueItems": true,
145
+ * "minItems": 0
146
+ * }
147
+ * ]
134
148
  * ```
135
149
  */
136
150
  /** @minItems 0 */
@@ -175,31 +189,35 @@ namespace NoRestrictedSyntax {
175
189
  * ### schema
176
190
  *
177
191
  * ```json
178
- * {
179
- * "type": "array",
180
- * "items": {
181
- * "oneOf": [
182
- * {
183
- * "type": "string"
184
- * },
185
- * {
186
- * "type": "object",
187
- * "properties": {
188
- * "selector": {
189
- * "type": "string"
190
- * },
191
- * "message": {
192
- * "type": "string"
193
- * }
192
+ * [
193
+ * {
194
+ * "type": "array",
195
+ * "items": {
196
+ * "oneOf": [
197
+ * {
198
+ * "type": "string"
194
199
  * },
195
- * "required": ["selector"],
196
- * "additionalProperties": false
197
- * }
198
- * ]
199
- * },
200
- * "uniqueItems": true,
201
- * "minItems": 0
202
- * }
200
+ * {
201
+ * "type": "object",
202
+ * "properties": {
203
+ * "selector": {
204
+ * "type": "string"
205
+ * },
206
+ * "message": {
207
+ * "type": "string"
208
+ * }
209
+ * },
210
+ * "required": [
211
+ * "selector"
212
+ * ],
213
+ * "additionalProperties": false
214
+ * }
215
+ * ]
216
+ * },
217
+ * "uniqueItems": true,
218
+ * "minItems": 0
219
+ * }
220
+ * ]
203
221
  * ```
204
222
  */
205
223
  /** @minItems 0 */
@@ -545,60 +545,76 @@ namespace ImportStyle {
545
545
  * ### schema
546
546
  *
547
547
  * ```json
548
- * {
549
- * "type": "array",
550
- * "additionalItems": false,
551
- * "items": [
552
- * {
553
- * "type": "object",
554
- * "additionalProperties": false,
555
- * "properties": {
556
- * "checkImport": {
557
- * "type": "boolean"
558
- * },
559
- * "checkDynamicImport": {
560
- * "type": "boolean"
561
- * },
562
- * "checkExportFrom": {
563
- * "type": "boolean"
564
- * },
565
- * "checkRequire": {
566
- * "type": "boolean"
567
- * },
568
- * "extendDefaultStyles": {
569
- * "type": "boolean"
570
- * },
571
- * "styles": {
572
- * "$ref": "#/definitions/moduleStyles"
548
+ * [
549
+ * {
550
+ * "type": "array",
551
+ * "additionalItems": false,
552
+ * "items": [
553
+ * {
554
+ * "type": "object",
555
+ * "additionalProperties": false,
556
+ * "properties": {
557
+ * "checkImport": {
558
+ * "type": "boolean"
559
+ * },
560
+ * "checkDynamicImport": {
561
+ * "type": "boolean"
562
+ * },
563
+ * "checkExportFrom": {
564
+ * "type": "boolean"
565
+ * },
566
+ * "checkRequire": {
567
+ * "type": "boolean"
568
+ * },
569
+ * "extendDefaultStyles": {
570
+ * "type": "boolean"
571
+ * },
572
+ * "styles": {
573
+ * "$ref": "#/definitions/moduleStyles"
574
+ * }
573
575
  * }
574
576
  * }
575
- * }
576
- * ],
577
- * "definitions": {
578
- * "moduleStyles": {
579
- * "type": "object",
580
- * "additionalProperties": {
581
- * "$ref": "#/definitions/styles"
582
- * }
583
- * },
584
- * "styles": {
585
- * "anyOf": [
586
- * {
587
- * "enum": [false]
588
- * },
589
- * {
590
- * "$ref": "#/definitions/booleanObject"
577
+ * ],
578
+ * "definitions": {
579
+ * "moduleStyles": {
580
+ * "type": "object",
581
+ * "additionalProperties": {
582
+ * "$ref": "#/definitions/styles"
591
583
  * }
592
- * ]
593
- * },
594
- * "booleanObject": {
595
- * "type": "object",
596
- * "additionalProperties": {
597
- * "type": "boolean"
584
+ * },
585
+ * "styles": {
586
+ * "anyOf": [
587
+ * {
588
+ * "enum": [
589
+ * false
590
+ * ]
591
+ * },
592
+ * {
593
+ * "$ref": "#/definitions/booleanObject"
594
+ * }
595
+ * ]
596
+ * },
597
+ * "booleanObject": {
598
+ * "type": "object",
599
+ * "properties": {
600
+ * "default": {
601
+ * "type": "boolean"
602
+ * },
603
+ * "named": {
604
+ * "type": "boolean"
605
+ * },
606
+ * "namespace": {
607
+ * "type": "boolean"
608
+ * },
609
+ * "unassigned": {
610
+ * "type": "boolean"
611
+ * }
612
+ * },
613
+ * "additionalProperties": false
598
614
  * }
599
615
  * }
600
616
  * }
601
- * }
617
+ * ]
602
618
  * ```
603
619
  */
604
620
  export type Options =
@@ -1152,13 +1168,11 @@ namespace NoKeywordPrefix {
1152
1168
  * "properties": {
1153
1169
  * "disallowedPrefixes": {
1154
1170
  * "type": "array",
1155
- * "items": [
1156
- * {
1157
- * "type": "string"
1158
- * }
1159
- * ],
1160
1171
  * "minItems": 0,
1161
- * "uniqueItems": true
1172
+ * "uniqueItems": true,
1173
+ * "items": {
1174
+ * "type": "string"
1175
+ * }
1162
1176
  * },
1163
1177
  * "checkProperties": {
1164
1178
  * "type": "boolean"
@@ -1173,7 +1187,7 @@ namespace NoKeywordPrefix {
1173
1187
  */
1174
1188
  export type Options = Readonly<{
1175
1189
  /** @minItems 0 */
1176
- disallowedPrefixes?: readonly [] | readonly [string];
1190
+ disallowedPrefixes?: readonly string[];
1177
1191
  checkProperties?: boolean;
1178
1192
  onlyCamelCase?: boolean;
1179
1193
  }>;
@@ -3418,78 +3432,88 @@ namespace PreventAbbreviations {
3418
3432
  * ### schema
3419
3433
  *
3420
3434
  * ```json
3421
- * {
3422
- * "type": "array",
3423
- * "additionalItems": false,
3424
- * "items": [
3425
- * {
3426
- * "type": "object",
3427
- * "additionalProperties": false,
3428
- * "properties": {
3429
- * "checkProperties": {
3430
- * "type": "boolean"
3431
- * },
3432
- * "checkVariables": {
3433
- * "type": "boolean"
3434
- * },
3435
- * "checkDefaultAndNamespaceImports": {
3436
- * "type": ["boolean", "string"],
3437
- * "pattern": "internal"
3438
- * },
3439
- * "checkShorthandImports": {
3440
- * "type": ["boolean", "string"],
3441
- * "pattern": "internal"
3442
- * },
3443
- * "checkShorthandProperties": {
3444
- * "type": "boolean"
3445
- * },
3446
- * "checkFilenames": {
3447
- * "type": "boolean"
3448
- * },
3449
- * "extendDefaultReplacements": {
3450
- * "type": "boolean"
3451
- * },
3452
- * "replacements": {
3453
- * "$ref": "#/definitions/abbreviations"
3454
- * },
3455
- * "extendDefaultAllowList": {
3456
- * "type": "boolean"
3457
- * },
3458
- * "allowList": {
3459
- * "$ref": "#/definitions/booleanObject"
3460
- * },
3461
- * "ignore": {
3462
- * "type": "array",
3463
- * "uniqueItems": true
3435
+ * [
3436
+ * {
3437
+ * "type": "array",
3438
+ * "additionalItems": false,
3439
+ * "items": [
3440
+ * {
3441
+ * "type": "object",
3442
+ * "additionalProperties": false,
3443
+ * "properties": {
3444
+ * "checkProperties": {
3445
+ * "type": "boolean"
3446
+ * },
3447
+ * "checkVariables": {
3448
+ * "type": "boolean"
3449
+ * },
3450
+ * "checkDefaultAndNamespaceImports": {
3451
+ * "type": [
3452
+ * "boolean",
3453
+ * "string"
3454
+ * ],
3455
+ * "pattern": "internal"
3456
+ * },
3457
+ * "checkShorthandImports": {
3458
+ * "type": [
3459
+ * "boolean",
3460
+ * "string"
3461
+ * ],
3462
+ * "pattern": "internal"
3463
+ * },
3464
+ * "checkShorthandProperties": {
3465
+ * "type": "boolean"
3466
+ * },
3467
+ * "checkFilenames": {
3468
+ * "type": "boolean"
3469
+ * },
3470
+ * "extendDefaultReplacements": {
3471
+ * "type": "boolean"
3472
+ * },
3473
+ * "replacements": {
3474
+ * "$ref": "#/definitions/abbreviations"
3475
+ * },
3476
+ * "extendDefaultAllowList": {
3477
+ * "type": "boolean"
3478
+ * },
3479
+ * "allowList": {
3480
+ * "$ref": "#/definitions/booleanObject"
3481
+ * },
3482
+ * "ignore": {
3483
+ * "type": "array",
3484
+ * "uniqueItems": true
3485
+ * }
3464
3486
  * }
3465
3487
  * }
3466
- * }
3467
- * ],
3468
- * "definitions": {
3469
- * "abbreviations": {
3470
- * "type": "object",
3471
- * "additionalProperties": {
3472
- * "$ref": "#/definitions/replacements"
3473
- * }
3474
- * },
3475
- * "replacements": {
3476
- * "anyOf": [
3477
- * {
3478
- * "enum": [false]
3479
- * },
3480
- * {
3481
- * "$ref": "#/definitions/booleanObject"
3488
+ * ],
3489
+ * "definitions": {
3490
+ * "abbreviations": {
3491
+ * "type": "object",
3492
+ * "additionalProperties": {
3493
+ * "$ref": "#/definitions/replacements"
3494
+ * }
3495
+ * },
3496
+ * "replacements": {
3497
+ * "anyOf": [
3498
+ * {
3499
+ * "enum": [
3500
+ * false
3501
+ * ]
3502
+ * },
3503
+ * {
3504
+ * "$ref": "#/definitions/booleanObject"
3505
+ * }
3506
+ * ]
3507
+ * },
3508
+ * "booleanObject": {
3509
+ * "type": "object",
3510
+ * "additionalProperties": {
3511
+ * "type": "boolean"
3482
3512
  * }
3483
- * ]
3484
- * },
3485
- * "booleanObject": {
3486
- * "type": "object",
3487
- * "additionalProperties": {
3488
- * "type": "boolean"
3489
3513
  * }
3490
3514
  * }
3491
3515
  * }
3492
- * }
3516
+ * ]
3493
3517
  * ```
3494
3518
  */
3495
3519
  export type Options =
@@ -1996,24 +1996,9 @@ namespace ValidTitle {
1996
1996
  * [
1997
1997
  * {
1998
1998
  * "type": "object",
1999
- * "properties": {
2000
- * "ignoreTypeOfDescribeName": {
2001
- * "type": "boolean",
2002
- * "default": false
2003
- * },
2004
- * "allowArguments": {
2005
- * "type": "boolean",
2006
- * "default": false
2007
- * },
2008
- * "disallowedWords": {
2009
- * "type": "array",
2010
- * "items": {
2011
- * "type": "string"
2012
- * }
2013
- * }
2014
- * },
2015
- * "patternProperties": {
2016
- * "^must(?:Not)?Match$": {
1999
+ * "additionalProperties": false,
2000
+ * "definitions": {
2001
+ * "PatternOrPatternArray": {
2017
2002
  * "oneOf": [
2018
2003
  * {
2019
2004
  * "type": "string"
@@ -2026,38 +2011,54 @@ namespace ValidTitle {
2026
2011
  * "minItems": 1,
2027
2012
  * "maxItems": 2,
2028
2013
  * "additionalItems": false
2014
+ * }
2015
+ * ]
2016
+ * },
2017
+ * "MustMatchType": {
2018
+ * "oneOf": [
2019
+ * {
2020
+ * "$ref": "#/definitions/PatternOrPatternArray"
2029
2021
  * },
2030
2022
  * {
2031
2023
  * "type": "object",
2032
- * "propertyNames": {
2033
- * "type": "string",
2034
- * "enum": [
2035
- * "describe",
2036
- * "test",
2037
- * "it"
2038
- * ]
2024
+ * "properties": {
2025
+ * "describe": {
2026
+ * "$ref": "#/definitions/PatternOrPatternArray"
2027
+ * },
2028
+ * "test": {
2029
+ * "$ref": "#/definitions/PatternOrPatternArray"
2030
+ * },
2031
+ * "it": {
2032
+ * "$ref": "#/definitions/PatternOrPatternArray"
2033
+ * }
2039
2034
  * },
2040
- * "additionalProperties": {
2041
- * "oneOf": [
2042
- * {
2043
- * "type": "string"
2044
- * },
2045
- * {
2046
- * "type": "array",
2047
- * "items": {
2048
- * "type": "string"
2049
- * },
2050
- * "minItems": 1,
2051
- * "maxItems": 2,
2052
- * "additionalItems": false
2053
- * }
2054
- * ]
2055
- * }
2035
+ * "additionalProperties": false
2056
2036
  * }
2057
2037
  * ]
2058
2038
  * }
2059
2039
  * },
2060
- * "additionalProperties": false
2040
+ * "properties": {
2041
+ * "ignoreTypeOfDescribeName": {
2042
+ * "type": "boolean",
2043
+ * "default": false
2044
+ * },
2045
+ * "allowArguments": {
2046
+ * "type": "boolean",
2047
+ * "default": false
2048
+ * },
2049
+ * "disallowedWords": {
2050
+ * "type": "array",
2051
+ * "items": {
2052
+ * "type": "string"
2053
+ * }
2054
+ * },
2055
+ * "mustMatch": {
2056
+ * "$ref": "#/definitions/MustMatchType"
2057
+ * },
2058
+ * "mustNotMatch": {
2059
+ * "$ref": "#/definitions/MustMatchType"
2060
+ * }
2061
+ * }
2061
2062
  * }
2062
2063
  * ]
2063
2064
  * ```