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

Lines changed: 24 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy