Skip to content

Respect warningFilter setting from Svelte 5 #905

Closed
@ptrxyz

Description

@ptrxyz

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions