sveltejs / eslint-plugin-svelte

ESLint plugin for Svelte using AST
https://sveltejs.github.io/eslint-plugin-svelte/
MIT License
279 stars 30 forks source link

how to disable the error unused css? #644

Closed craigcosmo closed 7 months ago

craigcosmo commented 7 months ago

after running npm run lint, I got a bunch of error like this

CleanShot 2023-12-07 at 09 53 28

How can I disable those error ?

craigcosmo commented 7 months ago

I figure out just need to put this in eslintrc

rules: { 'svelte/valid-compile': ['error', { ignoreWarnings: true }], }