Skip to content

Commit d715781

Browse files
authored
fix: add missing types for no-extra-boolean-cast options (#18902)
1 parent e4e02cc commit d715781

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

lib/types/rules/possible-errors.d.ts

+24-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,30 @@ export interface PossibleErrors extends Linter.RulesRecord {
251251
* @since 0.4.0
252252
* @see https://eslint.org/docs/rules/no-extra-boolean-cast
253253
*/
254-
"no-extra-boolean-cast": Linter.RuleEntry<[]>;
254+
"no-extra-boolean-cast": Linter.RuleEntry<
255+
[
256+
| Partial<{
257+
/**
258+
* @since 9.3.0
259+
* @default false
260+
*/
261+
enforceForInnerExpressions: boolean;
262+
/**
263+
* @deprecated
264+
*/
265+
enforceForLogicalOperands: never;
266+
}>
267+
| Partial<{
268+
/**
269+
* @deprecated
270+
* @since 7.0.0-alpha.2
271+
* @default false
272+
*/
273+
enforceForLogicalOperands: boolean;
274+
enforceForInnerExpressions: never;
275+
}>,
276+
]
277+
>;
255278

256279
/**
257280
* Rule to disallow unnecessary parentheses.

0 commit comments

Comments
 (0)