Disallow nested ternary expressions
Nesting ternary expressions can make code more difficult to understand.
The no-nested-ternary
rule disallows nested ternary expressions.
Examples of incorrect code for this rule:
Examples of correct code for this rule:
This rule was introduced in ESLint v0.2.0.
© OpenJS Foundation and other contributors
Licensed under the MIT License.
https://eslint.org/docs/latest/rules/no-nested-ternary