runem / lit-analyzer

Monorepository for tools that analyze lit-html templates
MIT License
317 stars 36 forks source link

`vscode-lit-plugin` Disregards `eslint` Configuration #311

Open ouweiya opened 1 year ago

ouweiya commented 1 year ago

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.