Skip to content

Commit

Permalink
fix: add missing types for no-extra-boolean-cast options (#18902)
Browse files Browse the repository at this point in the history
  • Loading branch information
kripod committed Sep 19, 2024
1 parent e4e02cc commit d715781
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion lib/types/rules/possible-errors.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,30 @@ export interface PossibleErrors extends Linter.RulesRecord {
* @since 0.4.0
* @see https://eslint.org/docs/rules/no-extra-boolean-cast
*/
"no-extra-boolean-cast": Linter.RuleEntry<[]>;
"no-extra-boolean-cast": Linter.RuleEntry<
[
| Partial<{
/**
* @since 9.3.0
* @default false
*/
enforceForInnerExpressions: boolean;
/**
* @deprecated
*/
enforceForLogicalOperands: never;
}>
| Partial<{
/**
* @deprecated
* @since 7.0.0-alpha.2
* @default false
*/
enforceForLogicalOperands: boolean;
enforceForInnerExpressions: never;
}>,
]
>;

/**
* Rule to disallow unnecessary parentheses.
Expand Down

0 comments on commit d715781

Please sign in to comment.