@storm-software/eslint 0.170.169 → 0.170.171

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
@@ -3566,7 +3566,7 @@ Backward pagination arguments
3566
3566
  * Disallow unmodified loop conditions
3567
3567
  * @see https://eslint.org/docs/latest/rules/no-unmodified-loop-condition
3568
3568
  */
3569
- 'no-unmodified-loop-condition'?: Linter.RuleEntry<[]>;
3569
+ 'no-unmodified-loop-condition'?: Linter.RuleEntry<NoUnmodifiedLoopCondition>;
3570
3570
  /**
3571
3571
  * Disallow ternary operators when simpler alternatives exist
3572
3572
  * @see https://eslint.org/docs/latest/rules/no-unneeded-ternary
@@ -4546,7 +4546,7 @@ Backward pagination arguments
4546
4546
  */
4547
4547
  'react/globals'?: Linter.RuleEntry<[]>;
4548
4548
  /**
4549
- * Validates against passing functions that mutate captured local variables into frozen contexts such as JSX props, hook arguments, and hook return values.
4549
+ * Validates against mutating props, state, and other immutable values, including through functions passed into frozen contexts such as JSX props, hook arguments, and hook return values.
4550
4550
  * @see https://eslint-react.xyz/docs/rules/immutability
4551
4551
  */
4552
4552
  'react/immutability'?: Linter.RuleEntry<[]>;
@@ -11220,6 +11220,10 @@ type NoUnderscoreDangle = [] | [{
11220
11220
  allowInArrayDestructuring?: boolean;
11221
11221
  allowInObjectDestructuring?: boolean;
11222
11222
  }];
11223
+ // ----- no-unmodified-loop-condition -----
11224
+ type NoUnmodifiedLoopCondition = [] | [{
11225
+ checkConditionalExpressions?: boolean;
11226
+ }];
11223
11227
  // ----- no-unneeded-ternary -----
11224
11228
  type NoUnneededTernary = [] | [{
11225
11229
  defaultAssignment?: boolean;
@@ -15878,7 +15882,9 @@ type TsNoMeaninglessVoidOperator = [] | [{
15878
15882
  }];
15879
15883
  // ----- ts/no-misused-promises -----
15880
15884
  type TsNoMisusedPromises = [] | [{
15881
- checksConditionals?: boolean;
15885
+ checksConditionals?: (boolean | {
15886
+ flagUnions?: ("all" | "strict" | "none");
15887
+ });
15882
15888
  checksSpreads?: boolean;
15883
15889
  checksVoidReturn?: (boolean | {
15884
15890
  arguments?: boolean;
package/dist/index.d.mts CHANGED
@@ -3566,7 +3566,7 @@ Backward pagination arguments
3566
3566
  * Disallow unmodified loop conditions
3567
3567
  * @see https://eslint.org/docs/latest/rules/no-unmodified-loop-condition
3568
3568
  */
3569
- 'no-unmodified-loop-condition'?: Linter.RuleEntry<[]>;
3569
+ 'no-unmodified-loop-condition'?: Linter.RuleEntry<NoUnmodifiedLoopCondition>;
3570
3570
  /**
3571
3571
  * Disallow ternary operators when simpler alternatives exist
3572
3572
  * @see https://eslint.org/docs/latest/rules/no-unneeded-ternary
@@ -4546,7 +4546,7 @@ Backward pagination arguments
4546
4546
  */
4547
4547
  'react/globals'?: Linter.RuleEntry<[]>;
4548
4548
  /**
4549
- * Validates against passing functions that mutate captured local variables into frozen contexts such as JSX props, hook arguments, and hook return values.
4549
+ * Validates against mutating props, state, and other immutable values, including through functions passed into frozen contexts such as JSX props, hook arguments, and hook return values.
4550
4550
  * @see https://eslint-react.xyz/docs/rules/immutability
4551
4551
  */
4552
4552
  'react/immutability'?: Linter.RuleEntry<[]>;
@@ -11220,6 +11220,10 @@ type NoUnderscoreDangle = [] | [{
11220
11220
  allowInArrayDestructuring?: boolean;
11221
11221
  allowInObjectDestructuring?: boolean;
11222
11222
  }];
11223
+ // ----- no-unmodified-loop-condition -----
11224
+ type NoUnmodifiedLoopCondition = [] | [{
11225
+ checkConditionalExpressions?: boolean;
11226
+ }];
11223
11227
  // ----- no-unneeded-ternary -----
11224
11228
  type NoUnneededTernary = [] | [{
11225
11229
  defaultAssignment?: boolean;
@@ -15878,7 +15882,9 @@ type TsNoMeaninglessVoidOperator = [] | [{
15878
15882
  }];
15879
15883
  // ----- ts/no-misused-promises -----
15880
15884
  type TsNoMisusedPromises = [] | [{
15881
- checksConditionals?: boolean;
15885
+ checksConditionals?: (boolean | {
15886
+ flagUnions?: ("all" | "strict" | "none");
15887
+ });
15882
15888
  checksSpreads?: boolean;
15883
15889
  checksVoidReturn?: (boolean | {
15884
15890
  arguments?: boolean;