Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update: Improve no-extra-parens error message #10748

Merged
merged 1 commit into from
Aug 11, 2018

Commits on Aug 9, 2018

  1. Update: Improve no-extra-parens error message

    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.
    Krinkle committed Aug 9, 2018
    Configuration menu
    Copy the full SHA
    f3bdf25 View commit details
    Browse the repository at this point in the history