Skip to content

Support <script setup> and SFC css var injection for Vue 2.7.0+ in no-unsupported-features rule #1916

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

Closed
danielwaltz opened this issue Jun 20, 2022 · 0 comments · Fixed by #1917

Comments

@danielwaltz
Copy link
Contributor

danielwaltz commented Jun 20, 2022

What rule do you want to change?
no-unsupported-features

Does this change cause the rule to produce more or fewer warnings?
Fewer warnings, as <script setup> and CSS var injection are both supported features in Vue >=2.7.0

How will the change be implemented? (New option, new default behavior, etc.)?
I plan to update the rule to include <script setup> and CSS var injection as part of the >=2.7.0 version.

Please provide some example code that this change will affect:

<script setup>
</script>

What does the rule currently do for this code?
Displays an error/warning with a { version: '2.7.0' } rule option set

What will the rule do after it's changed?
Will pass with a { version: '2.7.0' } rule option set

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants