@sarj/eslint-plugin 4.1.0 → 4.2.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/README.md +21 -0
- package/dist/index.cjs +682 -271
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +687 -273
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -280,6 +280,12 @@ declare const rules: {
|
|
|
280
280
|
"prefer-zod-enum": _typescript_eslint_utils_ts_eslint.RuleModule<"preferEnum", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
281
281
|
name: string;
|
|
282
282
|
};
|
|
283
|
+
"prefer-zod-infer": _typescript_eslint_utils_ts_eslint.RuleModule<"handWrittenTwin", readonly [{
|
|
284
|
+
ignoreTypeNames?: readonly string[];
|
|
285
|
+
requireIdenticalShape?: boolean;
|
|
286
|
+
}?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
287
|
+
name: string;
|
|
288
|
+
};
|
|
283
289
|
"no-silent-promise-catch": _typescript_eslint_utils_ts_eslint.RuleModule<"silentCatch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
284
290
|
name: string;
|
|
285
291
|
};
|
|
@@ -455,6 +461,12 @@ declare const plugin: {
|
|
|
455
461
|
"prefer-zod-enum": _typescript_eslint_utils_ts_eslint.RuleModule<"preferEnum", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
456
462
|
name: string;
|
|
457
463
|
};
|
|
464
|
+
"prefer-zod-infer": _typescript_eslint_utils_ts_eslint.RuleModule<"handWrittenTwin", readonly [{
|
|
465
|
+
ignoreTypeNames?: readonly string[];
|
|
466
|
+
requireIdenticalShape?: boolean;
|
|
467
|
+
}?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
468
|
+
name: string;
|
|
469
|
+
};
|
|
458
470
|
"no-silent-promise-catch": _typescript_eslint_utils_ts_eslint.RuleModule<"silentCatch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
459
471
|
name: string;
|
|
460
472
|
};
|
|
@@ -570,6 +582,7 @@ declare const plugin: {
|
|
|
570
582
|
"@sarj/no-unsafe-mock-casting": string;
|
|
571
583
|
"@sarj/prefer-string-literal-union": string;
|
|
572
584
|
"@sarj/prefer-zod-enum": string;
|
|
585
|
+
"@sarj/prefer-zod-infer": string;
|
|
573
586
|
"@sarj/require-fetch-timeout": string;
|
|
574
587
|
"@sarj/no-silent-promise-catch": string;
|
|
575
588
|
"@sarj/prefer-constant-time-secret-compare": string;
|
|
@@ -625,6 +638,7 @@ declare const plugin: {
|
|
|
625
638
|
"@sarj/no-unsafe-mock-casting": string;
|
|
626
639
|
"@sarj/prefer-string-literal-union": string;
|
|
627
640
|
"@sarj/prefer-zod-enum": string;
|
|
641
|
+
"@sarj/prefer-zod-infer": string;
|
|
628
642
|
"@sarj/require-fetch-timeout": string;
|
|
629
643
|
"@sarj/no-silent-promise-catch": string;
|
|
630
644
|
"@sarj/prefer-constant-time-secret-compare": string;
|
package/dist/index.d.ts
CHANGED
|
@@ -280,6 +280,12 @@ declare const rules: {
|
|
|
280
280
|
"prefer-zod-enum": _typescript_eslint_utils_ts_eslint.RuleModule<"preferEnum", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
281
281
|
name: string;
|
|
282
282
|
};
|
|
283
|
+
"prefer-zod-infer": _typescript_eslint_utils_ts_eslint.RuleModule<"handWrittenTwin", readonly [{
|
|
284
|
+
ignoreTypeNames?: readonly string[];
|
|
285
|
+
requireIdenticalShape?: boolean;
|
|
286
|
+
}?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
287
|
+
name: string;
|
|
288
|
+
};
|
|
283
289
|
"no-silent-promise-catch": _typescript_eslint_utils_ts_eslint.RuleModule<"silentCatch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
284
290
|
name: string;
|
|
285
291
|
};
|
|
@@ -455,6 +461,12 @@ declare const plugin: {
|
|
|
455
461
|
"prefer-zod-enum": _typescript_eslint_utils_ts_eslint.RuleModule<"preferEnum", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
456
462
|
name: string;
|
|
457
463
|
};
|
|
464
|
+
"prefer-zod-infer": _typescript_eslint_utils_ts_eslint.RuleModule<"handWrittenTwin", readonly [{
|
|
465
|
+
ignoreTypeNames?: readonly string[];
|
|
466
|
+
requireIdenticalShape?: boolean;
|
|
467
|
+
}?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
468
|
+
name: string;
|
|
469
|
+
};
|
|
458
470
|
"no-silent-promise-catch": _typescript_eslint_utils_ts_eslint.RuleModule<"silentCatch", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
459
471
|
name: string;
|
|
460
472
|
};
|
|
@@ -570,6 +582,7 @@ declare const plugin: {
|
|
|
570
582
|
"@sarj/no-unsafe-mock-casting": string;
|
|
571
583
|
"@sarj/prefer-string-literal-union": string;
|
|
572
584
|
"@sarj/prefer-zod-enum": string;
|
|
585
|
+
"@sarj/prefer-zod-infer": string;
|
|
573
586
|
"@sarj/require-fetch-timeout": string;
|
|
574
587
|
"@sarj/no-silent-promise-catch": string;
|
|
575
588
|
"@sarj/prefer-constant-time-secret-compare": string;
|
|
@@ -625,6 +638,7 @@ declare const plugin: {
|
|
|
625
638
|
"@sarj/no-unsafe-mock-casting": string;
|
|
626
639
|
"@sarj/prefer-string-literal-union": string;
|
|
627
640
|
"@sarj/prefer-zod-enum": string;
|
|
641
|
+
"@sarj/prefer-zod-infer": string;
|
|
628
642
|
"@sarj/require-fetch-timeout": string;
|
|
629
643
|
"@sarj/no-silent-promise-catch": string;
|
|
630
644
|
"@sarj/prefer-constant-time-secret-compare": string;
|