volarjs / volar.js

💙🌊

Home Page:https://volarjs.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

DrJume opened this issue · comments

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).

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?