Skip to content

Commit

Permalink
Docs: Clarify line breaks in object-curly-newline (refs #14024)
Browse files Browse the repository at this point in the history
  • Loading branch information
arminyahya committed Mar 12, 2021
1 parent 672ee29 commit a7022c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/rules/object-curly-newline.md
Expand Up @@ -4,14 +4,14 @@ A number of style guides require or disallow line breaks inside of object braces

## Rule Details

This rule enforces consistent line breaks after opening and before closing braces of object literals or destructuring assignments.
More precisely, the rule requires or disallows a line break between { and its following token, and between } and its preceding token of object literals or destructuring assignments.

## Options

This rule has either a string option:

* `"always"` requires line breaks inside braces
* `"never"` disallows line breaks inside braces
* `"always"` requires line breaks after opening and before closing braces
* `"never"` disallows line breaks after opening and before closing braces

Or an object option:

Expand Down
2 changes: 1 addition & 1 deletion lib/rules/object-curly-newline.js
Expand Up @@ -134,7 +134,7 @@ module.exports = {
type: "layout",

docs: {
description: "enforce consistent line breaks inside braces",
description: "enforce consistent line breaks after opening and before closing braces",
category: "Stylistic Issues",
recommended: false,
url: "https://eslint.org/docs/rules/object-curly-newline"
Expand Down

0 comments on commit a7022c6

Please sign in to comment.