multiline-ternary "never" allows multiline ternaries #13368
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
documentation
Relates to ESLint's documentation
rule
Relates to ESLint's core rules
Tell us about your environment
What parser (default, Babel-ESLint, etc.) are you using?
Please show your full configuration:
Configuration
What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.
Online Demo
What did you expect to happen?
Given the documentation:
This should be an error because the entire ternary expression is not on one line?
What actually happened? Please include the actual, raw output from ESLint.
No errors.
Are you willing to submit a pull request to fix this bug?
By #6751 it looks like this option should really enforce that the entire ternary expression is on one line, but it doesn't work like that from the start, so maybe we should just update the docs to reflect the actual behavior?
The text was updated successfully, but these errors were encountered: