flatTernaryExpressions does not work reliably #9285
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
archived due to age
This issue has been archived; please open a new issue for any further discussion
bug
ESLint is working incorrectly
indent
Relates to the `indent` rule
rule
Relates to ESLint's core rules
Tell us about your environment
What parser (default, Babel-ESLint, etc.) are you using? default
Please show your full configuration:
Configuration
What did you do? Please include the actual source code causing the issue.
Available here: https://github.com/chartjs/Chart.js/blob/master/src/core/core.scale.js#L595
What did you expect to happen?
I expect it to pass because I have
flatTernaryExpressions: true
in my.eslintrc
What actually happened? Please include the actual, raw output from ESLint.
It only passes if I wrap the code in parentheses:
The text was updated successfully, but these errors were encountered: