@sarj/eslint-plugin 17.1.3 → 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.cjs +4815 -4121
- package/dist/index.d.cts +10 -2
- package/dist/index.d.ts +10 -2
- package/dist/index.js +4805 -4105
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -128,6 +128,10 @@ interface RetiredRule {
|
|
|
128
128
|
declare const RETIRED_RULES: Readonly<Record<string, RetiredRule>>;
|
|
129
129
|
|
|
130
130
|
declare const RULES: {
|
|
131
|
+
readonly "no-logical-or-fallback": DocumentedRule<[], "logicalOrFallback">;
|
|
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">;
|
|
131
135
|
readonly "no-runtime-typeof": DocumentedRule<[], "runtimeTypeof">;
|
|
132
136
|
readonly "no-frontend-comments": DocumentedRule<readonly [{
|
|
133
137
|
readonly allFiles?: boolean;
|
|
@@ -335,7 +339,9 @@ declare const meta: {
|
|
|
335
339
|
declare const APPLICATION_ONLY_RULES: readonly [];
|
|
336
340
|
type PresetMembership = "both" | "strict";
|
|
337
341
|
declare const RULE_POLICY: {
|
|
338
|
-
readonly "@sarj/no-
|
|
342
|
+
readonly "@sarj/no-logical-or-fallback": readonly ["warn", "both"];
|
|
343
|
+
readonly "@sarj/no-zod-parse-typed-object": readonly ["warn", "both"];
|
|
344
|
+
readonly "@sarj/no-frontend-comments": readonly ["error", "both"];
|
|
339
345
|
readonly "@sarj/no-excess-jsx-props": readonly ["warn", "both"];
|
|
340
346
|
readonly "@sarj/no-redundant-consumer-union": readonly ["warn", "both"];
|
|
341
347
|
readonly "@sarj/prefer-minimal-parameter-contract": readonly ["warn", "both"];
|
|
@@ -591,7 +597,7 @@ declare const RULE_POLICY: {
|
|
|
591
597
|
readonly "@sarj/no-generic-json-parser": readonly ["warn", "both", "strict-order", 1];
|
|
592
598
|
readonly "@sarj/require-constrained-schema-integer": readonly ["warn", "both", "strict-order", 11];
|
|
593
599
|
readonly "@sarj/production-derived-test-cases": readonly ["warn", "both", "strict-order", 10];
|
|
594
|
-
readonly "@sarj/no-test-comments": readonly ["
|
|
600
|
+
readonly "@sarj/no-test-comments": readonly ["error", "both", "strict-order", 7];
|
|
595
601
|
readonly "@sarj/no-mutating-container-transform": readonly ["warn", "both", "strict-order", 2];
|
|
596
602
|
readonly "@sarj/prefer-native-random-uuid": readonly ["error", "both"];
|
|
597
603
|
readonly "@sarj/prefer-shadcn-primitives": readonly ["error", "both"];
|
|
@@ -707,6 +713,8 @@ declare const RULE_POLICY: {
|
|
|
707
713
|
readonly "@sarj/stepdown": readonly ["error", "both"];
|
|
708
714
|
readonly "@sarj/source-coupled-test": readonly ["error", "both"];
|
|
709
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"];
|
|
710
718
|
readonly "@sarj/test-phase-label-comment": readonly ["error", "both"];
|
|
711
719
|
readonly "@sarj/require-pascal-case-zod-schema-name": readonly ["error", "both"];
|
|
712
720
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -128,6 +128,10 @@ interface RetiredRule {
|
|
|
128
128
|
declare const RETIRED_RULES: Readonly<Record<string, RetiredRule>>;
|
|
129
129
|
|
|
130
130
|
declare const RULES: {
|
|
131
|
+
readonly "no-logical-or-fallback": DocumentedRule<[], "logicalOrFallback">;
|
|
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">;
|
|
131
135
|
readonly "no-runtime-typeof": DocumentedRule<[], "runtimeTypeof">;
|
|
132
136
|
readonly "no-frontend-comments": DocumentedRule<readonly [{
|
|
133
137
|
readonly allFiles?: boolean;
|
|
@@ -335,7 +339,9 @@ declare const meta: {
|
|
|
335
339
|
declare const APPLICATION_ONLY_RULES: readonly [];
|
|
336
340
|
type PresetMembership = "both" | "strict";
|
|
337
341
|
declare const RULE_POLICY: {
|
|
338
|
-
readonly "@sarj/no-
|
|
342
|
+
readonly "@sarj/no-logical-or-fallback": readonly ["warn", "both"];
|
|
343
|
+
readonly "@sarj/no-zod-parse-typed-object": readonly ["warn", "both"];
|
|
344
|
+
readonly "@sarj/no-frontend-comments": readonly ["error", "both"];
|
|
339
345
|
readonly "@sarj/no-excess-jsx-props": readonly ["warn", "both"];
|
|
340
346
|
readonly "@sarj/no-redundant-consumer-union": readonly ["warn", "both"];
|
|
341
347
|
readonly "@sarj/prefer-minimal-parameter-contract": readonly ["warn", "both"];
|
|
@@ -591,7 +597,7 @@ declare const RULE_POLICY: {
|
|
|
591
597
|
readonly "@sarj/no-generic-json-parser": readonly ["warn", "both", "strict-order", 1];
|
|
592
598
|
readonly "@sarj/require-constrained-schema-integer": readonly ["warn", "both", "strict-order", 11];
|
|
593
599
|
readonly "@sarj/production-derived-test-cases": readonly ["warn", "both", "strict-order", 10];
|
|
594
|
-
readonly "@sarj/no-test-comments": readonly ["
|
|
600
|
+
readonly "@sarj/no-test-comments": readonly ["error", "both", "strict-order", 7];
|
|
595
601
|
readonly "@sarj/no-mutating-container-transform": readonly ["warn", "both", "strict-order", 2];
|
|
596
602
|
readonly "@sarj/prefer-native-random-uuid": readonly ["error", "both"];
|
|
597
603
|
readonly "@sarj/prefer-shadcn-primitives": readonly ["error", "both"];
|
|
@@ -707,6 +713,8 @@ declare const RULE_POLICY: {
|
|
|
707
713
|
readonly "@sarj/stepdown": readonly ["error", "both"];
|
|
708
714
|
readonly "@sarj/source-coupled-test": readonly ["error", "both"];
|
|
709
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"];
|
|
710
718
|
readonly "@sarj/test-phase-label-comment": readonly ["error", "both"];
|
|
711
719
|
readonly "@sarj/require-pascal-case-zod-schema-name": readonly ["error", "both"];
|
|
712
720
|
};
|