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

eslint: disable "no-negated-condition" rule #14

Merged
merged 1 commit into from
Mar 17, 2018

Conversation

davidchambers
Copy link
Member

As the contrived example demonstrates, negating a condition can reduce nesting. I agree with much of the Zen of Python, including this principle:

$ python -c 'import this' | grep nest
Flat is better than nested.

@davidchambers davidchambers merged commit 30308db into master Mar 17, 2018
@davidchambers davidchambers deleted the davidchambers/eslint branch March 17, 2018 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant