@sarj/eslint-plugin 11.2.0 → 12.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.
- package/dist/index.cjs +1020 -1098
- package/dist/index.d.cts +9 -21
- package/dist/index.d.ts +9 -21
- package/dist/index.js +1326 -1396
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -135,6 +135,9 @@ declare const rules: {
|
|
|
135
135
|
readonly "no-json-stringify-error": _typescript_eslint_utils_ts_eslint.RuleModule<"noJsonStringifyError", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
136
136
|
name: string;
|
|
137
137
|
};
|
|
138
|
+
readonly "no-impossible-zod-literal-bounds": _typescript_eslint_utils_ts_eslint.RuleModule<"impossibleBounds", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
139
|
+
name: string;
|
|
140
|
+
};
|
|
138
141
|
readonly "no-log-only-catch": _typescript_eslint_utils_ts_eslint.RuleModule<"noLogOnlyCatch" | "emptyCatch", readonly [LoggingOptions?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
139
142
|
name: string;
|
|
140
143
|
};
|
|
@@ -268,17 +271,9 @@ declare const rules: {
|
|
|
268
271
|
readonly "prefer-server-actions": _typescript_eslint_utils_ts_eslint.RuleModule<"preferServerAction", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
269
272
|
name: string;
|
|
270
273
|
};
|
|
271
|
-
readonly "prefer-string-literal-union": _typescript_eslint_utils_ts_eslint.RuleModule<"bareChoiceField" | "comparisonCluster", readonly [{
|
|
272
|
-
ignoreFields?: readonly string[];
|
|
273
|
-
}?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
274
|
-
name: string;
|
|
275
|
-
};
|
|
276
274
|
readonly "prefer-whole-object-assertion": _typescript_eslint_utils_ts_eslint.RuleModule<"combineAssertions" | "assertArrayOnce", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
277
275
|
name: string;
|
|
278
276
|
};
|
|
279
|
-
readonly "prefer-zod-enum": _typescript_eslint_utils_ts_eslint.RuleModule<"preferEnum", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
280
|
-
name: string;
|
|
281
|
-
};
|
|
282
277
|
readonly "prefer-zod-infer": _typescript_eslint_utils_ts_eslint.RuleModule<"handWrittenTwin", readonly [{
|
|
283
278
|
ignoreTypeNames?: readonly string[];
|
|
284
279
|
requireIdenticalShape?: boolean;
|
|
@@ -330,6 +325,7 @@ declare const recommendedRules: {
|
|
|
330
325
|
readonly "@sarj/no-hand-rolled-spinner": "error";
|
|
331
326
|
readonly "@sarj/no-insecure-random-id": "error";
|
|
332
327
|
readonly "@sarj/no-json-stringify-error": "error";
|
|
328
|
+
readonly "@sarj/no-impossible-zod-literal-bounds": "error";
|
|
333
329
|
readonly "@sarj/no-log-only-catch": "error";
|
|
334
330
|
readonly "@sarj/no-long-comment": "error";
|
|
335
331
|
readonly "@sarj/no-generic-single-export-module": "error";
|
|
@@ -366,9 +362,7 @@ declare const recommendedRules: {
|
|
|
366
362
|
readonly requireSemanticTokens: true;
|
|
367
363
|
}];
|
|
368
364
|
readonly "@sarj/prefer-server-actions": "error";
|
|
369
|
-
readonly "@sarj/prefer-string-literal-union": "error";
|
|
370
365
|
readonly "@sarj/prefer-whole-object-assertion": "error";
|
|
371
|
-
readonly "@sarj/prefer-zod-enum": "error";
|
|
372
366
|
readonly "@sarj/prefer-zod-infer": "error";
|
|
373
367
|
readonly "@sarj/require-assert-never": "error";
|
|
374
368
|
readonly "@sarj/require-fetch-timeout": "error";
|
|
@@ -394,6 +388,7 @@ declare const strictRules: {
|
|
|
394
388
|
readonly "@sarj/no-hand-rolled-spinner": "error";
|
|
395
389
|
readonly "@sarj/no-insecure-random-id": "error";
|
|
396
390
|
readonly "@sarj/no-json-stringify-error": "error";
|
|
391
|
+
readonly "@sarj/no-impossible-zod-literal-bounds": "error";
|
|
397
392
|
readonly "@sarj/no-log-only-catch": "error";
|
|
398
393
|
readonly "@sarj/no-long-comment": "error";
|
|
399
394
|
readonly "@sarj/no-generic-single-export-module": "error";
|
|
@@ -433,9 +428,7 @@ declare const strictRules: {
|
|
|
433
428
|
readonly requireSemanticTokens: true;
|
|
434
429
|
}];
|
|
435
430
|
readonly "@sarj/prefer-server-actions": "error";
|
|
436
|
-
readonly "@sarj/prefer-string-literal-union": "error";
|
|
437
431
|
readonly "@sarj/prefer-whole-object-assertion": "error";
|
|
438
|
-
readonly "@sarj/prefer-zod-enum": "error";
|
|
439
432
|
readonly "@sarj/prefer-zod-infer": "error";
|
|
440
433
|
readonly "@sarj/require-assert-never": "error";
|
|
441
434
|
readonly "@sarj/require-fetch-timeout": "error";
|
|
@@ -454,7 +447,7 @@ type FlatPreset = {
|
|
|
454
447
|
declare const plugin: {
|
|
455
448
|
readonly meta: {
|
|
456
449
|
readonly name: "@sarj/eslint-plugin";
|
|
457
|
-
readonly version: "
|
|
450
|
+
readonly version: "12.0.0";
|
|
458
451
|
};
|
|
459
452
|
readonly rules: {
|
|
460
453
|
readonly "duplicate-test-body": _typescript_eslint_utils_ts_eslint.RuleModule<"duplicateTestBody", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
@@ -504,6 +497,9 @@ declare const plugin: {
|
|
|
504
497
|
readonly "no-json-stringify-error": _typescript_eslint_utils_ts_eslint.RuleModule<"noJsonStringifyError", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
505
498
|
name: string;
|
|
506
499
|
};
|
|
500
|
+
readonly "no-impossible-zod-literal-bounds": _typescript_eslint_utils_ts_eslint.RuleModule<"impossibleBounds", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
501
|
+
name: string;
|
|
502
|
+
};
|
|
507
503
|
readonly "no-log-only-catch": _typescript_eslint_utils_ts_eslint.RuleModule<"noLogOnlyCatch" | "emptyCatch", readonly [LoggingOptions?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
508
504
|
name: string;
|
|
509
505
|
};
|
|
@@ -637,17 +633,9 @@ declare const plugin: {
|
|
|
637
633
|
readonly "prefer-server-actions": _typescript_eslint_utils_ts_eslint.RuleModule<"preferServerAction", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
638
634
|
name: string;
|
|
639
635
|
};
|
|
640
|
-
readonly "prefer-string-literal-union": _typescript_eslint_utils_ts_eslint.RuleModule<"bareChoiceField" | "comparisonCluster", readonly [{
|
|
641
|
-
ignoreFields?: readonly string[];
|
|
642
|
-
}?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
643
|
-
name: string;
|
|
644
|
-
};
|
|
645
636
|
readonly "prefer-whole-object-assertion": _typescript_eslint_utils_ts_eslint.RuleModule<"combineAssertions" | "assertArrayOnce", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
646
637
|
name: string;
|
|
647
638
|
};
|
|
648
|
-
readonly "prefer-zod-enum": _typescript_eslint_utils_ts_eslint.RuleModule<"preferEnum", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
649
|
-
name: string;
|
|
650
|
-
};
|
|
651
639
|
readonly "prefer-zod-infer": _typescript_eslint_utils_ts_eslint.RuleModule<"handWrittenTwin", readonly [{
|
|
652
640
|
ignoreTypeNames?: readonly string[];
|
|
653
641
|
requireIdenticalShape?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -135,6 +135,9 @@ declare const rules: {
|
|
|
135
135
|
readonly "no-json-stringify-error": _typescript_eslint_utils_ts_eslint.RuleModule<"noJsonStringifyError", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
136
136
|
name: string;
|
|
137
137
|
};
|
|
138
|
+
readonly "no-impossible-zod-literal-bounds": _typescript_eslint_utils_ts_eslint.RuleModule<"impossibleBounds", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
139
|
+
name: string;
|
|
140
|
+
};
|
|
138
141
|
readonly "no-log-only-catch": _typescript_eslint_utils_ts_eslint.RuleModule<"noLogOnlyCatch" | "emptyCatch", readonly [LoggingOptions?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
139
142
|
name: string;
|
|
140
143
|
};
|
|
@@ -268,17 +271,9 @@ declare const rules: {
|
|
|
268
271
|
readonly "prefer-server-actions": _typescript_eslint_utils_ts_eslint.RuleModule<"preferServerAction", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
269
272
|
name: string;
|
|
270
273
|
};
|
|
271
|
-
readonly "prefer-string-literal-union": _typescript_eslint_utils_ts_eslint.RuleModule<"bareChoiceField" | "comparisonCluster", readonly [{
|
|
272
|
-
ignoreFields?: readonly string[];
|
|
273
|
-
}?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
274
|
-
name: string;
|
|
275
|
-
};
|
|
276
274
|
readonly "prefer-whole-object-assertion": _typescript_eslint_utils_ts_eslint.RuleModule<"combineAssertions" | "assertArrayOnce", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
277
275
|
name: string;
|
|
278
276
|
};
|
|
279
|
-
readonly "prefer-zod-enum": _typescript_eslint_utils_ts_eslint.RuleModule<"preferEnum", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
280
|
-
name: string;
|
|
281
|
-
};
|
|
282
277
|
readonly "prefer-zod-infer": _typescript_eslint_utils_ts_eslint.RuleModule<"handWrittenTwin", readonly [{
|
|
283
278
|
ignoreTypeNames?: readonly string[];
|
|
284
279
|
requireIdenticalShape?: boolean;
|
|
@@ -330,6 +325,7 @@ declare const recommendedRules: {
|
|
|
330
325
|
readonly "@sarj/no-hand-rolled-spinner": "error";
|
|
331
326
|
readonly "@sarj/no-insecure-random-id": "error";
|
|
332
327
|
readonly "@sarj/no-json-stringify-error": "error";
|
|
328
|
+
readonly "@sarj/no-impossible-zod-literal-bounds": "error";
|
|
333
329
|
readonly "@sarj/no-log-only-catch": "error";
|
|
334
330
|
readonly "@sarj/no-long-comment": "error";
|
|
335
331
|
readonly "@sarj/no-generic-single-export-module": "error";
|
|
@@ -366,9 +362,7 @@ declare const recommendedRules: {
|
|
|
366
362
|
readonly requireSemanticTokens: true;
|
|
367
363
|
}];
|
|
368
364
|
readonly "@sarj/prefer-server-actions": "error";
|
|
369
|
-
readonly "@sarj/prefer-string-literal-union": "error";
|
|
370
365
|
readonly "@sarj/prefer-whole-object-assertion": "error";
|
|
371
|
-
readonly "@sarj/prefer-zod-enum": "error";
|
|
372
366
|
readonly "@sarj/prefer-zod-infer": "error";
|
|
373
367
|
readonly "@sarj/require-assert-never": "error";
|
|
374
368
|
readonly "@sarj/require-fetch-timeout": "error";
|
|
@@ -394,6 +388,7 @@ declare const strictRules: {
|
|
|
394
388
|
readonly "@sarj/no-hand-rolled-spinner": "error";
|
|
395
389
|
readonly "@sarj/no-insecure-random-id": "error";
|
|
396
390
|
readonly "@sarj/no-json-stringify-error": "error";
|
|
391
|
+
readonly "@sarj/no-impossible-zod-literal-bounds": "error";
|
|
397
392
|
readonly "@sarj/no-log-only-catch": "error";
|
|
398
393
|
readonly "@sarj/no-long-comment": "error";
|
|
399
394
|
readonly "@sarj/no-generic-single-export-module": "error";
|
|
@@ -433,9 +428,7 @@ declare const strictRules: {
|
|
|
433
428
|
readonly requireSemanticTokens: true;
|
|
434
429
|
}];
|
|
435
430
|
readonly "@sarj/prefer-server-actions": "error";
|
|
436
|
-
readonly "@sarj/prefer-string-literal-union": "error";
|
|
437
431
|
readonly "@sarj/prefer-whole-object-assertion": "error";
|
|
438
|
-
readonly "@sarj/prefer-zod-enum": "error";
|
|
439
432
|
readonly "@sarj/prefer-zod-infer": "error";
|
|
440
433
|
readonly "@sarj/require-assert-never": "error";
|
|
441
434
|
readonly "@sarj/require-fetch-timeout": "error";
|
|
@@ -454,7 +447,7 @@ type FlatPreset = {
|
|
|
454
447
|
declare const plugin: {
|
|
455
448
|
readonly meta: {
|
|
456
449
|
readonly name: "@sarj/eslint-plugin";
|
|
457
|
-
readonly version: "
|
|
450
|
+
readonly version: "12.0.0";
|
|
458
451
|
};
|
|
459
452
|
readonly rules: {
|
|
460
453
|
readonly "duplicate-test-body": _typescript_eslint_utils_ts_eslint.RuleModule<"duplicateTestBody", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
@@ -504,6 +497,9 @@ declare const plugin: {
|
|
|
504
497
|
readonly "no-json-stringify-error": _typescript_eslint_utils_ts_eslint.RuleModule<"noJsonStringifyError", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
505
498
|
name: string;
|
|
506
499
|
};
|
|
500
|
+
readonly "no-impossible-zod-literal-bounds": _typescript_eslint_utils_ts_eslint.RuleModule<"impossibleBounds", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
501
|
+
name: string;
|
|
502
|
+
};
|
|
507
503
|
readonly "no-log-only-catch": _typescript_eslint_utils_ts_eslint.RuleModule<"noLogOnlyCatch" | "emptyCatch", readonly [LoggingOptions?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
508
504
|
name: string;
|
|
509
505
|
};
|
|
@@ -637,17 +633,9 @@ declare const plugin: {
|
|
|
637
633
|
readonly "prefer-server-actions": _typescript_eslint_utils_ts_eslint.RuleModule<"preferServerAction", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
638
634
|
name: string;
|
|
639
635
|
};
|
|
640
|
-
readonly "prefer-string-literal-union": _typescript_eslint_utils_ts_eslint.RuleModule<"bareChoiceField" | "comparisonCluster", readonly [{
|
|
641
|
-
ignoreFields?: readonly string[];
|
|
642
|
-
}?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
643
|
-
name: string;
|
|
644
|
-
};
|
|
645
636
|
readonly "prefer-whole-object-assertion": _typescript_eslint_utils_ts_eslint.RuleModule<"combineAssertions" | "assertArrayOnce", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
646
637
|
name: string;
|
|
647
638
|
};
|
|
648
|
-
readonly "prefer-zod-enum": _typescript_eslint_utils_ts_eslint.RuleModule<"preferEnum", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
649
|
-
name: string;
|
|
650
|
-
};
|
|
651
639
|
readonly "prefer-zod-infer": _typescript_eslint_utils_ts_eslint.RuleModule<"handWrittenTwin", readonly [{
|
|
652
640
|
ignoreTypeNames?: readonly string[];
|
|
653
641
|
requireIdenticalShape?: boolean;
|