Comments (3)
Thanks for bringing up this issue
However, if you do not use nested ternary, you shouldn't have the problem with the extra parentheses anyway, should you?
IOW: I think this is fine the way it is, because if you stick to the rule you don't have any problems, but if you do, inconsistent things may happen, but then you decided to break the rules anyway.
Having said that, @davelosert, would you still consider this to be an issue?
from eslint-config-es.
I agree with @goloroden here - if you want the nested ternaries, you can disable the eslint rules to achieve your goal, which is - as you, @davelosert, said yourself - not desirable in itself, because nested ternary.
Can we close this @davelosert?
from eslint-config-es.
The issue is that it is hard to work around this if you want to break the rules once.
But sure, I understand your point and so I'm closing this issue.
from eslint-config-es.
Related Issues (9)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eslint-config-es.