Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update: Improve no-extra-parens error message (#10748)
When I encountered this error, it was not unclear to me what the problem was or what alternative would be preferred. The input was: ```js return ( { foo: 1, bar: 2 }[ key ] || 0 ); ``` Receiving the following in Atom's footer: ``` eslint (0|4), Gratuitous parentheses around expression., Line 165, Column 17 ``` Using the phrase "Unnecessary" instead, which also matches the error message used by other ESLint rules.
- Loading branch information