Skip to content

Commit 4d94438

Browse files
docs(linter/rules): correct arrow body style options in documentation (#16509)
Comment fix (https://eslint.org/docs/latest/rules/arrow-body-style) --------- Signed-off-by: GRK <gauravrkochar@gmail.com> Co-authored-by: Connor Shea <connor.james.shea@gmail.com>
1 parent 2fcc079 commit 4d94438

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ declare_oxc_lint!(
6565
/// First option:
6666
/// - Type: `string`
6767
/// - Enum: `"always"`, `"as-needed"`, `"never"`
68-
/// - Default: `"never"`
68+
/// - Default: `"as-needed"`
6969
///
7070
/// Possible values:
71-
/// * `never` enforces no braces where they can be omitted (default)
71+
/// * `never` enforces no braces around the function body (constrains arrow functions to the role of returning an expression)
7272
/// * `always` enforces braces around the function body
73-
/// * `as-needed` enforces no braces around the function body (constrains arrow functions to the role of returning an expression)
73+
/// * `as-needed` enforces no braces where they can be omitted (default)
7474
///
7575
/// Second option:
7676
/// - Type: `object`

0 commit comments

Comments
 (0)