@sarj/eslint-plugin 16.6.0 → 16.8.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 +168 -85
- package/dist/index.d.cts +19 -19
- package/dist/index.d.ts +19 -19
- package/dist/index.js +243 -160
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -291,9 +291,9 @@ declare const RULES: {
|
|
|
291
291
|
/** @deprecated All repositories use one policy; retained for import compatibility. */
|
|
292
292
|
declare const APPLICATION_ONLY_RULES: readonly [];
|
|
293
293
|
/** Rules staged as non-blocking warnings while corpus adoption evidence accumulates. */
|
|
294
|
-
declare const ADVISORY_RULES: readonly ["@sarj/excessive-commentary", "@sarj/
|
|
294
|
+
declare const ADVISORY_RULES: readonly ["@sarj/excessive-commentary", "@sarj/no-bespoke-api-case-conversion", "@sarj/no-restated-comment", "@sarj/no-restated-jsdoc", "@sarj/prefer-millisecond-control-duration-schema", "@sarj/prefer-module-level-refined-schema", "@sarj/prefer-multi-value-zod-literal", "@sarj/prefer-node-crypto-hash", "@sarj/prefer-node-fs-promises", "@sarj/prefer-shared-zod-enum", "@sarj/prefer-whole-object-assertion", "@sarj/require-camelcase-properties", "@sarj/require-sql-access-class"];
|
|
295
295
|
declare const RECOMMENDED_RULES: {
|
|
296
|
-
readonly "@sarj/named-child-schema-type": "
|
|
296
|
+
readonly "@sarj/named-child-schema-type": "error";
|
|
297
297
|
readonly "@sarj/no-conditional-empty-object-spread": "error";
|
|
298
298
|
readonly "@sarj/prefer-typed-reflection": "error";
|
|
299
299
|
readonly "@sarj/no-broad-return-type": "error";
|
|
@@ -522,7 +522,7 @@ declare const RECOMMENDED_RULES: {
|
|
|
522
522
|
readonly "@sarj/no-bare-return-from-test-catch": "error";
|
|
523
523
|
readonly "@sarj/no-bespoke-api-case-conversion": "warn";
|
|
524
524
|
readonly "@sarj/no-detached-global-fetch": "error";
|
|
525
|
-
readonly "@sarj/no-json-stringify-object-equality": "
|
|
525
|
+
readonly "@sarj/no-json-stringify-object-equality": "error";
|
|
526
526
|
readonly "@sarj/no-dangerously-allow-svg": "error";
|
|
527
527
|
readonly "@sarj/no-duplicate-lifecycle-refresh-listeners": "error";
|
|
528
528
|
readonly "@sarj/no-long-comment": "error";
|
|
@@ -544,7 +544,7 @@ declare const RECOMMENDED_RULES: {
|
|
|
544
544
|
readonly "@sarj/no-sleep-in-test-body": "error";
|
|
545
545
|
readonly "@sarj/no-string-concat-in-loop": "error";
|
|
546
546
|
readonly "@sarj/no-tautological-expect": "error";
|
|
547
|
-
readonly "@sarj/no-duplicate-test-case": "
|
|
547
|
+
readonly "@sarj/no-duplicate-test-case": "error";
|
|
548
548
|
readonly "@sarj/no-typed-doc-sections": "error";
|
|
549
549
|
readonly "@sarj/no-trailing-value-narration": "error";
|
|
550
550
|
readonly "@sarj/no-declaration-comment-wall": "error";
|
|
@@ -569,8 +569,8 @@ declare const RECOMMENDED_RULES: {
|
|
|
569
569
|
readonly zodMajorVersion: 4;
|
|
570
570
|
}];
|
|
571
571
|
readonly "@sarj/prefer-named-callback-domain": "error";
|
|
572
|
-
readonly "@sarj/prefer-nominal-id-types": "
|
|
573
|
-
readonly "@sarj/prefer-named-complex-return-type": "
|
|
572
|
+
readonly "@sarj/prefer-nominal-id-types": "error";
|
|
573
|
+
readonly "@sarj/prefer-named-complex-return-type": "error";
|
|
574
574
|
readonly "@sarj/prefer-node-crypto-hash": "warn";
|
|
575
575
|
readonly "@sarj/prefer-node-fs-promises": "warn";
|
|
576
576
|
readonly "@sarj/prefer-non-nullable-collection": "error";
|
|
@@ -578,7 +578,7 @@ declare const RECOMMENDED_RULES: {
|
|
|
578
578
|
readonly "@sarj/prefer-await-in-async-return": "error";
|
|
579
579
|
readonly "@sarj/prefer-schema-for-api-payload": "error";
|
|
580
580
|
readonly "@sarj/prefer-shared-zod-enum": "warn";
|
|
581
|
-
readonly "@sarj/prefer-switch-for-repeated-equality": "
|
|
581
|
+
readonly "@sarj/prefer-switch-for-repeated-equality": "error";
|
|
582
582
|
readonly "@sarj/prefer-semantic-colors": readonly ["error", {
|
|
583
583
|
readonly requireSemanticTokens: true;
|
|
584
584
|
}];
|
|
@@ -589,9 +589,9 @@ declare const RECOMMENDED_RULES: {
|
|
|
589
589
|
readonly "@sarj/prefer-zod-parse-output-type": "error";
|
|
590
590
|
readonly "@sarj/require-assert-never": "error";
|
|
591
591
|
readonly "@sarj/require-fetch-timeout": "error";
|
|
592
|
-
readonly "@sarj/require-explicit-contract-implementation": "
|
|
593
|
-
readonly "@sarj/require-explicit-service-contract": "
|
|
594
|
-
readonly "@sarj/require-interface-for-exported-class": "
|
|
592
|
+
readonly "@sarj/require-explicit-contract-implementation": "error";
|
|
593
|
+
readonly "@sarj/require-explicit-service-contract": "error";
|
|
594
|
+
readonly "@sarj/require-interface-for-exported-class": "error";
|
|
595
595
|
readonly "@sarj/require-port-for-service": "error";
|
|
596
596
|
readonly "@sarj/require-sql-access-class": "warn";
|
|
597
597
|
readonly "@sarj/require-static-next-matcher": "error";
|
|
@@ -606,7 +606,7 @@ declare const RECOMMENDED_RULES: {
|
|
|
606
606
|
readonly "@sarj/require-pascal-case-zod-schema-name": "error";
|
|
607
607
|
};
|
|
608
608
|
declare const STRICT_RULES: {
|
|
609
|
-
readonly "@sarj/named-child-schema-type": "
|
|
609
|
+
readonly "@sarj/named-child-schema-type": "error";
|
|
610
610
|
readonly "@sarj/no-conditional-empty-object-spread": "error";
|
|
611
611
|
readonly "@sarj/prefer-typed-reflection": "error";
|
|
612
612
|
readonly "@sarj/no-broad-return-type": "error";
|
|
@@ -836,7 +836,7 @@ declare const STRICT_RULES: {
|
|
|
836
836
|
readonly "@sarj/no-bare-return-from-test-catch": "error";
|
|
837
837
|
readonly "@sarj/no-bespoke-api-case-conversion": "warn";
|
|
838
838
|
readonly "@sarj/no-detached-global-fetch": "error";
|
|
839
|
-
readonly "@sarj/no-json-stringify-object-equality": "
|
|
839
|
+
readonly "@sarj/no-json-stringify-object-equality": "error";
|
|
840
840
|
readonly "@sarj/no-dangerously-allow-svg": "error";
|
|
841
841
|
readonly "@sarj/no-duplicate-lifecycle-refresh-listeners": "error";
|
|
842
842
|
readonly "@sarj/no-long-comment": "error";
|
|
@@ -861,7 +861,7 @@ declare const STRICT_RULES: {
|
|
|
861
861
|
readonly "@sarj/no-storage-in-stateless-modules": "error";
|
|
862
862
|
readonly "@sarj/no-string-concat-in-loop": "error";
|
|
863
863
|
readonly "@sarj/no-tautological-expect": "error";
|
|
864
|
-
readonly "@sarj/no-duplicate-test-case": "
|
|
864
|
+
readonly "@sarj/no-duplicate-test-case": "error";
|
|
865
865
|
readonly "@sarj/no-typed-doc-sections": "error";
|
|
866
866
|
readonly "@sarj/no-trailing-value-narration": "error";
|
|
867
867
|
readonly "@sarj/no-declaration-comment-wall": "error";
|
|
@@ -886,8 +886,8 @@ declare const STRICT_RULES: {
|
|
|
886
886
|
readonly zodMajorVersion: 4;
|
|
887
887
|
}];
|
|
888
888
|
readonly "@sarj/prefer-named-callback-domain": "error";
|
|
889
|
-
readonly "@sarj/prefer-nominal-id-types": "
|
|
890
|
-
readonly "@sarj/prefer-named-complex-return-type": "
|
|
889
|
+
readonly "@sarj/prefer-nominal-id-types": "error";
|
|
890
|
+
readonly "@sarj/prefer-named-complex-return-type": "error";
|
|
891
891
|
readonly "@sarj/prefer-node-crypto-hash": "warn";
|
|
892
892
|
readonly "@sarj/prefer-node-fs-promises": "warn";
|
|
893
893
|
readonly "@sarj/prefer-non-nullable-collection": "error";
|
|
@@ -895,7 +895,7 @@ declare const STRICT_RULES: {
|
|
|
895
895
|
readonly "@sarj/prefer-await-in-async-return": "error";
|
|
896
896
|
readonly "@sarj/prefer-schema-for-api-payload": "error";
|
|
897
897
|
readonly "@sarj/prefer-shared-zod-enum": "warn";
|
|
898
|
-
readonly "@sarj/prefer-switch-for-repeated-equality": "
|
|
898
|
+
readonly "@sarj/prefer-switch-for-repeated-equality": "error";
|
|
899
899
|
readonly "@sarj/prefer-semantic-colors": readonly ["error", {
|
|
900
900
|
readonly requireSemanticTokens: true;
|
|
901
901
|
}];
|
|
@@ -906,9 +906,9 @@ declare const STRICT_RULES: {
|
|
|
906
906
|
readonly "@sarj/prefer-zod-parse-output-type": "error";
|
|
907
907
|
readonly "@sarj/require-assert-never": "error";
|
|
908
908
|
readonly "@sarj/require-fetch-timeout": "error";
|
|
909
|
-
readonly "@sarj/require-explicit-contract-implementation": "
|
|
910
|
-
readonly "@sarj/require-explicit-service-contract": "
|
|
911
|
-
readonly "@sarj/require-interface-for-exported-class": "
|
|
909
|
+
readonly "@sarj/require-explicit-contract-implementation": "error";
|
|
910
|
+
readonly "@sarj/require-explicit-service-contract": "error";
|
|
911
|
+
readonly "@sarj/require-interface-for-exported-class": "error";
|
|
912
912
|
readonly "@sarj/require-port-for-service": "error";
|
|
913
913
|
readonly "@sarj/require-sql-access-class": "warn";
|
|
914
914
|
readonly "@sarj/require-static-next-matcher": "error";
|
package/dist/index.d.ts
CHANGED
|
@@ -291,9 +291,9 @@ declare const RULES: {
|
|
|
291
291
|
/** @deprecated All repositories use one policy; retained for import compatibility. */
|
|
292
292
|
declare const APPLICATION_ONLY_RULES: readonly [];
|
|
293
293
|
/** Rules staged as non-blocking warnings while corpus adoption evidence accumulates. */
|
|
294
|
-
declare const ADVISORY_RULES: readonly ["@sarj/excessive-commentary", "@sarj/
|
|
294
|
+
declare const ADVISORY_RULES: readonly ["@sarj/excessive-commentary", "@sarj/no-bespoke-api-case-conversion", "@sarj/no-restated-comment", "@sarj/no-restated-jsdoc", "@sarj/prefer-millisecond-control-duration-schema", "@sarj/prefer-module-level-refined-schema", "@sarj/prefer-multi-value-zod-literal", "@sarj/prefer-node-crypto-hash", "@sarj/prefer-node-fs-promises", "@sarj/prefer-shared-zod-enum", "@sarj/prefer-whole-object-assertion", "@sarj/require-camelcase-properties", "@sarj/require-sql-access-class"];
|
|
295
295
|
declare const RECOMMENDED_RULES: {
|
|
296
|
-
readonly "@sarj/named-child-schema-type": "
|
|
296
|
+
readonly "@sarj/named-child-schema-type": "error";
|
|
297
297
|
readonly "@sarj/no-conditional-empty-object-spread": "error";
|
|
298
298
|
readonly "@sarj/prefer-typed-reflection": "error";
|
|
299
299
|
readonly "@sarj/no-broad-return-type": "error";
|
|
@@ -522,7 +522,7 @@ declare const RECOMMENDED_RULES: {
|
|
|
522
522
|
readonly "@sarj/no-bare-return-from-test-catch": "error";
|
|
523
523
|
readonly "@sarj/no-bespoke-api-case-conversion": "warn";
|
|
524
524
|
readonly "@sarj/no-detached-global-fetch": "error";
|
|
525
|
-
readonly "@sarj/no-json-stringify-object-equality": "
|
|
525
|
+
readonly "@sarj/no-json-stringify-object-equality": "error";
|
|
526
526
|
readonly "@sarj/no-dangerously-allow-svg": "error";
|
|
527
527
|
readonly "@sarj/no-duplicate-lifecycle-refresh-listeners": "error";
|
|
528
528
|
readonly "@sarj/no-long-comment": "error";
|
|
@@ -544,7 +544,7 @@ declare const RECOMMENDED_RULES: {
|
|
|
544
544
|
readonly "@sarj/no-sleep-in-test-body": "error";
|
|
545
545
|
readonly "@sarj/no-string-concat-in-loop": "error";
|
|
546
546
|
readonly "@sarj/no-tautological-expect": "error";
|
|
547
|
-
readonly "@sarj/no-duplicate-test-case": "
|
|
547
|
+
readonly "@sarj/no-duplicate-test-case": "error";
|
|
548
548
|
readonly "@sarj/no-typed-doc-sections": "error";
|
|
549
549
|
readonly "@sarj/no-trailing-value-narration": "error";
|
|
550
550
|
readonly "@sarj/no-declaration-comment-wall": "error";
|
|
@@ -569,8 +569,8 @@ declare const RECOMMENDED_RULES: {
|
|
|
569
569
|
readonly zodMajorVersion: 4;
|
|
570
570
|
}];
|
|
571
571
|
readonly "@sarj/prefer-named-callback-domain": "error";
|
|
572
|
-
readonly "@sarj/prefer-nominal-id-types": "
|
|
573
|
-
readonly "@sarj/prefer-named-complex-return-type": "
|
|
572
|
+
readonly "@sarj/prefer-nominal-id-types": "error";
|
|
573
|
+
readonly "@sarj/prefer-named-complex-return-type": "error";
|
|
574
574
|
readonly "@sarj/prefer-node-crypto-hash": "warn";
|
|
575
575
|
readonly "@sarj/prefer-node-fs-promises": "warn";
|
|
576
576
|
readonly "@sarj/prefer-non-nullable-collection": "error";
|
|
@@ -578,7 +578,7 @@ declare const RECOMMENDED_RULES: {
|
|
|
578
578
|
readonly "@sarj/prefer-await-in-async-return": "error";
|
|
579
579
|
readonly "@sarj/prefer-schema-for-api-payload": "error";
|
|
580
580
|
readonly "@sarj/prefer-shared-zod-enum": "warn";
|
|
581
|
-
readonly "@sarj/prefer-switch-for-repeated-equality": "
|
|
581
|
+
readonly "@sarj/prefer-switch-for-repeated-equality": "error";
|
|
582
582
|
readonly "@sarj/prefer-semantic-colors": readonly ["error", {
|
|
583
583
|
readonly requireSemanticTokens: true;
|
|
584
584
|
}];
|
|
@@ -589,9 +589,9 @@ declare const RECOMMENDED_RULES: {
|
|
|
589
589
|
readonly "@sarj/prefer-zod-parse-output-type": "error";
|
|
590
590
|
readonly "@sarj/require-assert-never": "error";
|
|
591
591
|
readonly "@sarj/require-fetch-timeout": "error";
|
|
592
|
-
readonly "@sarj/require-explicit-contract-implementation": "
|
|
593
|
-
readonly "@sarj/require-explicit-service-contract": "
|
|
594
|
-
readonly "@sarj/require-interface-for-exported-class": "
|
|
592
|
+
readonly "@sarj/require-explicit-contract-implementation": "error";
|
|
593
|
+
readonly "@sarj/require-explicit-service-contract": "error";
|
|
594
|
+
readonly "@sarj/require-interface-for-exported-class": "error";
|
|
595
595
|
readonly "@sarj/require-port-for-service": "error";
|
|
596
596
|
readonly "@sarj/require-sql-access-class": "warn";
|
|
597
597
|
readonly "@sarj/require-static-next-matcher": "error";
|
|
@@ -606,7 +606,7 @@ declare const RECOMMENDED_RULES: {
|
|
|
606
606
|
readonly "@sarj/require-pascal-case-zod-schema-name": "error";
|
|
607
607
|
};
|
|
608
608
|
declare const STRICT_RULES: {
|
|
609
|
-
readonly "@sarj/named-child-schema-type": "
|
|
609
|
+
readonly "@sarj/named-child-schema-type": "error";
|
|
610
610
|
readonly "@sarj/no-conditional-empty-object-spread": "error";
|
|
611
611
|
readonly "@sarj/prefer-typed-reflection": "error";
|
|
612
612
|
readonly "@sarj/no-broad-return-type": "error";
|
|
@@ -836,7 +836,7 @@ declare const STRICT_RULES: {
|
|
|
836
836
|
readonly "@sarj/no-bare-return-from-test-catch": "error";
|
|
837
837
|
readonly "@sarj/no-bespoke-api-case-conversion": "warn";
|
|
838
838
|
readonly "@sarj/no-detached-global-fetch": "error";
|
|
839
|
-
readonly "@sarj/no-json-stringify-object-equality": "
|
|
839
|
+
readonly "@sarj/no-json-stringify-object-equality": "error";
|
|
840
840
|
readonly "@sarj/no-dangerously-allow-svg": "error";
|
|
841
841
|
readonly "@sarj/no-duplicate-lifecycle-refresh-listeners": "error";
|
|
842
842
|
readonly "@sarj/no-long-comment": "error";
|
|
@@ -861,7 +861,7 @@ declare const STRICT_RULES: {
|
|
|
861
861
|
readonly "@sarj/no-storage-in-stateless-modules": "error";
|
|
862
862
|
readonly "@sarj/no-string-concat-in-loop": "error";
|
|
863
863
|
readonly "@sarj/no-tautological-expect": "error";
|
|
864
|
-
readonly "@sarj/no-duplicate-test-case": "
|
|
864
|
+
readonly "@sarj/no-duplicate-test-case": "error";
|
|
865
865
|
readonly "@sarj/no-typed-doc-sections": "error";
|
|
866
866
|
readonly "@sarj/no-trailing-value-narration": "error";
|
|
867
867
|
readonly "@sarj/no-declaration-comment-wall": "error";
|
|
@@ -886,8 +886,8 @@ declare const STRICT_RULES: {
|
|
|
886
886
|
readonly zodMajorVersion: 4;
|
|
887
887
|
}];
|
|
888
888
|
readonly "@sarj/prefer-named-callback-domain": "error";
|
|
889
|
-
readonly "@sarj/prefer-nominal-id-types": "
|
|
890
|
-
readonly "@sarj/prefer-named-complex-return-type": "
|
|
889
|
+
readonly "@sarj/prefer-nominal-id-types": "error";
|
|
890
|
+
readonly "@sarj/prefer-named-complex-return-type": "error";
|
|
891
891
|
readonly "@sarj/prefer-node-crypto-hash": "warn";
|
|
892
892
|
readonly "@sarj/prefer-node-fs-promises": "warn";
|
|
893
893
|
readonly "@sarj/prefer-non-nullable-collection": "error";
|
|
@@ -895,7 +895,7 @@ declare const STRICT_RULES: {
|
|
|
895
895
|
readonly "@sarj/prefer-await-in-async-return": "error";
|
|
896
896
|
readonly "@sarj/prefer-schema-for-api-payload": "error";
|
|
897
897
|
readonly "@sarj/prefer-shared-zod-enum": "warn";
|
|
898
|
-
readonly "@sarj/prefer-switch-for-repeated-equality": "
|
|
898
|
+
readonly "@sarj/prefer-switch-for-repeated-equality": "error";
|
|
899
899
|
readonly "@sarj/prefer-semantic-colors": readonly ["error", {
|
|
900
900
|
readonly requireSemanticTokens: true;
|
|
901
901
|
}];
|
|
@@ -906,9 +906,9 @@ declare const STRICT_RULES: {
|
|
|
906
906
|
readonly "@sarj/prefer-zod-parse-output-type": "error";
|
|
907
907
|
readonly "@sarj/require-assert-never": "error";
|
|
908
908
|
readonly "@sarj/require-fetch-timeout": "error";
|
|
909
|
-
readonly "@sarj/require-explicit-contract-implementation": "
|
|
910
|
-
readonly "@sarj/require-explicit-service-contract": "
|
|
911
|
-
readonly "@sarj/require-interface-for-exported-class": "
|
|
909
|
+
readonly "@sarj/require-explicit-contract-implementation": "error";
|
|
910
|
+
readonly "@sarj/require-explicit-service-contract": "error";
|
|
911
|
+
readonly "@sarj/require-interface-for-exported-class": "error";
|
|
912
912
|
readonly "@sarj/require-port-for-service": "error";
|
|
913
913
|
readonly "@sarj/require-sql-access-class": "warn";
|
|
914
914
|
readonly "@sarj/require-static-next-matcher": "error";
|