@sarj/eslint-plugin 16.5.3 → 16.7.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 +174 -67
- package/dist/index.d.cts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +249 -142
- package/package.json +1 -1
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-duplicate-test-case", "@sarj/no-json-stringify-object-equality", "@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-nominal-id-types", "@sarj/prefer-shared-zod-enum", "@sarj/prefer-whole-object-assertion", "@sarj/require-camelcase-properties", "@sarj/require-explicit-service-contract", "@sarj/require-interface-for-exported-class", "@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";
|
|
@@ -570,7 +570,7 @@ declare const RECOMMENDED_RULES: {
|
|
|
570
570
|
}];
|
|
571
571
|
readonly "@sarj/prefer-named-callback-domain": "error";
|
|
572
572
|
readonly "@sarj/prefer-nominal-id-types": "warn";
|
|
573
|
-
readonly "@sarj/prefer-named-complex-return-type": "
|
|
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,7 +589,7 @@ 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": "
|
|
592
|
+
readonly "@sarj/require-explicit-contract-implementation": "error";
|
|
593
593
|
readonly "@sarj/require-explicit-service-contract": "warn";
|
|
594
594
|
readonly "@sarj/require-interface-for-exported-class": "warn";
|
|
595
595
|
readonly "@sarj/require-port-for-service": "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";
|
|
@@ -887,7 +887,7 @@ declare const STRICT_RULES: {
|
|
|
887
887
|
}];
|
|
888
888
|
readonly "@sarj/prefer-named-callback-domain": "error";
|
|
889
889
|
readonly "@sarj/prefer-nominal-id-types": "warn";
|
|
890
|
-
readonly "@sarj/prefer-named-complex-return-type": "
|
|
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,7 +906,7 @@ 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": "
|
|
909
|
+
readonly "@sarj/require-explicit-contract-implementation": "error";
|
|
910
910
|
readonly "@sarj/require-explicit-service-contract": "warn";
|
|
911
911
|
readonly "@sarj/require-interface-for-exported-class": "warn";
|
|
912
912
|
readonly "@sarj/require-port-for-service": "error";
|