@sarj/eslint-plugin 16.15.2 → 16.16.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 +2829 -2254
- package/dist/index.d.cts +11 -3
- package/dist/index.d.ts +11 -3
- package/dist/index.js +2837 -2262
- package/package.json +3 -2
package/dist/index.d.cts
CHANGED
|
@@ -133,6 +133,8 @@ declare const RULES: {
|
|
|
133
133
|
readonly "no-broad-return-type": DocumentedRule<[], "avoid">;
|
|
134
134
|
readonly "no-reduce-accumulator-copy": DocumentedRule<[], "copy">;
|
|
135
135
|
readonly "no-known-value-widening": DocumentedRule<[], "widening">;
|
|
136
|
+
readonly "no-invalid-typed-mutation": DocumentedRule<readonly [], "incompatibleWrite">;
|
|
137
|
+
readonly "no-contradictory-type-predicate": DocumentedRule<readonly [], "contradictoryPredicate">;
|
|
136
138
|
readonly "require-button-accessible-name": DocumentedRule<readonly [{
|
|
137
139
|
readonly components?: readonly ComponentImport[];
|
|
138
140
|
readonly iconModules?: readonly string[];
|
|
@@ -294,7 +296,7 @@ declare const RULES: {
|
|
|
294
296
|
/** @deprecated All repositories use one policy; retained for import compatibility. */
|
|
295
297
|
declare const APPLICATION_ONLY_RULES: readonly [];
|
|
296
298
|
/** Rules staged as non-blocking warnings while corpus adoption evidence accumulates. */
|
|
297
|
-
declare const ADVISORY_RULES: readonly ["@sarj/excessive-commentary", "@sarj/no-bespoke-api-case-conversion", "@sarj/no-cors-wildcard-with-credentials", "@sarj/no-exception-text-in-5xx-response", "@sarj/no-restated-comment", "@sarj/no-restated-jsdoc", "@sarj/prefer-discriminated-union", "@sarj/prefer-millisecond-control-duration-schema", "@sarj/prefer-module-level-refined-schema", "@sarj/prefer-node-crypto-hash", "@sarj/prefer-node-fs-promises", "@sarj/prefer-shared-zod-enum", "@sarj/prefer-whole-object-assertion", "@sarj/require-sql-access-class"];
|
|
299
|
+
declare const ADVISORY_RULES: readonly ["@sarj/excessive-commentary", "@sarj/no-bespoke-api-case-conversion", "@sarj/no-contradictory-type-predicate", "@sarj/no-cors-wildcard-with-credentials", "@sarj/no-exception-text-in-5xx-response", "@sarj/no-invalid-typed-mutation", "@sarj/no-restated-comment", "@sarj/no-restated-jsdoc", "@sarj/prefer-discriminated-union", "@sarj/prefer-millisecond-control-duration-schema", "@sarj/prefer-module-level-refined-schema", "@sarj/prefer-node-crypto-hash", "@sarj/prefer-node-fs-promises", "@sarj/prefer-shared-zod-enum", "@sarj/prefer-whole-object-assertion", "@sarj/prefer-zod-parse-output-type", "@sarj/require-sql-access-class"];
|
|
298
300
|
declare const RECOMMENDED_RULES: {
|
|
299
301
|
readonly "@sarj/named-child-schema-type": "error";
|
|
300
302
|
readonly "@sarj/no-conditional-empty-object-spread": "error";
|
|
@@ -302,6 +304,8 @@ declare const RECOMMENDED_RULES: {
|
|
|
302
304
|
readonly "@sarj/no-broad-return-type": "error";
|
|
303
305
|
readonly "@sarj/no-reduce-accumulator-copy": "error";
|
|
304
306
|
readonly "@sarj/no-known-value-widening": "error";
|
|
307
|
+
readonly "@sarj/no-invalid-typed-mutation": "warn";
|
|
308
|
+
readonly "@sarj/no-contradictory-type-predicate": "warn";
|
|
305
309
|
readonly "@sarj/require-button-accessible-name": "error";
|
|
306
310
|
readonly "@sarj/require-camelcase-properties": "error";
|
|
307
311
|
readonly "@sarj/require-svg-accessible-name": "error";
|
|
@@ -590,7 +594,7 @@ declare const RECOMMENDED_RULES: {
|
|
|
590
594
|
readonly "@sarj/prefer-whole-object-assertion": "warn";
|
|
591
595
|
readonly "@sarj/repeated-static-call-cases": "error";
|
|
592
596
|
readonly "@sarj/prefer-zod-infer": "error";
|
|
593
|
-
readonly "@sarj/prefer-zod-parse-output-type": "
|
|
597
|
+
readonly "@sarj/prefer-zod-parse-output-type": "warn";
|
|
594
598
|
readonly "@sarj/require-assert-never": "error";
|
|
595
599
|
readonly "@sarj/require-fetch-timeout": "error";
|
|
596
600
|
readonly "@sarj/require-explicit-contract-implementation": "error";
|
|
@@ -616,6 +620,8 @@ declare const STRICT_RULES: {
|
|
|
616
620
|
readonly "@sarj/no-broad-return-type": "error";
|
|
617
621
|
readonly "@sarj/no-reduce-accumulator-copy": "error";
|
|
618
622
|
readonly "@sarj/no-known-value-widening": "error";
|
|
623
|
+
readonly "@sarj/no-invalid-typed-mutation": "warn";
|
|
624
|
+
readonly "@sarj/no-contradictory-type-predicate": "warn";
|
|
619
625
|
readonly "@sarj/require-button-accessible-name": "error";
|
|
620
626
|
readonly "@sarj/require-camelcase-properties": "error";
|
|
621
627
|
readonly "@sarj/require-svg-accessible-name": "error";
|
|
@@ -908,7 +914,7 @@ declare const STRICT_RULES: {
|
|
|
908
914
|
readonly "@sarj/prefer-whole-object-assertion": "warn";
|
|
909
915
|
readonly "@sarj/repeated-static-call-cases": "error";
|
|
910
916
|
readonly "@sarj/prefer-zod-infer": "error";
|
|
911
|
-
readonly "@sarj/prefer-zod-parse-output-type": "
|
|
917
|
+
readonly "@sarj/prefer-zod-parse-output-type": "warn";
|
|
912
918
|
readonly "@sarj/require-assert-never": "error";
|
|
913
919
|
readonly "@sarj/require-fetch-timeout": "error";
|
|
914
920
|
readonly "@sarj/require-explicit-contract-implementation": "error";
|
|
@@ -945,6 +951,8 @@ declare const PLUGIN: {
|
|
|
945
951
|
readonly "no-broad-return-type": DocumentedRule<[], "avoid">;
|
|
946
952
|
readonly "no-reduce-accumulator-copy": DocumentedRule<[], "copy">;
|
|
947
953
|
readonly "no-known-value-widening": DocumentedRule<[], "widening">;
|
|
954
|
+
readonly "no-invalid-typed-mutation": DocumentedRule<readonly [], "incompatibleWrite">;
|
|
955
|
+
readonly "no-contradictory-type-predicate": DocumentedRule<readonly [], "contradictoryPredicate">;
|
|
948
956
|
readonly "require-button-accessible-name": DocumentedRule<readonly [{
|
|
949
957
|
readonly components?: readonly ComponentImport[];
|
|
950
958
|
readonly iconModules?: readonly string[];
|
package/dist/index.d.ts
CHANGED
|
@@ -133,6 +133,8 @@ declare const RULES: {
|
|
|
133
133
|
readonly "no-broad-return-type": DocumentedRule<[], "avoid">;
|
|
134
134
|
readonly "no-reduce-accumulator-copy": DocumentedRule<[], "copy">;
|
|
135
135
|
readonly "no-known-value-widening": DocumentedRule<[], "widening">;
|
|
136
|
+
readonly "no-invalid-typed-mutation": DocumentedRule<readonly [], "incompatibleWrite">;
|
|
137
|
+
readonly "no-contradictory-type-predicate": DocumentedRule<readonly [], "contradictoryPredicate">;
|
|
136
138
|
readonly "require-button-accessible-name": DocumentedRule<readonly [{
|
|
137
139
|
readonly components?: readonly ComponentImport[];
|
|
138
140
|
readonly iconModules?: readonly string[];
|
|
@@ -294,7 +296,7 @@ declare const RULES: {
|
|
|
294
296
|
/** @deprecated All repositories use one policy; retained for import compatibility. */
|
|
295
297
|
declare const APPLICATION_ONLY_RULES: readonly [];
|
|
296
298
|
/** Rules staged as non-blocking warnings while corpus adoption evidence accumulates. */
|
|
297
|
-
declare const ADVISORY_RULES: readonly ["@sarj/excessive-commentary", "@sarj/no-bespoke-api-case-conversion", "@sarj/no-cors-wildcard-with-credentials", "@sarj/no-exception-text-in-5xx-response", "@sarj/no-restated-comment", "@sarj/no-restated-jsdoc", "@sarj/prefer-discriminated-union", "@sarj/prefer-millisecond-control-duration-schema", "@sarj/prefer-module-level-refined-schema", "@sarj/prefer-node-crypto-hash", "@sarj/prefer-node-fs-promises", "@sarj/prefer-shared-zod-enum", "@sarj/prefer-whole-object-assertion", "@sarj/require-sql-access-class"];
|
|
299
|
+
declare const ADVISORY_RULES: readonly ["@sarj/excessive-commentary", "@sarj/no-bespoke-api-case-conversion", "@sarj/no-contradictory-type-predicate", "@sarj/no-cors-wildcard-with-credentials", "@sarj/no-exception-text-in-5xx-response", "@sarj/no-invalid-typed-mutation", "@sarj/no-restated-comment", "@sarj/no-restated-jsdoc", "@sarj/prefer-discriminated-union", "@sarj/prefer-millisecond-control-duration-schema", "@sarj/prefer-module-level-refined-schema", "@sarj/prefer-node-crypto-hash", "@sarj/prefer-node-fs-promises", "@sarj/prefer-shared-zod-enum", "@sarj/prefer-whole-object-assertion", "@sarj/prefer-zod-parse-output-type", "@sarj/require-sql-access-class"];
|
|
298
300
|
declare const RECOMMENDED_RULES: {
|
|
299
301
|
readonly "@sarj/named-child-schema-type": "error";
|
|
300
302
|
readonly "@sarj/no-conditional-empty-object-spread": "error";
|
|
@@ -302,6 +304,8 @@ declare const RECOMMENDED_RULES: {
|
|
|
302
304
|
readonly "@sarj/no-broad-return-type": "error";
|
|
303
305
|
readonly "@sarj/no-reduce-accumulator-copy": "error";
|
|
304
306
|
readonly "@sarj/no-known-value-widening": "error";
|
|
307
|
+
readonly "@sarj/no-invalid-typed-mutation": "warn";
|
|
308
|
+
readonly "@sarj/no-contradictory-type-predicate": "warn";
|
|
305
309
|
readonly "@sarj/require-button-accessible-name": "error";
|
|
306
310
|
readonly "@sarj/require-camelcase-properties": "error";
|
|
307
311
|
readonly "@sarj/require-svg-accessible-name": "error";
|
|
@@ -590,7 +594,7 @@ declare const RECOMMENDED_RULES: {
|
|
|
590
594
|
readonly "@sarj/prefer-whole-object-assertion": "warn";
|
|
591
595
|
readonly "@sarj/repeated-static-call-cases": "error";
|
|
592
596
|
readonly "@sarj/prefer-zod-infer": "error";
|
|
593
|
-
readonly "@sarj/prefer-zod-parse-output-type": "
|
|
597
|
+
readonly "@sarj/prefer-zod-parse-output-type": "warn";
|
|
594
598
|
readonly "@sarj/require-assert-never": "error";
|
|
595
599
|
readonly "@sarj/require-fetch-timeout": "error";
|
|
596
600
|
readonly "@sarj/require-explicit-contract-implementation": "error";
|
|
@@ -616,6 +620,8 @@ declare const STRICT_RULES: {
|
|
|
616
620
|
readonly "@sarj/no-broad-return-type": "error";
|
|
617
621
|
readonly "@sarj/no-reduce-accumulator-copy": "error";
|
|
618
622
|
readonly "@sarj/no-known-value-widening": "error";
|
|
623
|
+
readonly "@sarj/no-invalid-typed-mutation": "warn";
|
|
624
|
+
readonly "@sarj/no-contradictory-type-predicate": "warn";
|
|
619
625
|
readonly "@sarj/require-button-accessible-name": "error";
|
|
620
626
|
readonly "@sarj/require-camelcase-properties": "error";
|
|
621
627
|
readonly "@sarj/require-svg-accessible-name": "error";
|
|
@@ -908,7 +914,7 @@ declare const STRICT_RULES: {
|
|
|
908
914
|
readonly "@sarj/prefer-whole-object-assertion": "warn";
|
|
909
915
|
readonly "@sarj/repeated-static-call-cases": "error";
|
|
910
916
|
readonly "@sarj/prefer-zod-infer": "error";
|
|
911
|
-
readonly "@sarj/prefer-zod-parse-output-type": "
|
|
917
|
+
readonly "@sarj/prefer-zod-parse-output-type": "warn";
|
|
912
918
|
readonly "@sarj/require-assert-never": "error";
|
|
913
919
|
readonly "@sarj/require-fetch-timeout": "error";
|
|
914
920
|
readonly "@sarj/require-explicit-contract-implementation": "error";
|
|
@@ -945,6 +951,8 @@ declare const PLUGIN: {
|
|
|
945
951
|
readonly "no-broad-return-type": DocumentedRule<[], "avoid">;
|
|
946
952
|
readonly "no-reduce-accumulator-copy": DocumentedRule<[], "copy">;
|
|
947
953
|
readonly "no-known-value-widening": DocumentedRule<[], "widening">;
|
|
954
|
+
readonly "no-invalid-typed-mutation": DocumentedRule<readonly [], "incompatibleWrite">;
|
|
955
|
+
readonly "no-contradictory-type-predicate": DocumentedRule<readonly [], "contradictoryPredicate">;
|
|
948
956
|
readonly "require-button-accessible-name": DocumentedRule<readonly [{
|
|
949
957
|
readonly components?: readonly ComponentImport[];
|
|
950
958
|
readonly iconModules?: readonly string[];
|