Skip to content

Commit

Permalink
Docs: clarify the default behavior of operator-linebreak (fixes #7459
Browse files Browse the repository at this point in the history
…) (#7726)
  • Loading branch information
not-an-aardvark committed Dec 9, 2016
1 parent a8489e2 commit 4742d82
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/rules/operator-linebreak.md
Expand Up @@ -26,14 +26,16 @@ This rule has one option, which can be a string option or an object option.

String option:

* `"after"` (default) requires linebreaks to be placed after the operator (except for the ternary operator characters `?` and `:`)
* `"after"` requires linebreaks to be placed after the operator
* `"before"` requires linebreaks to be placed before the operator
* `"none"` disallows linebreaks on either side of the operator

Object option:

* `"overrides"` overrides the global setting for specified operators

The default configuration is `"after", { "overrides": { "?": "before", ":": "before" } }`

### after

Examples of **incorrect** code for this rule with the default `"after"` option:
Expand Down

0 comments on commit 4742d82

Please sign in to comment.