@sarj/eslint-plugin 18.1.4 → 18.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/dist/index.d.cts CHANGED
@@ -128,6 +128,7 @@ interface RetiredRule {
128
128
  declare const RETIRED_RULES: Readonly<Record<string, RetiredRule>>;
129
129
 
130
130
  declare const RULES: {
131
+ readonly "prefer-zod-enum-validator": DocumentedRule<[], "useEnumSchema">;
131
132
  readonly "no-growing-array-spread-in-loop": DocumentedRule<[], "copy">;
132
133
  readonly "no-logical-or-fallback": DocumentedRule<[], "logicalOrFallback">;
133
134
  readonly "no-zod-parse-typed-object": DocumentedRule<[], "typedObject">;
@@ -691,6 +692,7 @@ declare const RULE_POLICY: {
691
692
  readonly "@sarj/prefer-await-in-async-return": readonly ["error", "both"];
692
693
  readonly "@sarj/prefer-schema-for-api-payload": readonly ["error", "both"];
693
694
  readonly "@sarj/prefer-shared-zod-enum": readonly ["warn", "both"];
695
+ readonly "@sarj/prefer-zod-enum-validator": readonly ["warn", "both"];
694
696
  readonly "@sarj/prefer-switch-for-repeated-equality": readonly ["error", "both"];
695
697
  readonly "@sarj/prefer-semantic-colors": readonly ["error", "both", () => readonly [{
696
698
  readonly requireSemanticTokens: true;
package/dist/index.d.ts CHANGED
@@ -128,6 +128,7 @@ interface RetiredRule {
128
128
  declare const RETIRED_RULES: Readonly<Record<string, RetiredRule>>;
129
129
 
130
130
  declare const RULES: {
131
+ readonly "prefer-zod-enum-validator": DocumentedRule<[], "useEnumSchema">;
131
132
  readonly "no-growing-array-spread-in-loop": DocumentedRule<[], "copy">;
132
133
  readonly "no-logical-or-fallback": DocumentedRule<[], "logicalOrFallback">;
133
134
  readonly "no-zod-parse-typed-object": DocumentedRule<[], "typedObject">;
@@ -691,6 +692,7 @@ declare const RULE_POLICY: {
691
692
  readonly "@sarj/prefer-await-in-async-return": readonly ["error", "both"];
692
693
  readonly "@sarj/prefer-schema-for-api-payload": readonly ["error", "both"];
693
694
  readonly "@sarj/prefer-shared-zod-enum": readonly ["warn", "both"];
695
+ readonly "@sarj/prefer-zod-enum-validator": readonly ["warn", "both"];
694
696
  readonly "@sarj/prefer-switch-for-repeated-equality": readonly ["error", "both"];
695
697
  readonly "@sarj/prefer-semantic-colors": readonly ["error", "both", () => readonly [{
696
698
  readonly requireSemanticTokens: true;