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

@volar/eslint does not yet allow for ESLint to understand imported Vue SFC components #172

Open
DrJume opened this issue May 3, 2024 · 1 comment

Comments

@DrJume
Copy link

DrJume commented May 3, 2024

Repro: https://github.com/DrJume/vue-volar-eslint/blob/17fc9afea8a7386096478c5742fd86140baaed64/src/App.vue#L12

I have setup a working example for the new ESLint integration from Volar.

Currently it works for basic TS type aware rules, but ESLint still has issues to understand the type of an imported Vue SFC (which Volar in VSCode understands).

@johnsoncodehk
Copy link
Member

It seems that linting is still based on eslint-plugin-vue rather than @volar/eslint, I think @antfu/eslint-config is using eslint-plugin-vue/vue-eslint-parser behind the scenes. Can you try to reproduce the problem without using @antfu/eslint-config?

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

No branches or pull requests

2 participants