lit-analyzer
lit-analyzer copied to clipboard
`vscode-lit-plugin` Disregards `eslint` Configuration
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.