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

fix(eslint-plugin): [no-magic-numbers] handle UnaryExpression for enums #1415

Merged
merged 1 commit into from Jan 8, 2020

Commits on Jan 8, 2020

  1. fix(eslint-plugin): [no-magic-numbers] handle UnaryExpression for enums

    Fixes #1414
    
    Also fixes a consistency issue wherein our extension would include the `+` when reporting, but the base rule doesn't.
    Also reformatted the code a bit:
    - moved utility functions outside of create
    - used optional chaining
    bradzacher committed Jan 8, 2020
    Copy the full SHA
    cf42fe2 View commit details
    Browse the repository at this point in the history