Closed chengpeiquan closed 9 months ago
Sorry, I've been busy these past two days. I planned to make a minimal reproducible repo today. I accidentally discovered the real reason.
I used to pay too much attention to the code error prompts of VS Code and the error feedback of the problem panel, because there was no error message, the cause was not noticed in time.
Today I ran pnpm lint
to directly perform the ESLint check and got error feedback. The truth is revealed!
So I decided to keep the current sub-package import to avoid dependencies conflict error.
Hi @ota-meshi , I am currently maintaining an npm package of ESLint Flag Config (See: @bassist/eslint ).
Therefore, ESLint plugins from different technology stacks will be installed together in this package as
dependencies
, and export the corresponding preset configuration (e.g. Vue, React, Svelte and so on).Since adding Svelte's ESLint configuration, I have received feedback that Vue's Lint rules are not working (See https://github.com/chengpeiquan/bassist/issues/18 ).
I checked today and found that it is indeed Svelte that causes Vue's rules to fail. After some testing, the main reason is that
svelte-eslint-parser
andeslint-plugin-svelte
are related dependencies of Svelte ESLint.Forgive me for not being able to further understand the specific reason, because the ESLint plug-ins of Svelte and Vue are maintained by you, so I will report this situation. I hope if I have time, I can find out the reason further?
My current solution is to publish Svelte's configuration as a sub-package to isolate it from other technology stacks.