sindresorhus/eslint-plugin-unicorn
`no-nested-ternary` does not autofix nested ternary
Chiusa
#2008 aperta il 7 dic 2022
docshelp wantedwontfix
Metriche repository
- Star
- (5022 stelle)
- Metriche merge PR
- (Merge medio 1g 16h) (399 PR mergiate in 30 g)
Descrizione
var cellText = isYear
? i
: isMonth
? settings.text.monthsShort[i]
: isDay
? cellDate.getDate()
: module.helper.dateFormat(formatter.cellTime, cellDate);
When the rule can autofix ternary (add parenthesis around), I would expect it to fix any level of nesting.
Currently it seems it can autofix only 2 nested ternary operators.