-
-
Notifications
You must be signed in to change notification settings - Fork 934
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
infra(unicorn): prefer-ternary #2464
Conversation
This is probably one of the more controversial rules. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## next #2464 +/- ##
=======================================
Coverage 99.58% 99.59%
=======================================
Files 2823 2823
Lines 255520 255503 -17
Branches 1101 1105 +4
=======================================
- Hits 254464 254463 -1
+ Misses 1028 1012 -16
Partials 28 28
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Disagree. Long ternaries are ugly and hard to read.
@matthewmayer Are there any changes that improve readability for you or would you like to revert them all? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Team Decision
We will permanently disable the rule.
Ready for review. |
Ref: #2439
Permanently disables the
unicorn/prefer-ternary
lint rule.