@sarj/eslint-plugin 16.2.1 → 16.2.3
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 +18369 -18036
- package/dist/index.d.cts +10 -2
- package/dist/index.d.ts +10 -2
- package/dist/index.js +18278 -17945
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -126,6 +126,8 @@ declare const RENAMED_RULES: {
|
|
|
126
126
|
};
|
|
127
127
|
|
|
128
128
|
declare const RULES: {
|
|
129
|
+
readonly "require-explicit-contract-implementation": DocumentedRule<readonly [], "declareActualContract">;
|
|
130
|
+
readonly "require-explicit-service-contract": DocumentedRule<readonly [], "requireExplicitServiceContract">;
|
|
129
131
|
readonly "no-conditional-empty-object-spread": DocumentedRule<[], "avoid">;
|
|
130
132
|
readonly "prefer-typed-reflection": DocumentedRule<[], "avoid">;
|
|
131
133
|
readonly "no-broad-return-type": DocumentedRule<[], "avoid">;
|
|
@@ -285,7 +287,7 @@ declare const RULES: {
|
|
|
285
287
|
/** @deprecated All repositories use one policy; retained for import compatibility. */
|
|
286
288
|
declare const APPLICATION_ONLY_RULES: readonly [];
|
|
287
289
|
/** Rules staged as non-blocking warnings while corpus adoption evidence accumulates. */
|
|
288
|
-
declare const ADVISORY_RULES: readonly ["@sarj/excessive-commentary", "@sarj/no-bespoke-api-case-conversion", "@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-named-complex-return-type", "@sarj/prefer-node-crypto-hash", "@sarj/prefer-node-fs-promises", "@sarj/prefer-nominal-id-types", "@sarj/prefer-shared-zod-enum", "@sarj/prefer-switch-for-repeated-equality", "@sarj/prefer-whole-object-assertion", "@sarj/require-camelcase-properties", "@sarj/require-interface-for-exported-class", "@sarj/require-sql-access-class"];
|
|
290
|
+
declare const ADVISORY_RULES: readonly ["@sarj/excessive-commentary", "@sarj/no-bespoke-api-case-conversion", "@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-named-complex-return-type", "@sarj/prefer-node-crypto-hash", "@sarj/prefer-node-fs-promises", "@sarj/prefer-nominal-id-types", "@sarj/prefer-shared-zod-enum", "@sarj/prefer-switch-for-repeated-equality", "@sarj/prefer-whole-object-assertion", "@sarj/require-camelcase-properties", "@sarj/require-explicit-contract-implementation", "@sarj/require-explicit-service-contract", "@sarj/require-interface-for-exported-class", "@sarj/require-sql-access-class"];
|
|
289
291
|
declare const RECOMMENDED_RULES: {
|
|
290
292
|
readonly "@sarj/no-conditional-empty-object-spread": "error";
|
|
291
293
|
readonly "@sarj/prefer-typed-reflection": "error";
|
|
@@ -581,6 +583,8 @@ declare const RECOMMENDED_RULES: {
|
|
|
581
583
|
readonly "@sarj/prefer-zod-parse-output-type": "error";
|
|
582
584
|
readonly "@sarj/require-assert-never": "error";
|
|
583
585
|
readonly "@sarj/require-fetch-timeout": "error";
|
|
586
|
+
readonly "@sarj/require-explicit-contract-implementation": "warn";
|
|
587
|
+
readonly "@sarj/require-explicit-service-contract": "warn";
|
|
584
588
|
readonly "@sarj/require-interface-for-exported-class": "warn";
|
|
585
589
|
readonly "@sarj/require-port-for-service": "error";
|
|
586
590
|
readonly "@sarj/require-sql-access-class": "warn";
|
|
@@ -894,6 +898,8 @@ declare const STRICT_RULES: {
|
|
|
894
898
|
readonly "@sarj/prefer-zod-parse-output-type": "error";
|
|
895
899
|
readonly "@sarj/require-assert-never": "error";
|
|
896
900
|
readonly "@sarj/require-fetch-timeout": "error";
|
|
901
|
+
readonly "@sarj/require-explicit-contract-implementation": "warn";
|
|
902
|
+
readonly "@sarj/require-explicit-service-contract": "warn";
|
|
897
903
|
readonly "@sarj/require-interface-for-exported-class": "warn";
|
|
898
904
|
readonly "@sarj/require-port-for-service": "error";
|
|
899
905
|
readonly "@sarj/require-sql-access-class": "warn";
|
|
@@ -916,9 +922,11 @@ type FlatPreset = {
|
|
|
916
922
|
declare const PLUGIN: {
|
|
917
923
|
readonly meta: {
|
|
918
924
|
readonly name: "@sarj/eslint-plugin";
|
|
919
|
-
readonly version: "16.2.
|
|
925
|
+
readonly version: "16.2.3";
|
|
920
926
|
};
|
|
921
927
|
readonly rules: {
|
|
928
|
+
readonly "require-explicit-contract-implementation": DocumentedRule<readonly [], "declareActualContract">;
|
|
929
|
+
readonly "require-explicit-service-contract": DocumentedRule<readonly [], "requireExplicitServiceContract">;
|
|
922
930
|
readonly "no-conditional-empty-object-spread": DocumentedRule<[], "avoid">;
|
|
923
931
|
readonly "prefer-typed-reflection": DocumentedRule<[], "avoid">;
|
|
924
932
|
readonly "no-broad-return-type": DocumentedRule<[], "avoid">;
|
package/dist/index.d.ts
CHANGED
|
@@ -126,6 +126,8 @@ declare const RENAMED_RULES: {
|
|
|
126
126
|
};
|
|
127
127
|
|
|
128
128
|
declare const RULES: {
|
|
129
|
+
readonly "require-explicit-contract-implementation": DocumentedRule<readonly [], "declareActualContract">;
|
|
130
|
+
readonly "require-explicit-service-contract": DocumentedRule<readonly [], "requireExplicitServiceContract">;
|
|
129
131
|
readonly "no-conditional-empty-object-spread": DocumentedRule<[], "avoid">;
|
|
130
132
|
readonly "prefer-typed-reflection": DocumentedRule<[], "avoid">;
|
|
131
133
|
readonly "no-broad-return-type": DocumentedRule<[], "avoid">;
|
|
@@ -285,7 +287,7 @@ declare const RULES: {
|
|
|
285
287
|
/** @deprecated All repositories use one policy; retained for import compatibility. */
|
|
286
288
|
declare const APPLICATION_ONLY_RULES: readonly [];
|
|
287
289
|
/** Rules staged as non-blocking warnings while corpus adoption evidence accumulates. */
|
|
288
|
-
declare const ADVISORY_RULES: readonly ["@sarj/excessive-commentary", "@sarj/no-bespoke-api-case-conversion", "@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-named-complex-return-type", "@sarj/prefer-node-crypto-hash", "@sarj/prefer-node-fs-promises", "@sarj/prefer-nominal-id-types", "@sarj/prefer-shared-zod-enum", "@sarj/prefer-switch-for-repeated-equality", "@sarj/prefer-whole-object-assertion", "@sarj/require-camelcase-properties", "@sarj/require-interface-for-exported-class", "@sarj/require-sql-access-class"];
|
|
290
|
+
declare const ADVISORY_RULES: readonly ["@sarj/excessive-commentary", "@sarj/no-bespoke-api-case-conversion", "@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-named-complex-return-type", "@sarj/prefer-node-crypto-hash", "@sarj/prefer-node-fs-promises", "@sarj/prefer-nominal-id-types", "@sarj/prefer-shared-zod-enum", "@sarj/prefer-switch-for-repeated-equality", "@sarj/prefer-whole-object-assertion", "@sarj/require-camelcase-properties", "@sarj/require-explicit-contract-implementation", "@sarj/require-explicit-service-contract", "@sarj/require-interface-for-exported-class", "@sarj/require-sql-access-class"];
|
|
289
291
|
declare const RECOMMENDED_RULES: {
|
|
290
292
|
readonly "@sarj/no-conditional-empty-object-spread": "error";
|
|
291
293
|
readonly "@sarj/prefer-typed-reflection": "error";
|
|
@@ -581,6 +583,8 @@ declare const RECOMMENDED_RULES: {
|
|
|
581
583
|
readonly "@sarj/prefer-zod-parse-output-type": "error";
|
|
582
584
|
readonly "@sarj/require-assert-never": "error";
|
|
583
585
|
readonly "@sarj/require-fetch-timeout": "error";
|
|
586
|
+
readonly "@sarj/require-explicit-contract-implementation": "warn";
|
|
587
|
+
readonly "@sarj/require-explicit-service-contract": "warn";
|
|
584
588
|
readonly "@sarj/require-interface-for-exported-class": "warn";
|
|
585
589
|
readonly "@sarj/require-port-for-service": "error";
|
|
586
590
|
readonly "@sarj/require-sql-access-class": "warn";
|
|
@@ -894,6 +898,8 @@ declare const STRICT_RULES: {
|
|
|
894
898
|
readonly "@sarj/prefer-zod-parse-output-type": "error";
|
|
895
899
|
readonly "@sarj/require-assert-never": "error";
|
|
896
900
|
readonly "@sarj/require-fetch-timeout": "error";
|
|
901
|
+
readonly "@sarj/require-explicit-contract-implementation": "warn";
|
|
902
|
+
readonly "@sarj/require-explicit-service-contract": "warn";
|
|
897
903
|
readonly "@sarj/require-interface-for-exported-class": "warn";
|
|
898
904
|
readonly "@sarj/require-port-for-service": "error";
|
|
899
905
|
readonly "@sarj/require-sql-access-class": "warn";
|
|
@@ -916,9 +922,11 @@ type FlatPreset = {
|
|
|
916
922
|
declare const PLUGIN: {
|
|
917
923
|
readonly meta: {
|
|
918
924
|
readonly name: "@sarj/eslint-plugin";
|
|
919
|
-
readonly version: "16.2.
|
|
925
|
+
readonly version: "16.2.3";
|
|
920
926
|
};
|
|
921
927
|
readonly rules: {
|
|
928
|
+
readonly "require-explicit-contract-implementation": DocumentedRule<readonly [], "declareActualContract">;
|
|
929
|
+
readonly "require-explicit-service-contract": DocumentedRule<readonly [], "requireExplicitServiceContract">;
|
|
922
930
|
readonly "no-conditional-empty-object-spread": DocumentedRule<[], "avoid">;
|
|
923
931
|
readonly "prefer-typed-reflection": DocumentedRule<[], "avoid">;
|
|
924
932
|
readonly "no-broad-return-type": DocumentedRule<[], "avoid">;
|