Open
Description
Describe the bug
A recent change in svelte5 made attributes on <script> protected. Proprocessors using custom attributes must remove them to avoid warnings
/home/dominikg/develop/sveltejs/vite-plugin-svelte/packages/e2e-tests/svelte-preprocess/src/lib/multifile/MultiFile.svelte
2:19 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
Logs
Please include browser console and server logs around the time this bug occurred.
To Reproduce
clone vite-plugin-svelte repo
remove disable comment: https://github.com/sveltejs/vite-plugin-svelte/blob/12b7af76dac68b4cf3b60bba269aa927a2528716/packages/e2e-tests/svelte-preprocess/src/lib/multifile/MultiFile.svelte#L2
run pnpm lint
Expected behavior
no warning
Information about your project:
latest vite, svelte5-next and svelte-preprocess
Additional context
eslint-plugin-svelte currently makes an error out of this warning, which might be too harsh
Metadata
Metadata
Assignees
Labels
No labels