Before You File a Bug Report Please Confirm You Have Done The Following...
[X] I have tried restarting my IDE and the issue persists.
[X] I have updated to the latest version of the packages.
What version of ESLint are you using?
9.9.1
What version of eslint-plugin-svelte are you using?
2.43.0
What did you do?
pnpm create svelte@latest
added svelte-preprocess
added MultiFile.svelte
What did you expect to happen?
No error for this warning, as it would not happen if the file is properly preprocessed and the extra attribute removed
What actually happened?
pnpm lint
/home/dominikg/develop/reproductions/script-attr-repro/src/lib/MultiFile.svelte
2:9 error Unrecognized attribute — should be one of generics, lang or module. If this exists for a preprocessor, ensure that the preprocessor removes it(script_unknown_attribute) svelte/valid-compile
Link to GitHub Repo with Minimal Reproducible Example
Before You File a Bug Report Please Confirm You Have Done The Following...
What version of ESLint are you using?
9.9.1
What version of
eslint-plugin-svelte
are you using?2.43.0
What did you do?
pnpm create svelte@latest
What did you expect to happen?
No error for this warning, as it would not happen if the file is properly preprocessed and the extra attribute removed
What actually happened?
pnpm lint
/home/dominikg/develop/reproductions/script-attr-repro/src/lib/MultiFile.svelte 2:9 error Unrecognized attribute — should be one ofgenerics
,lang
ormodule
. If this exists for a preprocessor, ensure that the preprocessor removes it(script_unknown_attribute) svelte/valid-compileLink to GitHub Repo with Minimal Reproducible Example
https://github.com/dominikg/script-attr-repro
Additional comments
Without executing preprocessors i think the only recourse is to not turn this warning into an error, ignore it for valid compile.