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
feat(eslint-plugin): [no-unnecessary-condition] remove checkArrayPredicates
and always check it
#1579
feat(eslint-plugin): [no-unnecessary-condition] remove checkArrayPredicates
and always check it
#1579
Conversation
Thanks for the PR, @Retsam! typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community. The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately. Thanks again! |
ccedabf
to
59f0736
Compare
Codecov Report
@@ Coverage Diff @@
## v3 #1579 +/- ##
=======================================
Coverage 93.63% 93.63%
=======================================
Files 169 169
Lines 7667 7667
Branches 2190 2190
=======================================
Hits 7179 7179
Misses 229 229
Partials 259 259
|
59f0736
to
9040423
Compare
# Conflicts: # packages/eslint-plugin/src/rules/no-unnecessary-condition.ts # packages/eslint-plugin/tests/rules/no-unnecessary-condition.test.ts
checkArrayPredicates
and always check it
…dicates` and always check it (#1579)
…dicates` and always check it (#1579)
…dicates` and always check it (#1579)
…dicates` and always check it (#1579)
BREAKING CHANGE:
This removes the
checkArrayPredicates
option, and enables it as the default behavior of the rule. I think this makes sense as default, non-configurable behavior: I don't really see a case where you wouldn't want the unnecessary condition logic to apply to array predicates which function as conditionals.