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.
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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
ESLint discourages the use of nested ternary conditions.
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.
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.