Skip to content

Commit 4e74137

Browse files
Merge pull request #23 from PascalHonegger/update-to-latest
feat(svelte): migrate to svelte 5
2 parents 4b81dae + 4310d7c commit 4e74137

File tree

24 files changed

+1759
-1664
lines changed

24 files changed

+1759
-1664
lines changed

.eslintrc.cjs

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/honegger.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: pnpm/action-setup@v4
1919
- uses: actions/setup-node@v4
2020
with:
21-
node-version: 22
21+
node-version: 24
2222
cache: pnpm
2323
- run: pnpm install
2424
- run: pnpm check
@@ -31,7 +31,7 @@ jobs:
3131
- uses: pnpm/action-setup@v4
3232
- uses: actions/setup-node@v4
3333
with:
34-
node-version: 22
34+
node-version: 24
3535
cache: pnpm
3636
- run: pnpm install
3737
- run: pnpm exec playwright install --with-deps

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm lint-staged

.prettierrc

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,14 @@
22
"useTabs": true,
33
"singleQuote": true,
44
"trailingComma": "none",
5-
"printWidth": 100
5+
"printWidth": 100,
6+
"plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"],
7+
"overrides": [
8+
{
9+
"files": "*.svelte",
10+
"options": {
11+
"parser": "svelte"
12+
}
13+
}
14+
]
615
}

eslint.config.mjs

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
// @ts-check
2+
import js from '@eslint/js';
3+
import svelte from 'eslint-plugin-svelte';
4+
import globals from 'globals';
5+
import ts from 'typescript-eslint';
6+
import svelteConfig from './svelte.config.js';
7+
8+
export default ts.config(
9+
js.configs.recommended,
10+
...ts.configs.recommended,
11+
...svelte.configs.recommended,
12+
{
13+
languageOptions: {
14+
globals: {
15+
...globals.browser,
16+
...globals.node
17+
}
18+
}
19+
},
20+
{
21+
ignores: ['node_modules/', 'build/', '.svelte-kit/', 'package/']
22+
},
23+
{
24+
files: ['**/*.svelte', '**/*.svelte.ts', '**/*.svelte.js'],
25+
languageOptions: {
26+
parserOptions: {
27+
projectService: true,
28+
extraFileExtensions: ['.svelte'],
29+
parser: ts.parser,
30+
svelteConfig
31+
}
32+
}
33+
},
34+
{
35+
rules: {
36+
'svelte/no-unused-svelte-ignore': 'off'
37+
}
38+
}
39+
);

package.json

Lines changed: 41 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"name": "honegger.dev",
33
"version": "0.0.1",
4-
"packageManager": "[email protected]+sha256.22e36fba7f4880ecf749a5ca128b8435da085ecd49575e7fb9e64d6bf4fad394",
4+
"private": "true",
5+
"license": "Apache-2.0",
6+
"packageManager": "[email protected]+sha512.5ea8b0deed94ed68691c9bad4c955492705c5eeb8a87ef86bc62c74a26b037b08ff9570f108b2e4dbd1dd1a9186fea925e527f141c648e85af45631074680184",
57
"scripts": {
68
"dev": "vite dev",
79
"build": "vite build",
@@ -10,33 +12,46 @@
1012
"test:update": "playwright test --update-snapshots",
1113
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
1214
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
13-
"lint": "prettier --check . && eslint .",
14-
"format": "prettier --write ."
15+
"lint": "prettier --check --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss . && eslint .",
16+
"format": "prettier --write .",
17+
"prepare": "husky .husky"
18+
},
19+
"lint-staged": {
20+
"*.{ts,svelte}": [
21+
"prettier --log-level silent --write --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss",
22+
"eslint --quiet --fix"
23+
],
24+
"*.{json,html}": [
25+
"prettier --write"
26+
]
1527
},
1628
"devDependencies": {
17-
"@fortawesome/fontawesome-free": "^6.5.2",
18-
"@playwright/test": "^1.44.0",
19-
"@poppanator/sveltekit-svg": "^4.2.1",
20-
"@sveltejs/adapter-static": "^3.0.1",
21-
"@sveltejs/kit": "^2.5.7",
22-
"@sveltejs/vite-plugin-svelte": "^3.1.0",
23-
"@types/dom-view-transitions": "^1.0.4",
24-
"@typescript-eslint/eslint-plugin": "^7.8.0",
25-
"@typescript-eslint/parser": "^7.8.0",
26-
"autoprefixer": "^10.4.19",
27-
"eslint": "^8.57.0",
28-
"eslint-config-prettier": "^9.1.0",
29-
"eslint-plugin-svelte": "^2.39.0",
30-
"postcss": "^8.4.38",
31-
"postcss-load-config": "^5.1.0",
32-
"prettier": "^3.2.5",
33-
"prettier-plugin-svelte": "^3.2.3",
34-
"svelte": "^4.2.16",
35-
"svelte-check": "^3.7.1",
36-
"tailwindcss": "^3.4.3",
37-
"tslib": "^2.6.2",
38-
"typescript": "^5.4.5",
39-
"vite": "^5.2.11"
29+
"@eslint/js": "^9.30.0",
30+
"@fortawesome/fontawesome-free": "^6.7.2",
31+
"@playwright/test": "^1.53.1",
32+
"@poppanator/sveltekit-svg": "^5.0.1",
33+
"@sveltejs/adapter-static": "^3.0.8",
34+
"@sveltejs/kit": "^2.22.2",
35+
"@sveltejs/vite-plugin-svelte": "^5.1.0",
36+
"@tailwindcss/vite": "^4.1.11",
37+
"@types/dom-view-transitions": "^1.0.6",
38+
"autoprefixer": "^10.4.21",
39+
"eslint": "^9.30.0",
40+
"eslint-config-prettier": "^10.1.5",
41+
"eslint-plugin-svelte": "^3.10.1",
42+
"globals": "^16.2.0",
43+
"husky": "^9.1.7",
44+
"lint-staged": "^16.1.2",
45+
"prettier": "^3.6.2",
46+
"prettier-plugin-svelte": "^3.4.0",
47+
"prettier-plugin-tailwindcss": "^0.6.13",
48+
"svelte": "^5.34.8",
49+
"svelte-check": "^4.2.2",
50+
"tailwindcss": "^4.1.11",
51+
"tslib": "^2.8.1",
52+
"typescript": "^5.8.3",
53+
"typescript-eslint": "^8.35.0",
54+
"vite": "^6.3.5"
4055
},
4156
"type": "module"
4257
}

0 commit comments

Comments
 (0)