sveltejs / eslint-plugin-svelte

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

Respect `warningFilter` setting from Svelte 5 #905

Open ptrxyz opened 3 weeks ago

ptrxyz commented 3 weeks ago

Description

To my understanding, currently there is no way to configure svelte/valid-compile with anything but either ignore all warnings or none of them using ignoreWarnings setting.

With Svelte 5, we are given the compiler option warningFilter which is meant to be a "unified way to suppress warnings" for all tools. (See https://github.com/sveltejs/language-tools/issues/2559#issuecomment-2454593531)

However it seems that eslint-plugin-svelte does use the svelte compiler under the hood and does not read any configs. Can we get the plugin to also respect said setting?

note: this would be in addition to onwarn to preserve backwards compatibility while still being consistent with other Svelte tooling.