Skip to content
Permalink
Browse files

Docs: Example fix for `no-extra-parens` rule (fixes #3527)

  • Loading branch information...
gyandeeps committed Dec 28, 2015
1 parent e8939e4 commit fd72aba7ba704583e0eb1c075d203ff725cb0fa4
Showing with 3 additions and 1 deletion.
  1. +3 −1 docs/rules/no-extra-parens.md
@@ -23,6 +23,8 @@ a = (b * c); /*error Gratuitous parentheses around expression.*/
(a * b) + c; /*error Gratuitous parentheses around expression.*/
typeof (a); /*error Gratuitous parentheses around expression.*/
(function(){} ? a() : b()); /*error Gratuitous parentheses around expression.*/
```

The following patterns are not considered problems:
@@ -34,7 +36,7 @@ The following patterns are not considered problems:
({}.toString.call());
(function(){} ? a() : b())
(function(){}) ? a() : b();
(/^a$/).test(x);
```

0 comments on commit fd72aba

Please sign in to comment.
You can’t perform that action at this time.