diff --git a/docs/integrations/svelte.md b/docs/integrations/svelte.md index 5da76a3..e879011 100644 --- a/docs/integrations/svelte.md +++ b/docs/integrations/svelte.md @@ -2,6 +2,10 @@ unlazy is not only framework-agnostic, but also provides a Svelte component that you can use in your Svelte application. +::: info +The component is written for Svelte 5 and above using runes. +::: + ## Installation Install the `@unlazy/svelte` package using your favorite package manager: diff --git a/packages/svelte/eslint.config.js b/packages/svelte/eslint.config.js index 6c7cad1..09ec246 100644 --- a/packages/svelte/eslint.config.js +++ b/packages/svelte/eslint.config.js @@ -1,16 +1,8 @@ // @ts-check import antfu from '@antfu/eslint-config' -export default antfu( - { - vue: false, - svelte: true, - ignores: ['.svelte-kit'], - }, - { - files: ['**/*.svelte'], - rules: { - 'no-undef-init': 'off', - }, - }, -) +export default antfu({ + vue: false, + svelte: true, + ignores: ['.svelte-kit'], +}) diff --git a/packages/svelte/package.json b/packages/svelte/package.json index 75fdb98..bc31616 100644 --- a/packages/svelte/package.json +++ b/packages/svelte/package.json @@ -49,7 +49,7 @@ "test:types": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json" }, "peerDependencies": { - "svelte": "^3 || ^4" + "svelte": "^5" }, "dependencies": { "unlazy": "workspace:*" diff --git a/packages/svelte/src/app.html b/packages/svelte/src/app.html index d891631..c90ad7b 100644 --- a/packages/svelte/src/app.html +++ b/packages/svelte/src/app.html @@ -6,7 +6,7 @@