DEV Community

Discussion on: Avoid use IF on our JS scripts

damxipo profile image
Damian Cipolat Author

It's the problem you are letting the lint tell you how you have to program. eslint can be configured by activating and deactivating rules to suit each one.

blindfish3 profile image
Ben Calder

Q. Who wrote the linter rules?
A. People with enough experience to know that nested ternaries are really difficult for a human to parse quickly and therefore make code difficult to work with.