Description
Vue.js 3.0 is about to include <script setup> and <style vars> as experimental features. (refer to vuejs/rfcs#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.
SFC style CSS variable injection (new edition) rfcs#231 -
<script setup="...">
may not need to be parsed.
However, multiple<script>
blocks must be parsed as a single script.
<script setup>
rfcs#227
Related to vuejs/eslint-plugin-vue#1248.