Skip to content

Supports for <script setup> and <style> variable injection #78

Closed
@ota-meshi

Description

@ota-meshi

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:


Related to vuejs/eslint-plugin-vue#1248.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions