-
-
Notifications
You must be signed in to change notification settings - Fork 681
vue/prefer-template
tries to apply to style scoped
#2712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
|
I tried reproducing the error in the playground but it always reports |
Thank you for letting me know, I fixed the playground 😉 |
@sky0matic This seems more like a usage issue, rather than a auto-fix bug in the rule.
|
What rule do you want to change?
vue/prefer-template
Does this change cause the rule to produce more or fewer warnings?
Fewer
How will the change be implemented? (New option, new default behavior, etc.)?
The rule doesn't check for
style scoped
or there's a way to disable it on a per-line basis.Please provide some example code that this change will affect:
What does the rule currently do for this code?
It want us to replace
someWidth + 'px'
with :and this is not valid CSS handled by the IDE (VSCode in this case) so it shows another error.
What will the rule do after it's changed?
Either :
style scoped
eslint-disable-next-line
properly.Additional context
The only way we are able to skip this issue entirely for now is to create a new computed which does :
which makes us need to maintain yet another
computed
which we would prefer to avoid.The text was updated successfully, but these errors were encountered: