@neralabs/rerail-pack-typescript 0.1.1 → 0.1.3

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 (27) hide show
  1. package/README.md +179 -2
  2. package/licenses/eslint-plugin-vitest/UPSTREAM.md +7 -0
  3. package/licenses/typescript-eslint/UPSTREAM.md +1277 -1
  4. package/pack.json +7 -10
  5. package/package.json +1 -1
  6. package/rules/typescript-eslint-ban-tslint-comment.json +7 -4
  7. package/rules/typescript-eslint-consistent-type-definitions.json +1 -1
  8. package/rules/typescript-eslint-default-param-last.json +3 -3
  9. package/rules/typescript-eslint-no-array-constructor.json +6 -3
  10. package/rules/typescript-eslint-no-confusing-non-null-assertion.json +9 -6
  11. package/rules/typescript-eslint-no-dupe-class-members.json +1 -1
  12. package/rules/typescript-eslint-no-duplicate-enum-values.json +3 -7
  13. package/rules/typescript-eslint-no-empty-function.json +1 -1
  14. package/rules/typescript-eslint-no-extra-non-null-assertion.json +6 -3
  15. package/rules/typescript-eslint-no-import-type-side-effects.json +9 -6
  16. package/rules/typescript-eslint-no-namespace.json +3 -7
  17. package/rules/typescript-eslint-no-non-null-asserted-optional-chain.json +6 -3
  18. package/rules/typescript-eslint-no-non-null-assertion.json +5 -9
  19. package/rules/typescript-eslint-no-unnecessary-type-constraint.json +6 -3
  20. package/rules/typescript-eslint-no-unsafe-function-type.json +3 -7
  21. package/rules/typescript-eslint-no-unused-expressions.json +1 -1
  22. package/rules/typescript-eslint-no-useless-empty-export.json +3 -3
  23. package/rules/typescript-eslint-prefer-as-const.json +3 -7
  24. package/rules/typescript-eslint-prefer-enum-initializers.json +3 -3
  25. package/rules/typescript-eslint-prefer-literal-enum-member.json +1 -1
  26. package/rules/typescript-eslint-prefer-namespace-keyword.json +6 -3
  27. package/rules/typescript-eslint-no-wrapper-object-types.json +0 -628
@@ -1,628 +0,0 @@
1
- {
2
- "format": "rerail.policy/v1",
3
- "id": "typescript-eslint-no-wrapper-object-types",
4
- "revision": 2,
5
- "mode": "steer",
6
- "description": "typescript-eslint 8.70.1 @typescript-eslint/no-wrapper-object-types, default options. Port of typescript-eslint's `no-wrapper-object-types` rule (https://typescript-eslint.io/rules/no-wrapper-object-types). Flags type references, `implements` and interface `extends` naming BigInt/Boolean/Number/Object/String/Symbol when the name `resolves` to no file-local type binding. Type references are fixed to the lowercase primitive.",
7
- "scope": {
8
- "include": [
9
- "**/*.ts",
10
- "**/*.tsx",
11
- "**/*.mts",
12
- "**/*.cts",
13
- "**/*.js",
14
- "**/*.jsx",
15
- "**/*.mjs",
16
- "**/*.cjs"
17
- ],
18
- "exclude": []
19
- },
20
- "clauses": [
21
- {
22
- "id": "type-bigint",
23
- "forbid": {
24
- "ast": {
25
- "language": "typescript",
26
- "rule": {
27
- "kind": "type_identifier",
28
- "resolves": {
29
- "global": [
30
- "BigInt"
31
- ]
32
- },
33
- "not": {
34
- "matches": "heritage"
35
- }
36
- },
37
- "utils": {
38
- "heritage": {
39
- "inside": {
40
- "any": [
41
- {
42
- "kind": "implements_clause"
43
- },
44
- {
45
- "kind": "extends_type_clause"
46
- }
47
- ],
48
- "stopBy": "neighbor"
49
- }
50
- }
51
- }
52
- }
53
- },
54
- "violation": {
55
- "anchor": "witness.span",
56
- "code": "@typescript-eslint/no-wrapper-object-types",
57
- "message": "Prefer using the primitive `bigint` as a type name, rather than the upper-cased `BigInt`.",
58
- "fix": "bigint",
59
- "suppress": {
60
- "eslint": {
61
- "rules": [
62
- "@typescript-eslint/no-wrapper-object-types"
63
- ]
64
- },
65
- "oxlint": {
66
- "rules": [
67
- "no-wrapper-object-types"
68
- ]
69
- }
70
- }
71
- }
72
- },
73
- {
74
- "id": "type-boolean",
75
- "forbid": {
76
- "ast": {
77
- "language": "typescript",
78
- "rule": {
79
- "kind": "type_identifier",
80
- "resolves": {
81
- "global": [
82
- "Boolean"
83
- ]
84
- },
85
- "not": {
86
- "matches": "heritage"
87
- }
88
- },
89
- "utils": {
90
- "heritage": {
91
- "inside": {
92
- "any": [
93
- {
94
- "kind": "implements_clause"
95
- },
96
- {
97
- "kind": "extends_type_clause"
98
- }
99
- ],
100
- "stopBy": "neighbor"
101
- }
102
- }
103
- }
104
- }
105
- },
106
- "violation": {
107
- "anchor": "witness.span",
108
- "code": "@typescript-eslint/no-wrapper-object-types",
109
- "message": "Prefer using the primitive `boolean` as a type name, rather than the upper-cased `Boolean`.",
110
- "fix": "boolean",
111
- "suppress": {
112
- "eslint": {
113
- "rules": [
114
- "@typescript-eslint/no-wrapper-object-types"
115
- ]
116
- },
117
- "oxlint": {
118
- "rules": [
119
- "no-wrapper-object-types"
120
- ]
121
- }
122
- }
123
- }
124
- },
125
- {
126
- "id": "type-number",
127
- "forbid": {
128
- "ast": {
129
- "language": "typescript",
130
- "rule": {
131
- "kind": "type_identifier",
132
- "resolves": {
133
- "global": [
134
- "Number"
135
- ]
136
- },
137
- "not": {
138
- "matches": "heritage"
139
- }
140
- },
141
- "utils": {
142
- "heritage": {
143
- "inside": {
144
- "any": [
145
- {
146
- "kind": "implements_clause"
147
- },
148
- {
149
- "kind": "extends_type_clause"
150
- }
151
- ],
152
- "stopBy": "neighbor"
153
- }
154
- }
155
- }
156
- }
157
- },
158
- "violation": {
159
- "anchor": "witness.span",
160
- "code": "@typescript-eslint/no-wrapper-object-types",
161
- "message": "Prefer using the primitive `number` as a type name, rather than the upper-cased `Number`.",
162
- "fix": "number",
163
- "suppress": {
164
- "eslint": {
165
- "rules": [
166
- "@typescript-eslint/no-wrapper-object-types"
167
- ]
168
- },
169
- "oxlint": {
170
- "rules": [
171
- "no-wrapper-object-types"
172
- ]
173
- }
174
- }
175
- }
176
- },
177
- {
178
- "id": "type-object",
179
- "forbid": {
180
- "ast": {
181
- "language": "typescript",
182
- "rule": {
183
- "kind": "type_identifier",
184
- "resolves": {
185
- "global": [
186
- "Object"
187
- ]
188
- },
189
- "not": {
190
- "matches": "heritage"
191
- }
192
- },
193
- "utils": {
194
- "heritage": {
195
- "inside": {
196
- "any": [
197
- {
198
- "kind": "implements_clause"
199
- },
200
- {
201
- "kind": "extends_type_clause"
202
- }
203
- ],
204
- "stopBy": "neighbor"
205
- }
206
- }
207
- }
208
- }
209
- },
210
- "violation": {
211
- "anchor": "witness.span",
212
- "code": "@typescript-eslint/no-wrapper-object-types",
213
- "message": "Prefer using the primitive `object` as a type name, rather than the upper-cased `Object`.",
214
- "fix": "object",
215
- "suppress": {
216
- "eslint": {
217
- "rules": [
218
- "@typescript-eslint/no-wrapper-object-types"
219
- ]
220
- },
221
- "oxlint": {
222
- "rules": [
223
- "no-wrapper-object-types"
224
- ]
225
- }
226
- }
227
- }
228
- },
229
- {
230
- "id": "type-string",
231
- "forbid": {
232
- "ast": {
233
- "language": "typescript",
234
- "rule": {
235
- "kind": "type_identifier",
236
- "resolves": {
237
- "global": [
238
- "String"
239
- ]
240
- },
241
- "not": {
242
- "matches": "heritage"
243
- }
244
- },
245
- "utils": {
246
- "heritage": {
247
- "inside": {
248
- "any": [
249
- {
250
- "kind": "implements_clause"
251
- },
252
- {
253
- "kind": "extends_type_clause"
254
- }
255
- ],
256
- "stopBy": "neighbor"
257
- }
258
- }
259
- }
260
- }
261
- },
262
- "violation": {
263
- "anchor": "witness.span",
264
- "code": "@typescript-eslint/no-wrapper-object-types",
265
- "message": "Prefer using the primitive `string` as a type name, rather than the upper-cased `String`.",
266
- "fix": "string",
267
- "suppress": {
268
- "eslint": {
269
- "rules": [
270
- "@typescript-eslint/no-wrapper-object-types"
271
- ]
272
- },
273
- "oxlint": {
274
- "rules": [
275
- "no-wrapper-object-types"
276
- ]
277
- }
278
- }
279
- }
280
- },
281
- {
282
- "id": "type-symbol",
283
- "forbid": {
284
- "ast": {
285
- "language": "typescript",
286
- "rule": {
287
- "kind": "type_identifier",
288
- "resolves": {
289
- "global": [
290
- "Symbol"
291
- ]
292
- },
293
- "not": {
294
- "matches": "heritage"
295
- }
296
- },
297
- "utils": {
298
- "heritage": {
299
- "inside": {
300
- "any": [
301
- {
302
- "kind": "implements_clause"
303
- },
304
- {
305
- "kind": "extends_type_clause"
306
- }
307
- ],
308
- "stopBy": "neighbor"
309
- }
310
- }
311
- }
312
- }
313
- },
314
- "violation": {
315
- "anchor": "witness.span",
316
- "code": "@typescript-eslint/no-wrapper-object-types",
317
- "message": "Prefer using the primitive `symbol` as a type name, rather than the upper-cased `Symbol`.",
318
- "fix": "symbol",
319
- "suppress": {
320
- "eslint": {
321
- "rules": [
322
- "@typescript-eslint/no-wrapper-object-types"
323
- ]
324
- },
325
- "oxlint": {
326
- "rules": [
327
- "no-wrapper-object-types"
328
- ]
329
- }
330
- }
331
- }
332
- },
333
- {
334
- "id": "heritage-bigint",
335
- "forbid": {
336
- "ast": {
337
- "language": "typescript",
338
- "rule": {
339
- "kind": "type_identifier",
340
- "resolves": {
341
- "global": [
342
- "BigInt"
343
- ]
344
- },
345
- "matches": "heritage"
346
- },
347
- "utils": {
348
- "heritage": {
349
- "inside": {
350
- "any": [
351
- {
352
- "kind": "implements_clause"
353
- },
354
- {
355
- "kind": "extends_type_clause"
356
- }
357
- ],
358
- "stopBy": "neighbor"
359
- }
360
- }
361
- }
362
- }
363
- },
364
- "violation": {
365
- "anchor": "witness.span",
366
- "code": "@typescript-eslint/no-wrapper-object-types",
367
- "message": "Prefer using the primitive `bigint` as a type name, rather than the upper-cased `BigInt`.",
368
- "suppress": {
369
- "eslint": {
370
- "rules": [
371
- "@typescript-eslint/no-wrapper-object-types"
372
- ]
373
- },
374
- "oxlint": {
375
- "rules": [
376
- "no-wrapper-object-types"
377
- ]
378
- }
379
- }
380
- }
381
- },
382
- {
383
- "id": "heritage-boolean",
384
- "forbid": {
385
- "ast": {
386
- "language": "typescript",
387
- "rule": {
388
- "kind": "type_identifier",
389
- "resolves": {
390
- "global": [
391
- "Boolean"
392
- ]
393
- },
394
- "matches": "heritage"
395
- },
396
- "utils": {
397
- "heritage": {
398
- "inside": {
399
- "any": [
400
- {
401
- "kind": "implements_clause"
402
- },
403
- {
404
- "kind": "extends_type_clause"
405
- }
406
- ],
407
- "stopBy": "neighbor"
408
- }
409
- }
410
- }
411
- }
412
- },
413
- "violation": {
414
- "anchor": "witness.span",
415
- "code": "@typescript-eslint/no-wrapper-object-types",
416
- "message": "Prefer using the primitive `boolean` as a type name, rather than the upper-cased `Boolean`.",
417
- "suppress": {
418
- "eslint": {
419
- "rules": [
420
- "@typescript-eslint/no-wrapper-object-types"
421
- ]
422
- },
423
- "oxlint": {
424
- "rules": [
425
- "no-wrapper-object-types"
426
- ]
427
- }
428
- }
429
- }
430
- },
431
- {
432
- "id": "heritage-number",
433
- "forbid": {
434
- "ast": {
435
- "language": "typescript",
436
- "rule": {
437
- "kind": "type_identifier",
438
- "resolves": {
439
- "global": [
440
- "Number"
441
- ]
442
- },
443
- "matches": "heritage"
444
- },
445
- "utils": {
446
- "heritage": {
447
- "inside": {
448
- "any": [
449
- {
450
- "kind": "implements_clause"
451
- },
452
- {
453
- "kind": "extends_type_clause"
454
- }
455
- ],
456
- "stopBy": "neighbor"
457
- }
458
- }
459
- }
460
- }
461
- },
462
- "violation": {
463
- "anchor": "witness.span",
464
- "code": "@typescript-eslint/no-wrapper-object-types",
465
- "message": "Prefer using the primitive `number` as a type name, rather than the upper-cased `Number`.",
466
- "suppress": {
467
- "eslint": {
468
- "rules": [
469
- "@typescript-eslint/no-wrapper-object-types"
470
- ]
471
- },
472
- "oxlint": {
473
- "rules": [
474
- "no-wrapper-object-types"
475
- ]
476
- }
477
- }
478
- }
479
- },
480
- {
481
- "id": "heritage-object",
482
- "forbid": {
483
- "ast": {
484
- "language": "typescript",
485
- "rule": {
486
- "kind": "type_identifier",
487
- "resolves": {
488
- "global": [
489
- "Object"
490
- ]
491
- },
492
- "matches": "heritage"
493
- },
494
- "utils": {
495
- "heritage": {
496
- "inside": {
497
- "any": [
498
- {
499
- "kind": "implements_clause"
500
- },
501
- {
502
- "kind": "extends_type_clause"
503
- }
504
- ],
505
- "stopBy": "neighbor"
506
- }
507
- }
508
- }
509
- }
510
- },
511
- "violation": {
512
- "anchor": "witness.span",
513
- "code": "@typescript-eslint/no-wrapper-object-types",
514
- "message": "Prefer using the primitive `object` as a type name, rather than the upper-cased `Object`.",
515
- "suppress": {
516
- "eslint": {
517
- "rules": [
518
- "@typescript-eslint/no-wrapper-object-types"
519
- ]
520
- },
521
- "oxlint": {
522
- "rules": [
523
- "no-wrapper-object-types"
524
- ]
525
- }
526
- }
527
- }
528
- },
529
- {
530
- "id": "heritage-string",
531
- "forbid": {
532
- "ast": {
533
- "language": "typescript",
534
- "rule": {
535
- "kind": "type_identifier",
536
- "resolves": {
537
- "global": [
538
- "String"
539
- ]
540
- },
541
- "matches": "heritage"
542
- },
543
- "utils": {
544
- "heritage": {
545
- "inside": {
546
- "any": [
547
- {
548
- "kind": "implements_clause"
549
- },
550
- {
551
- "kind": "extends_type_clause"
552
- }
553
- ],
554
- "stopBy": "neighbor"
555
- }
556
- }
557
- }
558
- }
559
- },
560
- "violation": {
561
- "anchor": "witness.span",
562
- "code": "@typescript-eslint/no-wrapper-object-types",
563
- "message": "Prefer using the primitive `string` as a type name, rather than the upper-cased `String`.",
564
- "suppress": {
565
- "eslint": {
566
- "rules": [
567
- "@typescript-eslint/no-wrapper-object-types"
568
- ]
569
- },
570
- "oxlint": {
571
- "rules": [
572
- "no-wrapper-object-types"
573
- ]
574
- }
575
- }
576
- }
577
- },
578
- {
579
- "id": "heritage-symbol",
580
- "forbid": {
581
- "ast": {
582
- "language": "typescript",
583
- "rule": {
584
- "kind": "type_identifier",
585
- "resolves": {
586
- "global": [
587
- "Symbol"
588
- ]
589
- },
590
- "matches": "heritage"
591
- },
592
- "utils": {
593
- "heritage": {
594
- "inside": {
595
- "any": [
596
- {
597
- "kind": "implements_clause"
598
- },
599
- {
600
- "kind": "extends_type_clause"
601
- }
602
- ],
603
- "stopBy": "neighbor"
604
- }
605
- }
606
- }
607
- }
608
- },
609
- "violation": {
610
- "anchor": "witness.span",
611
- "code": "@typescript-eslint/no-wrapper-object-types",
612
- "message": "Prefer using the primitive `symbol` as a type name, rather than the upper-cased `Symbol`.",
613
- "suppress": {
614
- "eslint": {
615
- "rules": [
616
- "@typescript-eslint/no-wrapper-object-types"
617
- ]
618
- },
619
- "oxlint": {
620
- "rules": [
621
- "no-wrapper-object-types"
622
- ]
623
- }
624
- }
625
- }
626
- }
627
- ]
628
- }