Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSupports for <script setup> and <style vars> #1248
Comments
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Please open a new issue. |
eslint-plugin-vue should be change to support <script setup> and <style vars>.
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
<script setup="...">
. (issue vuejs/vue-eslint-parser#78)<style vars="...">
. (issue vuejs/vue-eslint-parser#78)Rules
no-parsing-error
rule to reports parsing errors in<script setup="...">
.no-parsing-error
rule to reports parsing errors in<style vars="...">
.valid-script-setup
rule that checks whether<script setup="...">
is valid arguments.valid-style-vars
rule that checks whether<style vars="...">
is valid expression.no-vars-setup-export-default
rule that disallows referencing variables inexport default
of<script setup>
.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