Skip to content

Commit

Permalink
Docs: Clarify line breaks in object-curly-newline (refs eslint#14024)
Browse files Browse the repository at this point in the history
  • Loading branch information
arminyahya committed Mar 12, 2021
1 parent 3a432d8 commit 672ee29
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/rules/object-curly-newline.md
@@ -1,10 +1,10 @@
# enforce consistent line breaks inside braces (object-curly-newline)
# enforce consistent line breaks after opening and before closing braces (object-curly-newline)

A number of style guides require or disallow line breaks inside of object braces and other tokens.

## Rule Details

This rule enforces consistent line breaks inside braces of object literals or destructuring assignments.
This rule enforces consistent line breaks after opening and before closing braces of object literals or destructuring assignments.

## Options

Expand Down Expand Up @@ -538,7 +538,7 @@ export { foo as f, bar } from 'foo-bar';

## When Not To Use It

If you don't want to enforce consistent line breaks inside braces, then it's safe to disable this rule.
If you don't want to enforce consistent line breaks after opening and before closing braces, then it's safe to disable this rule.

## Related Rules

Expand Down

0 comments on commit 672ee29

Please sign in to comment.