Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Docs: improve no-extra-parens formatting (#9747)
The doc lists two exceptions in a bulleted list and then adds a third
exception in prose. Move the prose to the bulleted list so it has three
items.
  • Loading branch information
Trott authored and platinumazure committed Dec 21, 2017
1 parent 37d066c commit e9d5dfd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/rules/no-extra-parens.md
Expand Up @@ -8,8 +8,7 @@ This rule always ignores extra parentheses around the following:

* RegExp literals such as `(/abc/).test(var)` to avoid conflicts with the [wrap-regex](wrap-regex.md) rule
* immediately-invoked function expressions (also known as IIFEs) such as `var x = (function () {})();` and `((function foo() {return 1;})())` to avoid conflicts with the [wrap-iife](wrap-iife.md) rule

In addition, this rule ignores parentheses around arrow function arguments to avoid conflicts with the [arrow-parens](arrow-parens.md) rule.
* arrow function arguments to avoid conflicts with the [arrow-parens](arrow-parens.md) rule

## Options

Expand Down

0 comments on commit e9d5dfd

Please sign in to comment.