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

vscode-lit-plugin Disregards eslint Configuration #311

Open
ouweiya opened this issue Jun 26, 2023 · 0 comments
Open

vscode-lit-plugin Disregards eslint Configuration #311

ouweiya opened this issue Jun 26, 2023 · 0 comments

Comments

@ouweiya
Copy link

ouweiya commented Jun 26, 2023

The vscode-lit-plugin doesn't respect the ignorePatterns option in the .eslintrc.js file. There are occasions when I need to inspect the compiled code, but eslint signals numerous lit-plugin errors. I have set eslint to ignore certain patterns using ignorePatterns: ['build',], yet vscode-lit-plugin pays no heed to this.

I attempted to disable the vscode-lit-plugin and switch to using the ts-lit-plugin instead. This time, eslint doesn't check files in the ignored directories and everything works as expected. However, I lose the syntax highlighting provided by vscode-lit-plugin, making CSS and HTML editing challenging.

Subsequently, I tried re-enabling vscode-lit-plugin while setting "lit-plugin.disable": true. Unfortunately, I had no luck. Configuring "lit-plugin.disable": true also ends up disabling ts-lit-plugin.

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

1 participant