-
-
Notifications
You must be signed in to change notification settings - Fork 669
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
Supports for <script setup> and <style> variable injection #1248
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
As you can see from the fact that this issue has not been resolved, eslint-plugin-vue does not yet support |
The RFC has been finalized and we should start working on this! |
I started working on it 😉 |
As far as I know, I think I have done the work needed to support If you have any issues related to these, and new rule suggestions, please open a new issue. |
eslint-plugin-vue should be change to support <script setup> and <style> variable injection.
I will list the work needed to support these on this issue.
These features were released as experimental features in Vue.js 3.0.
So I think that the inclusion or not of the changes listed here will not affect the release of eslint-plugin-vue 7.0.0.
Core
Change the parser to parse<style vars="...">
. (issue Supports for <script setup> and <style> variable injection vue-eslint-parser#78)Change the parser to parse<script setup="...">
. (issue Supports for <script setup> and <style> variable injection vue-eslint-parser#78)Rules
vue/valid-define-props
rule #1560Add.no-refer-vars-script-setup-define-props
rule that disallows referencing variables indefineProps()
of<script setup>
vue/valid-define-emits
rule #1561Add.no-refer-vars-script-setup-define-emit
rule that disallows referencing variables indefineEmit()
of<script setup>
vue/no-export-in-script-setup
rule #1559 Addno-export-in-script-setup
rule that disallows ES export in<script setup>
.Change.no-parsing-error
rule to reports parsing errors in<script setup="...">
Change.no-parsing-error
rule to reports parsing errors in<style vars="...">
Addvalid-script-setup
rule that checks whether<script setup="...">
is valid arguments.Addvalid-style-vars
rule that checks whether<style vars="...">
is valid expression.Addno-vars-setup-export-default
rule that disallows referencing variables inexport default
of<script setup>
.vuejs/rfcs#227
https://github.com/vuejs/rfcs/blob/script-setup-2/active-rfcs/0000-script-setup.md
vuejs/rfcs#231
https://github.com/vuejs/rfcs/blob/style-vars-2/active-rfcs/0000-sfc-style-variables.md
https://github.com/vuejs/rfcs/blob/sfc-improvements/active-rfcs/0000-sfc-script-setup.mdhttps://github.com/vuejs/rfcs/blob/sfc-improvements/active-rfcs/0000-sfc-style-variables.mdThe text was updated successfully, but these errors were encountered: