Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions crates/oxc_linter/src/rules/eslint/curly.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,12 @@ declare_oxc_lint!(
/// }
/// ```
///
/// #### `{ "consistent": true }`
/// #### `"consistent"`
///
/// When enabled, `consistent: true` enforces consistent use of braces within an `if-else` chain.
/// When enabled, `"consistent"` enforces consistent use of braces within an `if-else` chain.
/// If one branch of the chain uses braces, then all branches must use braces, even if not strictly required by the first option.
///
/// Examples of **incorrect** code with `"multi"` and `consistent: true`:
/// Examples of **incorrect** code with `"multi"` and `"consistent"`:
/// ```js
/// /* curly: ["error", "multi", "consistent"] */
///
Expand All @@ -199,7 +199,7 @@ declare_oxc_lint!(
/// }
/// ```
///
/// Examples of **correct** code with `"multi"` and `consistent: true`:
/// Examples of **correct** code with `"multi"` and `"consistent"`:
/// ```js
/// /* curly: ["error", "multi", "consistent"] */
///
Expand All @@ -218,7 +218,7 @@ declare_oxc_lint!(
/// }
/// ```
///
/// Examples of **incorrect** code with `"multi-line"` and `consistent: true`:
/// Examples of **incorrect** code with `"multi-line"` and `"consistent"`:
/// ```js
/// /* curly: ["error", "multi-line", "consistent"] */
///
Expand All @@ -228,7 +228,7 @@ declare_oxc_lint!(
/// baz();
/// ```
///
/// Examples of **correct** code with `"multi-line"` and `consistent: true`:
/// Examples of **correct** code with `"multi-line"` and `"consistent"`:
/// ```js
/// /* curly: ["error", "multi-line", "consistent"] */
///
Expand All @@ -239,7 +239,7 @@ declare_oxc_lint!(
/// }
/// ```
///
/// Examples of **incorrect** code with `"multi-or-nest"` and `consistent: true`:
/// Examples of **incorrect** code with `"multi-or-nest"` and `"consistent"`:
/// ```js
/// /* curly: ["error", "multi-or-nest", "consistent"] */
///
Expand All @@ -248,7 +248,7 @@ declare_oxc_lint!(
/// } else qux();
/// ```
///
/// Examples of **correct** code with `"multi-or-nest"` and `consistent: true`:
/// Examples of **correct** code with `"multi-or-nest"` and `"consistent"`:
/// ```js
/// /* curly: ["error", "multi-or-nest", "consistent"] */
///
Expand Down
Loading