@sarj/eslint-plugin 17.2.0 → 18.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.d.cts CHANGED
@@ -130,6 +130,8 @@ declare const RETIRED_RULES: Readonly<Record<string, RetiredRule>>;
130
130
  declare const RULES: {
131
131
  readonly "no-logical-or-fallback": DocumentedRule<[], "logicalOrFallback">;
132
132
  readonly "no-zod-parse-typed-object": DocumentedRule<[], "typedObject">;
133
+ readonly "prefer-server-data-preparation": DocumentedRule<readonly [], "prepareData">;
134
+ readonly "no-readonly-prop-state": DocumentedRule<readonly [], "readonlyPropState">;
133
135
  readonly "no-runtime-typeof": DocumentedRule<[], "runtimeTypeof">;
134
136
  readonly "no-frontend-comments": DocumentedRule<readonly [{
135
137
  readonly allFiles?: boolean;
@@ -339,7 +341,7 @@ type PresetMembership = "both" | "strict";
339
341
  declare const RULE_POLICY: {
340
342
  readonly "@sarj/no-logical-or-fallback": readonly ["warn", "both"];
341
343
  readonly "@sarj/no-zod-parse-typed-object": readonly ["warn", "both"];
342
- readonly "@sarj/no-frontend-comments": readonly ["warn", "both"];
344
+ readonly "@sarj/no-frontend-comments": readonly ["error", "both"];
343
345
  readonly "@sarj/no-excess-jsx-props": readonly ["warn", "both"];
344
346
  readonly "@sarj/no-redundant-consumer-union": readonly ["warn", "both"];
345
347
  readonly "@sarj/prefer-minimal-parameter-contract": readonly ["warn", "both"];
@@ -595,7 +597,7 @@ declare const RULE_POLICY: {
595
597
  readonly "@sarj/no-generic-json-parser": readonly ["warn", "both", "strict-order", 1];
596
598
  readonly "@sarj/require-constrained-schema-integer": readonly ["warn", "both", "strict-order", 11];
597
599
  readonly "@sarj/production-derived-test-cases": readonly ["warn", "both", "strict-order", 10];
598
- readonly "@sarj/no-test-comments": readonly ["warn", "both", "strict-order", 7];
600
+ readonly "@sarj/no-test-comments": readonly ["error", "both", "strict-order", 7];
599
601
  readonly "@sarj/no-mutating-container-transform": readonly ["warn", "both", "strict-order", 2];
600
602
  readonly "@sarj/prefer-native-random-uuid": readonly ["error", "both"];
601
603
  readonly "@sarj/prefer-shadcn-primitives": readonly ["error", "both"];
@@ -711,6 +713,8 @@ declare const RULE_POLICY: {
711
713
  readonly "@sarj/stepdown": readonly ["error", "both"];
712
714
  readonly "@sarj/source-coupled-test": readonly ["error", "both"];
713
715
  readonly "@sarj/sole-export-matches-filename": readonly ["error", "both"];
716
+ readonly "@sarj/no-readonly-prop-state": readonly ["warn", "both"];
717
+ readonly "@sarj/prefer-server-data-preparation": readonly ["warn", "both"];
714
718
  readonly "@sarj/test-phase-label-comment": readonly ["error", "both"];
715
719
  readonly "@sarj/require-pascal-case-zod-schema-name": readonly ["error", "both"];
716
720
  };
package/dist/index.d.ts CHANGED
@@ -130,6 +130,8 @@ declare const RETIRED_RULES: Readonly<Record<string, RetiredRule>>;
130
130
  declare const RULES: {
131
131
  readonly "no-logical-or-fallback": DocumentedRule<[], "logicalOrFallback">;
132
132
  readonly "no-zod-parse-typed-object": DocumentedRule<[], "typedObject">;
133
+ readonly "prefer-server-data-preparation": DocumentedRule<readonly [], "prepareData">;
134
+ readonly "no-readonly-prop-state": DocumentedRule<readonly [], "readonlyPropState">;
133
135
  readonly "no-runtime-typeof": DocumentedRule<[], "runtimeTypeof">;
134
136
  readonly "no-frontend-comments": DocumentedRule<readonly [{
135
137
  readonly allFiles?: boolean;
@@ -339,7 +341,7 @@ type PresetMembership = "both" | "strict";
339
341
  declare const RULE_POLICY: {
340
342
  readonly "@sarj/no-logical-or-fallback": readonly ["warn", "both"];
341
343
  readonly "@sarj/no-zod-parse-typed-object": readonly ["warn", "both"];
342
- readonly "@sarj/no-frontend-comments": readonly ["warn", "both"];
344
+ readonly "@sarj/no-frontend-comments": readonly ["error", "both"];
343
345
  readonly "@sarj/no-excess-jsx-props": readonly ["warn", "both"];
344
346
  readonly "@sarj/no-redundant-consumer-union": readonly ["warn", "both"];
345
347
  readonly "@sarj/prefer-minimal-parameter-contract": readonly ["warn", "both"];
@@ -595,7 +597,7 @@ declare const RULE_POLICY: {
595
597
  readonly "@sarj/no-generic-json-parser": readonly ["warn", "both", "strict-order", 1];
596
598
  readonly "@sarj/require-constrained-schema-integer": readonly ["warn", "both", "strict-order", 11];
597
599
  readonly "@sarj/production-derived-test-cases": readonly ["warn", "both", "strict-order", 10];
598
- readonly "@sarj/no-test-comments": readonly ["warn", "both", "strict-order", 7];
600
+ readonly "@sarj/no-test-comments": readonly ["error", "both", "strict-order", 7];
599
601
  readonly "@sarj/no-mutating-container-transform": readonly ["warn", "both", "strict-order", 2];
600
602
  readonly "@sarj/prefer-native-random-uuid": readonly ["error", "both"];
601
603
  readonly "@sarj/prefer-shadcn-primitives": readonly ["error", "both"];
@@ -711,6 +713,8 @@ declare const RULE_POLICY: {
711
713
  readonly "@sarj/stepdown": readonly ["error", "both"];
712
714
  readonly "@sarj/source-coupled-test": readonly ["error", "both"];
713
715
  readonly "@sarj/sole-export-matches-filename": readonly ["error", "both"];
716
+ readonly "@sarj/no-readonly-prop-state": readonly ["warn", "both"];
717
+ readonly "@sarj/prefer-server-data-preparation": readonly ["warn", "both"];
714
718
  readonly "@sarj/test-phase-label-comment": readonly ["error", "both"];
715
719
  readonly "@sarj/require-pascal-case-zod-schema-name": readonly ["error", "both"];
716
720
  };