Skip to content

Commit 514c724

Browse files
committed
docs(linter): Fix the name of the IIFEs config option in eslint/max-lines-per-function (#16554)
This option name was not cased correctly in the docs previously. ```md ## Configuration This rule accepts a configuration object with the following properties: ### IIFEs type: `boolean` default: `false` The `IIFEs` option controls whether IIFEs are included in the line count. By default, IIFEs are not considered, but when set to `true`, they will be included in the line count for the function. ### max type: `integer` default: `50` Maximum number of lines allowed in a function. ### skipBlankLines type: `boolean` default: `false` Skip lines made up purely of whitespace. ### skipComments type: `boolean` default: `false` Skip lines containing just comments. ```
1 parent 8eb6aeb commit 514c724

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ pub struct MaxLinesPerFunctionConfig {
4141
/// The `IIFEs` option controls whether IIFEs are included in the line count.
4242
/// By default, IIFEs are not considered, but when set to `true`, they will
4343
/// be included in the line count for the function.
44+
#[serde(rename = "IIFEs")]
4445
iifes: bool,
4546
}
4647

0 commit comments

Comments
 (0)