volarjs / volar.js

💙🌊
https://volarjs.dev/
MIT License
941 stars 45 forks source link

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

Open DrJume opened 3 months ago

DrJume commented 3 months ago

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 commented 3 months ago

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?