Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supports for <script setup> and <style vars> #1248

Open
ota-meshi opened this issue Jul 17, 2020 · 4 comments
Open

Supports for <script setup> and <style vars> #1248

ota-meshi opened this issue Jul 17, 2020 · 4 comments
Labels

Comments

@ota-meshi
Copy link
Member

@ota-meshi ota-meshi commented Jul 17, 2020

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

Rules

  • Change no-parsing-error rule to reports parsing errors in <script setup="...">.
  • Change no-parsing-error rule to reports parsing errors in <style vars="...">.
  • Add valid-script-setup rule that checks whether <script setup="..."> is valid arguments.
  • Add valid-style-vars rule that checks whether <style vars="..."> is valid expression.
  • Add no-vars-setup-export-default rule that disallows referencing variables in export default of <script setup>.
  • more

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

@ux-engineer

This comment was marked as off-topic.

@ux-engineer

This comment was marked as off-topic.

@steffchep

This comment was marked as off-topic.

@ota-meshi
Copy link
Member Author

@ota-meshi ota-meshi commented Oct 1, 2020

Please open a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.