We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dff85c0 commit 1d643d8Copy full SHA for 1d643d8
.changeset/tame-dolls-serve.md
@@ -0,0 +1,5 @@
1
+---
2
+"@biomejs/biome": patch
3
4
+
5
+Fixed an issue where Svelte globals ($state and so on) were not properly recognized inside `.svelte.test.ts/js` and `.svelte.spec.ts/js` files.
crates/biome_service/src/file_handlers/javascript.rs
@@ -325,6 +325,10 @@ impl ServiceLanguage for JsLanguage {
325
} else if filename.ends_with(".svelte")
326
|| filename.ends_with(".svelte.js")
327
|| filename.ends_with(".svelte.ts")
328
+ || filename.ends_with(".svelte.test.ts")
329
+ || filename.ends_with(".svelte.test.js")
330
+ || filename.ends_with(".svelte.spec.ts")
331
+ || filename.ends_with(".svelte.spec.js")
332
{
333
// Svelte 5 runes
334
globals.extend(
0 commit comments