Skip to content

Commit aade2fe

Browse files
authored
docs(linter): Add configuration option docs for eslint/no-extra-boolean-cast rule. (#15019)
This was just missing the config definition in the macro. Part of #14743. Generated docs: ```md ## Configuration This rule accepts a configuration object with the following properties: ### enforceForInnerExpressions type: `boolean` default: `false` when set to `true`, in addition to checking default contexts, checks whether extra boolean casts are present in expressions whose result is used in a boolean context. See examples below. Default is `false`, meaning that this rule by default does not warn about extra booleans cast inside inner expressions. ```
1 parent bae0c09 commit aade2fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/oxc_linter/src/rules/eslint/no_extra_boolean_cast.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ declare_oxc_lint!(
7272
NoExtraBooleanCast,
7373
eslint,
7474
correctness,
75-
conditional_fix_or_conditional_suggestion
75+
conditional_fix_or_conditional_suggestion,
76+
config = NoExtraBooleanCast,
7677
);
7778

7879
impl Rule for NoExtraBooleanCast {

0 commit comments

Comments
 (0)