You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wasn't sure if this was a bug report or rule change, so posting here (didn't see a Discussion section in this repo).
The problem you want to solve.
I have 'no-multi-spaces': [ 'warn', { ignoreEOLComments: true }] in my general eslint config, which allows multiple spaces for comments:
constmeaning=42;// obviously
But when using JS inside Vue templates, this rule isn't respected:
<div
:class="{'is-good': isGood(thing) // hopefully }"
>
Warning: Multiple spaces found before '// hopefully'.
Your take on the correct solution to problem.
It would be ideal if vue/no-multi-spaces were able to use the global setting and ignore comments in this case. Alternatively, could vue/no-multi-spaces support the same ignoreEOLComments option?
Additional context
I tried using the ignoreProperties option, but that only appears to consider spaces after the property name up to the ':'
The text was updated successfully, but these errors were encountered:
I wasn't sure if this was a bug report or rule change, so posting here (didn't see a Discussion section in this repo).
The problem you want to solve.
I have
'no-multi-spaces': [ 'warn', { ignoreEOLComments: true }]
in my general eslint config, which allows multiple spaces for comments:But when using JS inside Vue templates, this rule isn't respected:
Your take on the correct solution to problem.
It would be ideal if
vue/no-multi-spaces
were able to use the global setting and ignore comments in this case. Alternatively, couldvue/no-multi-spaces
support the sameignoreEOLComments
option?Additional context
I tried using the
ignoreProperties
option, but that only appears to consider spaces after the property name up to the ':
'The text was updated successfully, but these errors were encountered: