-
-
Couldn't load subscription status.
- Fork 695
Description
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 multiple <script> blocks. (issue Supports for <script setup> and <style> variable injection vue-eslint-parser#78)
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)- more
Rules
- Add
vue/valid-define-propsrule #1560Add.no-refer-vars-script-setup-define-propsrule that disallows referencing variables indefineProps()of<script setup> - Add
vue/valid-define-emitsrule #1561Add.no-refer-vars-script-setup-define-emitrule that disallows referencing variables indefineEmit()of<script setup> - Add
vue/no-export-in-script-setuprule #1559 Addno-export-in-script-setuprule that disallows ES export in<script setup>. Change.no-parsing-errorrule to reports parsing errors in<script setup="...">Change.no-parsing-errorrule to reports parsing errors in<style vars="...">Addvalid-script-setuprule that checks whether<script setup="...">is valid arguments.Addvalid-style-varsrule that checks whether<style vars="...">is valid expression.Addno-vars-setup-export-defaultrule that disallows referencing variables inexport defaultof<script setup>.- more
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.md
https://github.com/vuejs/rfcs/blob/sfc-improvements/active-rfcs/0000-sfc-style-variables.md