@sarj/eslint-plugin 15.17.14 → 15.17.16
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 +2004 -1638
- package/dist/index.d.cts +14 -2
- package/dist/index.d.ts +14 -2
- package/dist/index.js +2009 -1637
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -216,8 +216,11 @@ declare const RULES: {
|
|
|
216
216
|
}?], "handRolledSleep" | "handRolledTimeoutRace">;
|
|
217
217
|
readonly "no-hand-rolled-spinner": DocumentedRule<readonly [], "handRolledSpinner">;
|
|
218
218
|
readonly "no-insecure-random-id": DocumentedRule<readonly [], "insecureRandomId">;
|
|
219
|
+
readonly "no-detached-global-fetch": DocumentedRule<readonly [], "detachedGlobalFetch">;
|
|
219
220
|
readonly "no-json-stringify-error": DocumentedRule<readonly [], "noJsonStringifyError">;
|
|
221
|
+
readonly "no-json-stringify-object-equality": DocumentedRule<readonly [], "serializedObjectEquality">;
|
|
220
222
|
readonly "no-impossible-zod-literal-bounds": DocumentedRule<readonly [], "impossibleBounds">;
|
|
223
|
+
readonly "no-in-operator-on-built-in-collections": DocumentedRule<readonly [], "ambiguousCollectionIn">;
|
|
221
224
|
readonly "no-redundant-optional-array-default": DocumentedRule<readonly [], "redundantOptionalArrayDefault">;
|
|
222
225
|
readonly "interface-contract-members-private": DocumentedRule<readonly [], "nonContractMemberMustBePrivate">;
|
|
223
226
|
readonly "no-log-only-catch": DocumentedRule<readonly [LoggingOptions?], "noLogOnlyCatch" | "emptyCatch">;
|
|
@@ -322,7 +325,7 @@ declare const RULES: {
|
|
|
322
325
|
/** @deprecated All repositories use one policy; retained for import compatibility. */
|
|
323
326
|
declare const APPLICATION_ONLY_RULES: readonly [];
|
|
324
327
|
/** Rules staged as non-blocking warnings while corpus adoption evidence accumulates. */
|
|
325
|
-
declare const ADVISORY_RULES: readonly ["@sarj/excessive-commentary", "@sarj/no-bespoke-api-case-conversion", "@sarj/no-redundant-optional-array-default", "@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-callback-domain", "@sarj/prefer-named-complex-return-type", "@sarj/prefer-node-crypto-hash", "@sarj/prefer-node-fs-promises", "@sarj/prefer-nullish-filter-predicate", "@sarj/prefer-shared-zod-enum", "@sarj/prefer-switch-for-repeated-equality", "@sarj/prefer-whole-object-assertion", "@sarj/prefer-zod-parse-output-type", "@sarj/require-interface-for-exported-class", "@sarj/require-sql-access-class", "@sarj/sole-export-matches-filename"];
|
|
328
|
+
declare const ADVISORY_RULES: readonly ["@sarj/excessive-commentary", "@sarj/no-bespoke-api-case-conversion", "@sarj/no-detached-global-fetch", "@sarj/no-in-operator-on-built-in-collections", "@sarj/no-json-stringify-object-equality", "@sarj/no-redundant-optional-array-default", "@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-callback-domain", "@sarj/prefer-named-complex-return-type", "@sarj/prefer-node-crypto-hash", "@sarj/prefer-node-fs-promises", "@sarj/prefer-nullish-filter-predicate", "@sarj/prefer-shared-zod-enum", "@sarj/prefer-switch-for-repeated-equality", "@sarj/prefer-whole-object-assertion", "@sarj/prefer-zod-parse-output-type", "@sarj/require-interface-for-exported-class", "@sarj/require-sql-access-class", "@sarj/sole-export-matches-filename"];
|
|
326
329
|
declare const RECOMMENDED_RULES: {
|
|
327
330
|
readonly "no-restricted-imports": readonly ["error", {
|
|
328
331
|
readonly paths: {
|
|
@@ -526,9 +529,12 @@ declare const RECOMMENDED_RULES: {
|
|
|
526
529
|
readonly "@sarj/no-insecure-random-id": "error";
|
|
527
530
|
readonly "@sarj/no-json-stringify-error": "error";
|
|
528
531
|
readonly "@sarj/no-impossible-zod-literal-bounds": "error";
|
|
532
|
+
readonly "@sarj/no-in-operator-on-built-in-collections": "warn";
|
|
529
533
|
readonly "@sarj/no-log-only-catch": "error";
|
|
530
534
|
readonly "@sarj/no-bare-return-from-test-catch": "error";
|
|
531
535
|
readonly "@sarj/no-bespoke-api-case-conversion": "warn";
|
|
536
|
+
readonly "@sarj/no-detached-global-fetch": "warn";
|
|
537
|
+
readonly "@sarj/no-json-stringify-object-equality": "warn";
|
|
532
538
|
readonly "@sarj/no-dangerously-allow-svg": "error";
|
|
533
539
|
readonly "@sarj/no-duplicate-lifecycle-refresh-listeners": "error";
|
|
534
540
|
readonly "@sarj/no-long-comment": "error";
|
|
@@ -809,9 +815,12 @@ declare const STRICT_RULES: {
|
|
|
809
815
|
readonly "@sarj/no-insecure-random-id": "error";
|
|
810
816
|
readonly "@sarj/no-json-stringify-error": "error";
|
|
811
817
|
readonly "@sarj/no-impossible-zod-literal-bounds": "error";
|
|
818
|
+
readonly "@sarj/no-in-operator-on-built-in-collections": "warn";
|
|
812
819
|
readonly "@sarj/no-log-only-catch": "error";
|
|
813
820
|
readonly "@sarj/no-bare-return-from-test-catch": "error";
|
|
814
821
|
readonly "@sarj/no-bespoke-api-case-conversion": "warn";
|
|
822
|
+
readonly "@sarj/no-detached-global-fetch": "warn";
|
|
823
|
+
readonly "@sarj/no-json-stringify-object-equality": "warn";
|
|
815
824
|
readonly "@sarj/no-dangerously-allow-svg": "error";
|
|
816
825
|
readonly "@sarj/no-duplicate-lifecycle-refresh-listeners": "error";
|
|
817
826
|
readonly "@sarj/no-long-comment": "error";
|
|
@@ -899,7 +908,7 @@ type FlatPreset = {
|
|
|
899
908
|
declare const PLUGIN: {
|
|
900
909
|
readonly meta: {
|
|
901
910
|
readonly name: "@sarj/eslint-plugin";
|
|
902
|
-
readonly version: "15.17.
|
|
911
|
+
readonly version: "15.17.16";
|
|
903
912
|
};
|
|
904
913
|
readonly rules: {
|
|
905
914
|
readonly "excessive-commentary": DocumentedRule<readonly [], "excessive">;
|
|
@@ -922,8 +931,11 @@ declare const PLUGIN: {
|
|
|
922
931
|
}?], "handRolledSleep" | "handRolledTimeoutRace">;
|
|
923
932
|
readonly "no-hand-rolled-spinner": DocumentedRule<readonly [], "handRolledSpinner">;
|
|
924
933
|
readonly "no-insecure-random-id": DocumentedRule<readonly [], "insecureRandomId">;
|
|
934
|
+
readonly "no-detached-global-fetch": DocumentedRule<readonly [], "detachedGlobalFetch">;
|
|
925
935
|
readonly "no-json-stringify-error": DocumentedRule<readonly [], "noJsonStringifyError">;
|
|
936
|
+
readonly "no-json-stringify-object-equality": DocumentedRule<readonly [], "serializedObjectEquality">;
|
|
926
937
|
readonly "no-impossible-zod-literal-bounds": DocumentedRule<readonly [], "impossibleBounds">;
|
|
938
|
+
readonly "no-in-operator-on-built-in-collections": DocumentedRule<readonly [], "ambiguousCollectionIn">;
|
|
927
939
|
readonly "no-redundant-optional-array-default": DocumentedRule<readonly [], "redundantOptionalArrayDefault">;
|
|
928
940
|
readonly "interface-contract-members-private": DocumentedRule<readonly [], "nonContractMemberMustBePrivate">;
|
|
929
941
|
readonly "no-log-only-catch": DocumentedRule<readonly [LoggingOptions?], "noLogOnlyCatch" | "emptyCatch">;
|
package/dist/index.d.ts
CHANGED
|
@@ -216,8 +216,11 @@ declare const RULES: {
|
|
|
216
216
|
}?], "handRolledSleep" | "handRolledTimeoutRace">;
|
|
217
217
|
readonly "no-hand-rolled-spinner": DocumentedRule<readonly [], "handRolledSpinner">;
|
|
218
218
|
readonly "no-insecure-random-id": DocumentedRule<readonly [], "insecureRandomId">;
|
|
219
|
+
readonly "no-detached-global-fetch": DocumentedRule<readonly [], "detachedGlobalFetch">;
|
|
219
220
|
readonly "no-json-stringify-error": DocumentedRule<readonly [], "noJsonStringifyError">;
|
|
221
|
+
readonly "no-json-stringify-object-equality": DocumentedRule<readonly [], "serializedObjectEquality">;
|
|
220
222
|
readonly "no-impossible-zod-literal-bounds": DocumentedRule<readonly [], "impossibleBounds">;
|
|
223
|
+
readonly "no-in-operator-on-built-in-collections": DocumentedRule<readonly [], "ambiguousCollectionIn">;
|
|
221
224
|
readonly "no-redundant-optional-array-default": DocumentedRule<readonly [], "redundantOptionalArrayDefault">;
|
|
222
225
|
readonly "interface-contract-members-private": DocumentedRule<readonly [], "nonContractMemberMustBePrivate">;
|
|
223
226
|
readonly "no-log-only-catch": DocumentedRule<readonly [LoggingOptions?], "noLogOnlyCatch" | "emptyCatch">;
|
|
@@ -322,7 +325,7 @@ declare const RULES: {
|
|
|
322
325
|
/** @deprecated All repositories use one policy; retained for import compatibility. */
|
|
323
326
|
declare const APPLICATION_ONLY_RULES: readonly [];
|
|
324
327
|
/** Rules staged as non-blocking warnings while corpus adoption evidence accumulates. */
|
|
325
|
-
declare const ADVISORY_RULES: readonly ["@sarj/excessive-commentary", "@sarj/no-bespoke-api-case-conversion", "@sarj/no-redundant-optional-array-default", "@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-callback-domain", "@sarj/prefer-named-complex-return-type", "@sarj/prefer-node-crypto-hash", "@sarj/prefer-node-fs-promises", "@sarj/prefer-nullish-filter-predicate", "@sarj/prefer-shared-zod-enum", "@sarj/prefer-switch-for-repeated-equality", "@sarj/prefer-whole-object-assertion", "@sarj/prefer-zod-parse-output-type", "@sarj/require-interface-for-exported-class", "@sarj/require-sql-access-class", "@sarj/sole-export-matches-filename"];
|
|
328
|
+
declare const ADVISORY_RULES: readonly ["@sarj/excessive-commentary", "@sarj/no-bespoke-api-case-conversion", "@sarj/no-detached-global-fetch", "@sarj/no-in-operator-on-built-in-collections", "@sarj/no-json-stringify-object-equality", "@sarj/no-redundant-optional-array-default", "@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-callback-domain", "@sarj/prefer-named-complex-return-type", "@sarj/prefer-node-crypto-hash", "@sarj/prefer-node-fs-promises", "@sarj/prefer-nullish-filter-predicate", "@sarj/prefer-shared-zod-enum", "@sarj/prefer-switch-for-repeated-equality", "@sarj/prefer-whole-object-assertion", "@sarj/prefer-zod-parse-output-type", "@sarj/require-interface-for-exported-class", "@sarj/require-sql-access-class", "@sarj/sole-export-matches-filename"];
|
|
326
329
|
declare const RECOMMENDED_RULES: {
|
|
327
330
|
readonly "no-restricted-imports": readonly ["error", {
|
|
328
331
|
readonly paths: {
|
|
@@ -526,9 +529,12 @@ declare const RECOMMENDED_RULES: {
|
|
|
526
529
|
readonly "@sarj/no-insecure-random-id": "error";
|
|
527
530
|
readonly "@sarj/no-json-stringify-error": "error";
|
|
528
531
|
readonly "@sarj/no-impossible-zod-literal-bounds": "error";
|
|
532
|
+
readonly "@sarj/no-in-operator-on-built-in-collections": "warn";
|
|
529
533
|
readonly "@sarj/no-log-only-catch": "error";
|
|
530
534
|
readonly "@sarj/no-bare-return-from-test-catch": "error";
|
|
531
535
|
readonly "@sarj/no-bespoke-api-case-conversion": "warn";
|
|
536
|
+
readonly "@sarj/no-detached-global-fetch": "warn";
|
|
537
|
+
readonly "@sarj/no-json-stringify-object-equality": "warn";
|
|
532
538
|
readonly "@sarj/no-dangerously-allow-svg": "error";
|
|
533
539
|
readonly "@sarj/no-duplicate-lifecycle-refresh-listeners": "error";
|
|
534
540
|
readonly "@sarj/no-long-comment": "error";
|
|
@@ -809,9 +815,12 @@ declare const STRICT_RULES: {
|
|
|
809
815
|
readonly "@sarj/no-insecure-random-id": "error";
|
|
810
816
|
readonly "@sarj/no-json-stringify-error": "error";
|
|
811
817
|
readonly "@sarj/no-impossible-zod-literal-bounds": "error";
|
|
818
|
+
readonly "@sarj/no-in-operator-on-built-in-collections": "warn";
|
|
812
819
|
readonly "@sarj/no-log-only-catch": "error";
|
|
813
820
|
readonly "@sarj/no-bare-return-from-test-catch": "error";
|
|
814
821
|
readonly "@sarj/no-bespoke-api-case-conversion": "warn";
|
|
822
|
+
readonly "@sarj/no-detached-global-fetch": "warn";
|
|
823
|
+
readonly "@sarj/no-json-stringify-object-equality": "warn";
|
|
815
824
|
readonly "@sarj/no-dangerously-allow-svg": "error";
|
|
816
825
|
readonly "@sarj/no-duplicate-lifecycle-refresh-listeners": "error";
|
|
817
826
|
readonly "@sarj/no-long-comment": "error";
|
|
@@ -899,7 +908,7 @@ type FlatPreset = {
|
|
|
899
908
|
declare const PLUGIN: {
|
|
900
909
|
readonly meta: {
|
|
901
910
|
readonly name: "@sarj/eslint-plugin";
|
|
902
|
-
readonly version: "15.17.
|
|
911
|
+
readonly version: "15.17.16";
|
|
903
912
|
};
|
|
904
913
|
readonly rules: {
|
|
905
914
|
readonly "excessive-commentary": DocumentedRule<readonly [], "excessive">;
|
|
@@ -922,8 +931,11 @@ declare const PLUGIN: {
|
|
|
922
931
|
}?], "handRolledSleep" | "handRolledTimeoutRace">;
|
|
923
932
|
readonly "no-hand-rolled-spinner": DocumentedRule<readonly [], "handRolledSpinner">;
|
|
924
933
|
readonly "no-insecure-random-id": DocumentedRule<readonly [], "insecureRandomId">;
|
|
934
|
+
readonly "no-detached-global-fetch": DocumentedRule<readonly [], "detachedGlobalFetch">;
|
|
925
935
|
readonly "no-json-stringify-error": DocumentedRule<readonly [], "noJsonStringifyError">;
|
|
936
|
+
readonly "no-json-stringify-object-equality": DocumentedRule<readonly [], "serializedObjectEquality">;
|
|
926
937
|
readonly "no-impossible-zod-literal-bounds": DocumentedRule<readonly [], "impossibleBounds">;
|
|
938
|
+
readonly "no-in-operator-on-built-in-collections": DocumentedRule<readonly [], "ambiguousCollectionIn">;
|
|
927
939
|
readonly "no-redundant-optional-array-default": DocumentedRule<readonly [], "redundantOptionalArrayDefault">;
|
|
928
940
|
readonly "interface-contract-members-private": DocumentedRule<readonly [], "nonContractMemberMustBePrivate">;
|
|
929
941
|
readonly "no-log-only-catch": DocumentedRule<readonly [LoggingOptions?], "noLogOnlyCatch" | "emptyCatch">;
|