-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
9,092 additions
and
451 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"svelte-eslint-parser": minor | ||
--- | ||
|
||
feat: apply runes to `*.svelte.js` and `*.svelte.ts`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
import { VERSION as SVELTE_VERSION } from "svelte/compiler"; | ||
import { svelteVersion } from "./svelte-version"; | ||
|
||
const globalsForSvelte4: Readonly<string[]> = [ | ||
"$$slots", | ||
"$$props", | ||
"$$restProps", | ||
] as const; | ||
export const globalsForSvelte5 = [ | ||
const globalsForSvelte4 = ["$$slots", "$$props", "$$restProps"] as const; | ||
export const globalsForRunes = [ | ||
"$state", | ||
"$derived", | ||
"$effect", | ||
"$props", | ||
] as const; | ||
export const globals = SVELTE_VERSION.startsWith("5") | ||
? [...globalsForSvelte4, ...globalsForSvelte5] | ||
const globalsForSvelte5 = [...globalsForSvelte4, ...globalsForRunes]; | ||
export const globals = svelteVersion.gte(5) | ||
? globalsForSvelte5 | ||
: globalsForSvelte4; | ||
export const globalsForSvelteScript = svelteVersion.gte(5) | ||
? globalsForRunes | ||
: []; |
Oops, something went wrong.