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

Respect warningFilter setting from Svelte 5 #905

Open
ptrxyz opened this issue Nov 4, 2024 · 0 comments
Open

Respect warningFilter setting from Svelte 5 #905

ptrxyz opened this issue Nov 4, 2024 · 0 comments
Labels
enhancement New feature or request feat: svelte v5 help wanted Extra attention is needed

Comments

@ptrxyz
Copy link
Contributor

ptrxyz commented Nov 4, 2024

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 sveltejs/language-tools#2559 (comment))

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.

@ptrxyz ptrxyz added the enhancement New feature or request label Nov 4, 2024
@ota-meshi ota-meshi added help wanted Extra attention is needed feat: svelte v5 labels Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feat: svelte v5 help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants