@sarj/eslint-plugin 18.0.4 → 18.1.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.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { D as DocumentedRule } from './_docs-CzrWp3w7.cjs';
2
- export { p as publicDocumentation } from './_docs-CzrWp3w7.cjs';
1
+ import { D as DocumentedRule } from './_docs-d31-QA2S.cjs';
2
+ export { p as publicDocumentation } from './_docs-d31-QA2S.cjs';
3
3
  import '@typescript-eslint/utils';
4
4
  import 'eslint';
5
5
  import '@eslint/core';
@@ -128,6 +128,7 @@ interface RetiredRule {
128
128
  declare const RETIRED_RULES: Readonly<Record<string, RetiredRule>>;
129
129
 
130
130
  declare const RULES: {
131
+ readonly "no-growing-array-spread-in-loop": DocumentedRule<[], "copy">;
131
132
  readonly "no-logical-or-fallback": DocumentedRule<[], "logicalOrFallback">;
132
133
  readonly "no-zod-parse-typed-object": DocumentedRule<[], "typedObject">;
133
134
  readonly "prefer-server-data-preparation": DocumentedRule<readonly [], "prepareData">;
@@ -163,7 +164,7 @@ declare const RULES: {
163
164
  readonly "prefer-typed-reflection": DocumentedRule<[], "avoid">;
164
165
  readonly "no-broad-return-type": DocumentedRule<[], "avoid">;
165
166
  readonly "no-reduce-accumulator-copy": DocumentedRule<[], "copy">;
166
- readonly "no-known-value-widening": DocumentedRule<[], "widening">;
167
+ readonly "no-known-value-widening": DocumentedRule<[], "widening" | "registry">;
167
168
  readonly "no-invalid-typed-mutation": DocumentedRule<readonly [], "incompatibleWrite">;
168
169
  readonly "no-contradictory-type-predicate": DocumentedRule<readonly [], "contradictoryPredicate" | "closedLiteralPredicate" | "nullAccepted" | "uncheckedArrayElements" | "uncheckedRecordFields">;
169
170
  readonly "no-partial-type-predicate": DocumentedRule<readonly [], "partialPredicate">;
@@ -350,6 +351,7 @@ declare const RULE_POLICY: {
350
351
  readonly "@sarj/prefer-typed-reflection": readonly ["error", "both"];
351
352
  readonly "@sarj/no-broad-return-type": readonly ["error", "both"];
352
353
  readonly "@sarj/no-reduce-accumulator-copy": readonly ["error", "both"];
354
+ readonly "@sarj/no-growing-array-spread-in-loop": readonly ["warn", "both"];
353
355
  readonly "@sarj/no-known-value-widening": readonly ["error", "both"];
354
356
  readonly "@sarj/no-runtime-typeof": readonly ["error", "both"];
355
357
  readonly "@sarj/no-invalid-typed-mutation": readonly ["error", "both"];
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { D as DocumentedRule } from './_docs-CzrWp3w7.js';
2
- export { p as publicDocumentation } from './_docs-CzrWp3w7.js';
1
+ import { D as DocumentedRule } from './_docs-d31-QA2S.js';
2
+ export { p as publicDocumentation } from './_docs-d31-QA2S.js';
3
3
  import '@typescript-eslint/utils';
4
4
  import 'eslint';
5
5
  import '@eslint/core';
@@ -128,6 +128,7 @@ interface RetiredRule {
128
128
  declare const RETIRED_RULES: Readonly<Record<string, RetiredRule>>;
129
129
 
130
130
  declare const RULES: {
131
+ readonly "no-growing-array-spread-in-loop": DocumentedRule<[], "copy">;
131
132
  readonly "no-logical-or-fallback": DocumentedRule<[], "logicalOrFallback">;
132
133
  readonly "no-zod-parse-typed-object": DocumentedRule<[], "typedObject">;
133
134
  readonly "prefer-server-data-preparation": DocumentedRule<readonly [], "prepareData">;
@@ -163,7 +164,7 @@ declare const RULES: {
163
164
  readonly "prefer-typed-reflection": DocumentedRule<[], "avoid">;
164
165
  readonly "no-broad-return-type": DocumentedRule<[], "avoid">;
165
166
  readonly "no-reduce-accumulator-copy": DocumentedRule<[], "copy">;
166
- readonly "no-known-value-widening": DocumentedRule<[], "widening">;
167
+ readonly "no-known-value-widening": DocumentedRule<[], "widening" | "registry">;
167
168
  readonly "no-invalid-typed-mutation": DocumentedRule<readonly [], "incompatibleWrite">;
168
169
  readonly "no-contradictory-type-predicate": DocumentedRule<readonly [], "contradictoryPredicate" | "closedLiteralPredicate" | "nullAccepted" | "uncheckedArrayElements" | "uncheckedRecordFields">;
169
170
  readonly "no-partial-type-predicate": DocumentedRule<readonly [], "partialPredicate">;
@@ -350,6 +351,7 @@ declare const RULE_POLICY: {
350
351
  readonly "@sarj/prefer-typed-reflection": readonly ["error", "both"];
351
352
  readonly "@sarj/no-broad-return-type": readonly ["error", "both"];
352
353
  readonly "@sarj/no-reduce-accumulator-copy": readonly ["error", "both"];
354
+ readonly "@sarj/no-growing-array-spread-in-loop": readonly ["warn", "both"];
353
355
  readonly "@sarj/no-known-value-widening": readonly ["error", "both"];
354
356
  readonly "@sarj/no-runtime-typeof": readonly ["error", "both"];
355
357
  readonly "@sarj/no-invalid-typed-mutation": readonly ["error", "both"];