Supports for <script setup> and <style> variable injection
See original GitHub issueVue.js 3.0 is about to include <script setup> and <style vars> as experimental features. (refer to https://github.com/vuejs/rfcs/issues/189)
It seems that can write script like function arguments in <script setup="...">
and script like object expression in <style vars="...">
.
Can vue-eslint-parser be changed to support these parsers?
If the parser supports these parses then, I have one more question to ask.
Perhaps the arguments given to <script setup> will need to be registered with the scope manager as global variables.
Should the parser register this global variable? Or is it okay if the vue/experimental-script-setup-vars
rules etc. register (and remove from through
) global variables?
EIDT:
-
<style>
may not need to be parsed. https://github.com/vuejs/rfcs/pull/231 -
<script setup="...">
may not need to be parsed. However, multiple<script>
blocks must be parsed as a single script. https://github.com/vuejs/rfcs/pull/227
Related to https://github.com/vuejs/eslint-plugin-vue/issues/1248.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:5 (2 by maintainers)
Top GitHub Comments
Okay, So let’s do that discussion.
Anyone is working on this issue ?