eslint mulitline-ternary rule not fixing errors

Viewed 794

I am one of those who prefers to have ternary expressions span multiple lines for readability. However, my current set-up is not fixing it as expected.

eslint v7.17.0

Here is the relevant part of my .eslintrc.js:

 rules: {
    'multiline-ternary': 'error',
    'operator-linebreak': ['error', 'after', { overrides: { '?': 'before', ':': 'before' } }],
 },
 ...

Both rules are fixable according to the docs:

operator-linebreak with wrench multiline-ternary with wrench

My npm lint script is eslint --fix --ext .js,.vue --ignore-path .gitignore .

However, I'm getting this in my console:

console errors

Why is it telling me that it is potentially fixable without fixing it?

0 Answers
Related