@sarj/eslint-plugin 15.17.13 → 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.d.cts CHANGED
@@ -216,8 +216,12 @@ 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">;
224
+ readonly "no-redundant-optional-array-default": DocumentedRule<readonly [], "redundantOptionalArrayDefault">;
221
225
  readonly "interface-contract-members-private": DocumentedRule<readonly [], "nonContractMemberMustBePrivate">;
222
226
  readonly "no-log-only-catch": DocumentedRule<readonly [LoggingOptions?], "noLogOnlyCatch" | "emptyCatch">;
223
227
  readonly "no-bare-return-from-test-catch": DocumentedRule<readonly [], "bareReturnFromTestCatch">;
@@ -321,7 +325,7 @@ declare const RULES: {
321
325
  /** @deprecated All repositories use one policy; retained for import compatibility. */
322
326
  declare const APPLICATION_ONLY_RULES: readonly [];
323
327
  /** Rules staged as non-blocking warnings while corpus adoption evidence accumulates. */
324
- 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-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"];
325
329
  declare const RECOMMENDED_RULES: {
326
330
  readonly "no-restricted-imports": readonly ["error", {
327
331
  readonly paths: {
@@ -525,9 +529,12 @@ declare const RECOMMENDED_RULES: {
525
529
  readonly "@sarj/no-insecure-random-id": "error";
526
530
  readonly "@sarj/no-json-stringify-error": "error";
527
531
  readonly "@sarj/no-impossible-zod-literal-bounds": "error";
532
+ readonly "@sarj/no-in-operator-on-built-in-collections": "warn";
528
533
  readonly "@sarj/no-log-only-catch": "error";
529
534
  readonly "@sarj/no-bare-return-from-test-catch": "error";
530
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";
531
538
  readonly "@sarj/no-dangerously-allow-svg": "error";
532
539
  readonly "@sarj/no-duplicate-lifecycle-refresh-listeners": "error";
533
540
  readonly "@sarj/no-long-comment": "error";
@@ -537,6 +544,7 @@ declare const RECOMMENDED_RULES: {
537
544
  readonly "@sarj/no-positional-tuple-return": "error";
538
545
  readonly "@sarj/no-production-browser-source-maps": "error";
539
546
  readonly "@sarj/no-repeated-string-literal": "error";
547
+ readonly "@sarj/no-redundant-optional-array-default": "warn";
540
548
  readonly "@sarj/no-router-refresh-polling": "error";
541
549
  readonly "@sarj/no-restated-comment": "warn";
542
550
  readonly "@sarj/no-restated-jsdoc": "warn";
@@ -807,9 +815,12 @@ declare const STRICT_RULES: {
807
815
  readonly "@sarj/no-insecure-random-id": "error";
808
816
  readonly "@sarj/no-json-stringify-error": "error";
809
817
  readonly "@sarj/no-impossible-zod-literal-bounds": "error";
818
+ readonly "@sarj/no-in-operator-on-built-in-collections": "warn";
810
819
  readonly "@sarj/no-log-only-catch": "error";
811
820
  readonly "@sarj/no-bare-return-from-test-catch": "error";
812
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";
813
824
  readonly "@sarj/no-dangerously-allow-svg": "error";
814
825
  readonly "@sarj/no-duplicate-lifecycle-refresh-listeners": "error";
815
826
  readonly "@sarj/no-long-comment": "error";
@@ -821,6 +832,7 @@ declare const STRICT_RULES: {
821
832
  readonly "@sarj/no-raw-env": "error";
822
833
  readonly "@sarj/no-raw-fetch-outside-clients": "error";
823
834
  readonly "@sarj/no-repeated-string-literal": "error";
835
+ readonly "@sarj/no-redundant-optional-array-default": "warn";
824
836
  readonly "@sarj/no-router-refresh-polling": "error";
825
837
  readonly "@sarj/no-restated-comment": "warn";
826
838
  readonly "@sarj/no-restated-jsdoc": "warn";
@@ -896,7 +908,7 @@ type FlatPreset = {
896
908
  declare const PLUGIN: {
897
909
  readonly meta: {
898
910
  readonly name: "@sarj/eslint-plugin";
899
- readonly version: "15.17.13";
911
+ readonly version: "15.17.16";
900
912
  };
901
913
  readonly rules: {
902
914
  readonly "excessive-commentary": DocumentedRule<readonly [], "excessive">;
@@ -919,8 +931,12 @@ declare const PLUGIN: {
919
931
  }?], "handRolledSleep" | "handRolledTimeoutRace">;
920
932
  readonly "no-hand-rolled-spinner": DocumentedRule<readonly [], "handRolledSpinner">;
921
933
  readonly "no-insecure-random-id": DocumentedRule<readonly [], "insecureRandomId">;
934
+ readonly "no-detached-global-fetch": DocumentedRule<readonly [], "detachedGlobalFetch">;
922
935
  readonly "no-json-stringify-error": DocumentedRule<readonly [], "noJsonStringifyError">;
936
+ readonly "no-json-stringify-object-equality": DocumentedRule<readonly [], "serializedObjectEquality">;
923
937
  readonly "no-impossible-zod-literal-bounds": DocumentedRule<readonly [], "impossibleBounds">;
938
+ readonly "no-in-operator-on-built-in-collections": DocumentedRule<readonly [], "ambiguousCollectionIn">;
939
+ readonly "no-redundant-optional-array-default": DocumentedRule<readonly [], "redundantOptionalArrayDefault">;
924
940
  readonly "interface-contract-members-private": DocumentedRule<readonly [], "nonContractMemberMustBePrivate">;
925
941
  readonly "no-log-only-catch": DocumentedRule<readonly [LoggingOptions?], "noLogOnlyCatch" | "emptyCatch">;
926
942
  readonly "no-bare-return-from-test-catch": DocumentedRule<readonly [], "bareReturnFromTestCatch">;
package/dist/index.d.ts CHANGED
@@ -216,8 +216,12 @@ 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">;
224
+ readonly "no-redundant-optional-array-default": DocumentedRule<readonly [], "redundantOptionalArrayDefault">;
221
225
  readonly "interface-contract-members-private": DocumentedRule<readonly [], "nonContractMemberMustBePrivate">;
222
226
  readonly "no-log-only-catch": DocumentedRule<readonly [LoggingOptions?], "noLogOnlyCatch" | "emptyCatch">;
223
227
  readonly "no-bare-return-from-test-catch": DocumentedRule<readonly [], "bareReturnFromTestCatch">;
@@ -321,7 +325,7 @@ declare const RULES: {
321
325
  /** @deprecated All repositories use one policy; retained for import compatibility. */
322
326
  declare const APPLICATION_ONLY_RULES: readonly [];
323
327
  /** Rules staged as non-blocking warnings while corpus adoption evidence accumulates. */
324
- 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-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"];
325
329
  declare const RECOMMENDED_RULES: {
326
330
  readonly "no-restricted-imports": readonly ["error", {
327
331
  readonly paths: {
@@ -525,9 +529,12 @@ declare const RECOMMENDED_RULES: {
525
529
  readonly "@sarj/no-insecure-random-id": "error";
526
530
  readonly "@sarj/no-json-stringify-error": "error";
527
531
  readonly "@sarj/no-impossible-zod-literal-bounds": "error";
532
+ readonly "@sarj/no-in-operator-on-built-in-collections": "warn";
528
533
  readonly "@sarj/no-log-only-catch": "error";
529
534
  readonly "@sarj/no-bare-return-from-test-catch": "error";
530
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";
531
538
  readonly "@sarj/no-dangerously-allow-svg": "error";
532
539
  readonly "@sarj/no-duplicate-lifecycle-refresh-listeners": "error";
533
540
  readonly "@sarj/no-long-comment": "error";
@@ -537,6 +544,7 @@ declare const RECOMMENDED_RULES: {
537
544
  readonly "@sarj/no-positional-tuple-return": "error";
538
545
  readonly "@sarj/no-production-browser-source-maps": "error";
539
546
  readonly "@sarj/no-repeated-string-literal": "error";
547
+ readonly "@sarj/no-redundant-optional-array-default": "warn";
540
548
  readonly "@sarj/no-router-refresh-polling": "error";
541
549
  readonly "@sarj/no-restated-comment": "warn";
542
550
  readonly "@sarj/no-restated-jsdoc": "warn";
@@ -807,9 +815,12 @@ declare const STRICT_RULES: {
807
815
  readonly "@sarj/no-insecure-random-id": "error";
808
816
  readonly "@sarj/no-json-stringify-error": "error";
809
817
  readonly "@sarj/no-impossible-zod-literal-bounds": "error";
818
+ readonly "@sarj/no-in-operator-on-built-in-collections": "warn";
810
819
  readonly "@sarj/no-log-only-catch": "error";
811
820
  readonly "@sarj/no-bare-return-from-test-catch": "error";
812
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";
813
824
  readonly "@sarj/no-dangerously-allow-svg": "error";
814
825
  readonly "@sarj/no-duplicate-lifecycle-refresh-listeners": "error";
815
826
  readonly "@sarj/no-long-comment": "error";
@@ -821,6 +832,7 @@ declare const STRICT_RULES: {
821
832
  readonly "@sarj/no-raw-env": "error";
822
833
  readonly "@sarj/no-raw-fetch-outside-clients": "error";
823
834
  readonly "@sarj/no-repeated-string-literal": "error";
835
+ readonly "@sarj/no-redundant-optional-array-default": "warn";
824
836
  readonly "@sarj/no-router-refresh-polling": "error";
825
837
  readonly "@sarj/no-restated-comment": "warn";
826
838
  readonly "@sarj/no-restated-jsdoc": "warn";
@@ -896,7 +908,7 @@ type FlatPreset = {
896
908
  declare const PLUGIN: {
897
909
  readonly meta: {
898
910
  readonly name: "@sarj/eslint-plugin";
899
- readonly version: "15.17.13";
911
+ readonly version: "15.17.16";
900
912
  };
901
913
  readonly rules: {
902
914
  readonly "excessive-commentary": DocumentedRule<readonly [], "excessive">;
@@ -919,8 +931,12 @@ declare const PLUGIN: {
919
931
  }?], "handRolledSleep" | "handRolledTimeoutRace">;
920
932
  readonly "no-hand-rolled-spinner": DocumentedRule<readonly [], "handRolledSpinner">;
921
933
  readonly "no-insecure-random-id": DocumentedRule<readonly [], "insecureRandomId">;
934
+ readonly "no-detached-global-fetch": DocumentedRule<readonly [], "detachedGlobalFetch">;
922
935
  readonly "no-json-stringify-error": DocumentedRule<readonly [], "noJsonStringifyError">;
936
+ readonly "no-json-stringify-object-equality": DocumentedRule<readonly [], "serializedObjectEquality">;
923
937
  readonly "no-impossible-zod-literal-bounds": DocumentedRule<readonly [], "impossibleBounds">;
938
+ readonly "no-in-operator-on-built-in-collections": DocumentedRule<readonly [], "ambiguousCollectionIn">;
939
+ readonly "no-redundant-optional-array-default": DocumentedRule<readonly [], "redundantOptionalArrayDefault">;
924
940
  readonly "interface-contract-members-private": DocumentedRule<readonly [], "nonContractMemberMustBePrivate">;
925
941
  readonly "no-log-only-catch": DocumentedRule<readonly [LoggingOptions?], "noLogOnlyCatch" | "emptyCatch">;
926
942
  readonly "no-bare-return-from-test-catch": DocumentedRule<readonly [], "bareReturnFromTestCatch">;