@sarj/eslint-plugin 15.17.13 → 15.17.14

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
@@ -218,6 +218,7 @@ declare const RULES: {
218
218
  readonly "no-insecure-random-id": DocumentedRule<readonly [], "insecureRandomId">;
219
219
  readonly "no-json-stringify-error": DocumentedRule<readonly [], "noJsonStringifyError">;
220
220
  readonly "no-impossible-zod-literal-bounds": DocumentedRule<readonly [], "impossibleBounds">;
221
+ readonly "no-redundant-optional-array-default": DocumentedRule<readonly [], "redundantOptionalArrayDefault">;
221
222
  readonly "interface-contract-members-private": DocumentedRule<readonly [], "nonContractMemberMustBePrivate">;
222
223
  readonly "no-log-only-catch": DocumentedRule<readonly [LoggingOptions?], "noLogOnlyCatch" | "emptyCatch">;
223
224
  readonly "no-bare-return-from-test-catch": DocumentedRule<readonly [], "bareReturnFromTestCatch">;
@@ -321,7 +322,7 @@ declare const RULES: {
321
322
  /** @deprecated All repositories use one policy; retained for import compatibility. */
322
323
  declare const APPLICATION_ONLY_RULES: readonly [];
323
324
  /** 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"];
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"];
325
326
  declare const RECOMMENDED_RULES: {
326
327
  readonly "no-restricted-imports": readonly ["error", {
327
328
  readonly paths: {
@@ -537,6 +538,7 @@ declare const RECOMMENDED_RULES: {
537
538
  readonly "@sarj/no-positional-tuple-return": "error";
538
539
  readonly "@sarj/no-production-browser-source-maps": "error";
539
540
  readonly "@sarj/no-repeated-string-literal": "error";
541
+ readonly "@sarj/no-redundant-optional-array-default": "warn";
540
542
  readonly "@sarj/no-router-refresh-polling": "error";
541
543
  readonly "@sarj/no-restated-comment": "warn";
542
544
  readonly "@sarj/no-restated-jsdoc": "warn";
@@ -821,6 +823,7 @@ declare const STRICT_RULES: {
821
823
  readonly "@sarj/no-raw-env": "error";
822
824
  readonly "@sarj/no-raw-fetch-outside-clients": "error";
823
825
  readonly "@sarj/no-repeated-string-literal": "error";
826
+ readonly "@sarj/no-redundant-optional-array-default": "warn";
824
827
  readonly "@sarj/no-router-refresh-polling": "error";
825
828
  readonly "@sarj/no-restated-comment": "warn";
826
829
  readonly "@sarj/no-restated-jsdoc": "warn";
@@ -896,7 +899,7 @@ type FlatPreset = {
896
899
  declare const PLUGIN: {
897
900
  readonly meta: {
898
901
  readonly name: "@sarj/eslint-plugin";
899
- readonly version: "15.17.13";
902
+ readonly version: "15.17.14";
900
903
  };
901
904
  readonly rules: {
902
905
  readonly "excessive-commentary": DocumentedRule<readonly [], "excessive">;
@@ -921,6 +924,7 @@ declare const PLUGIN: {
921
924
  readonly "no-insecure-random-id": DocumentedRule<readonly [], "insecureRandomId">;
922
925
  readonly "no-json-stringify-error": DocumentedRule<readonly [], "noJsonStringifyError">;
923
926
  readonly "no-impossible-zod-literal-bounds": DocumentedRule<readonly [], "impossibleBounds">;
927
+ readonly "no-redundant-optional-array-default": DocumentedRule<readonly [], "redundantOptionalArrayDefault">;
924
928
  readonly "interface-contract-members-private": DocumentedRule<readonly [], "nonContractMemberMustBePrivate">;
925
929
  readonly "no-log-only-catch": DocumentedRule<readonly [LoggingOptions?], "noLogOnlyCatch" | "emptyCatch">;
926
930
  readonly "no-bare-return-from-test-catch": DocumentedRule<readonly [], "bareReturnFromTestCatch">;
package/dist/index.d.ts CHANGED
@@ -218,6 +218,7 @@ declare const RULES: {
218
218
  readonly "no-insecure-random-id": DocumentedRule<readonly [], "insecureRandomId">;
219
219
  readonly "no-json-stringify-error": DocumentedRule<readonly [], "noJsonStringifyError">;
220
220
  readonly "no-impossible-zod-literal-bounds": DocumentedRule<readonly [], "impossibleBounds">;
221
+ readonly "no-redundant-optional-array-default": DocumentedRule<readonly [], "redundantOptionalArrayDefault">;
221
222
  readonly "interface-contract-members-private": DocumentedRule<readonly [], "nonContractMemberMustBePrivate">;
222
223
  readonly "no-log-only-catch": DocumentedRule<readonly [LoggingOptions?], "noLogOnlyCatch" | "emptyCatch">;
223
224
  readonly "no-bare-return-from-test-catch": DocumentedRule<readonly [], "bareReturnFromTestCatch">;
@@ -321,7 +322,7 @@ declare const RULES: {
321
322
  /** @deprecated All repositories use one policy; retained for import compatibility. */
322
323
  declare const APPLICATION_ONLY_RULES: readonly [];
323
324
  /** 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"];
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"];
325
326
  declare const RECOMMENDED_RULES: {
326
327
  readonly "no-restricted-imports": readonly ["error", {
327
328
  readonly paths: {
@@ -537,6 +538,7 @@ declare const RECOMMENDED_RULES: {
537
538
  readonly "@sarj/no-positional-tuple-return": "error";
538
539
  readonly "@sarj/no-production-browser-source-maps": "error";
539
540
  readonly "@sarj/no-repeated-string-literal": "error";
541
+ readonly "@sarj/no-redundant-optional-array-default": "warn";
540
542
  readonly "@sarj/no-router-refresh-polling": "error";
541
543
  readonly "@sarj/no-restated-comment": "warn";
542
544
  readonly "@sarj/no-restated-jsdoc": "warn";
@@ -821,6 +823,7 @@ declare const STRICT_RULES: {
821
823
  readonly "@sarj/no-raw-env": "error";
822
824
  readonly "@sarj/no-raw-fetch-outside-clients": "error";
823
825
  readonly "@sarj/no-repeated-string-literal": "error";
826
+ readonly "@sarj/no-redundant-optional-array-default": "warn";
824
827
  readonly "@sarj/no-router-refresh-polling": "error";
825
828
  readonly "@sarj/no-restated-comment": "warn";
826
829
  readonly "@sarj/no-restated-jsdoc": "warn";
@@ -896,7 +899,7 @@ type FlatPreset = {
896
899
  declare const PLUGIN: {
897
900
  readonly meta: {
898
901
  readonly name: "@sarj/eslint-plugin";
899
- readonly version: "15.17.13";
902
+ readonly version: "15.17.14";
900
903
  };
901
904
  readonly rules: {
902
905
  readonly "excessive-commentary": DocumentedRule<readonly [], "excessive">;
@@ -921,6 +924,7 @@ declare const PLUGIN: {
921
924
  readonly "no-insecure-random-id": DocumentedRule<readonly [], "insecureRandomId">;
922
925
  readonly "no-json-stringify-error": DocumentedRule<readonly [], "noJsonStringifyError">;
923
926
  readonly "no-impossible-zod-literal-bounds": DocumentedRule<readonly [], "impossibleBounds">;
927
+ readonly "no-redundant-optional-array-default": DocumentedRule<readonly [], "redundantOptionalArrayDefault">;
924
928
  readonly "interface-contract-members-private": DocumentedRule<readonly [], "nonContractMemberMustBePrivate">;
925
929
  readonly "no-log-only-catch": DocumentedRule<readonly [LoggingOptions?], "noLogOnlyCatch" | "emptyCatch">;
926
930
  readonly "no-bare-return-from-test-catch": DocumentedRule<readonly [], "bareReturnFromTestCatch">;