Skip to content

Commit 5c17ca8

Browse files
Merge pull request #9 from PascalHonegger/update-to-svelte4
Update to svelte4
2 parents 2eba60d + aee7628 commit 5c17ca8

File tree

18 files changed

+739
-577
lines changed

18 files changed

+739
-577
lines changed

.eslintrc.cjs

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,30 @@
11
module.exports = {
22
root: true,
3+
extends: [
4+
'eslint:recommended',
5+
'plugin:@typescript-eslint/recommended',
6+
'plugin:svelte/prettier',
7+
'prettier'
8+
],
39
parser: '@typescript-eslint/parser',
4-
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
5-
plugins: ['svelte3', '@typescript-eslint'],
6-
ignorePatterns: ['*.cjs'],
7-
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
8-
settings: {
9-
'svelte3/typescript': () => require('typescript')
10-
},
10+
plugins: ['@typescript-eslint'],
1111
parserOptions: {
1212
sourceType: 'module',
13-
ecmaVersion: 2020
13+
ecmaVersion: 2020,
14+
extraFileExtensions: ['.svelte']
1415
},
1516
env: {
1617
browser: true,
1718
es2017: true,
1819
node: true
19-
}
20+
},
21+
overrides: [
22+
{
23+
files: ['*.svelte'],
24+
parser: 'svelte-eslint-parser',
25+
parserOptions: {
26+
parser: '@typescript-eslint/parser'
27+
}
28+
}
29+
]
2030
};

.github/workflows/honegger.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -40,22 +40,3 @@ jobs:
4040
- run: pnpm install --frozen-lockfile
4141
- run: pnpx playwright install --with-deps
4242
- run: pnpm test
43-
44-
qodana-js:
45-
runs-on: ubuntu-latest
46-
steps:
47-
- uses: actions/checkout@v3
48-
- uses: pnpm/action-setup@v2
49-
with:
50-
version: 8
51-
- uses: actions/setup-node@v3
52-
with:
53-
node-version: 18
54-
cache: pnpm
55-
- run: pnpm install --frozen-lockfile
56-
- name: 'Qodana JS Scan'
57-
uses: JetBrains/[email protected]
58-
with:
59-
args: '--linter,jetbrains/qodana-js'
60-
artifact-name: 'qodana-js-report'
61-
cache-dir: ${{ runner.temp }}/qodana-js/caches

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"spellright.language": ["en"],
3-
"spellright.documentTypes": ["markdown", "latex", "plaintext"]
3+
"spellright.documentTypes": ["markdown", "latex", "plaintext"],
4+
"eslint.validate": ["javascript", "javascriptreact", "svelte"]
45
}

package.json

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,38 +4,38 @@
44
"scripts": {
55
"dev": "vite dev",
66
"build": "vite build",
7-
"package": "svelte-kit package",
87
"preview": "vite preview",
98
"postinstall": "svelte-kit sync",
109
"test": "playwright test",
1110
"test:update": "playwright test --update-snapshots",
1211
"check": "svelte-check --tsconfig ./tsconfig.json",
1312
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
14-
"lint": "prettier --check --plugin-search-dir=. . && eslint .",
15-
"format": "prettier --write --plugin-search-dir=. ."
13+
"lint": "prettier --check . && eslint .",
14+
"format": "prettier --write ."
1615
},
1716
"devDependencies": {
18-
"@fortawesome/fontawesome-free": "^6.4.0",
19-
"@playwright/test": "^1.32.2",
20-
"@poppanator/sveltekit-svg": "^3.0.0",
21-
"@sveltejs/adapter-static": "^2.0.1",
22-
"@sveltejs/kit": "^1.15.2",
23-
"@typescript-eslint/eslint-plugin": "^5.57.1",
24-
"@typescript-eslint/parser": "^5.57.1",
25-
"autoprefixer": "^10.4.14",
26-
"eslint": "^8.37.0",
27-
"eslint-config-prettier": "^8.8.0",
28-
"eslint-plugin-svelte3": "^4.0.0",
29-
"postcss": "^8.4.21",
30-
"prettier": "^2.8.7",
31-
"prettier-plugin-svelte": "^2.10.0",
32-
"svelte": "^3.58.0",
33-
"svelte-check": "^3.2.0",
34-
"svelte-preprocess": "^5.0.3",
35-
"tailwindcss": "^3.3.1",
36-
"tslib": "^2.5.0",
37-
"typescript": "^5.0.4",
38-
"vite": "^4.2.1"
17+
"@fortawesome/fontawesome-free": "^6.4.2",
18+
"@playwright/test": "^1.37.1",
19+
"@poppanator/sveltekit-svg": "^4.1.3",
20+
"@sveltejs/adapter-static": "^2.0.3",
21+
"@sveltejs/kit": "^1.24.1",
22+
"@typescript-eslint/eslint-plugin": "^6.6.0",
23+
"@typescript-eslint/parser": "^6.6.0",
24+
"autoprefixer": "^10.4.15",
25+
"eslint": "^8.49.0",
26+
"eslint-config-prettier": "^9.0.0",
27+
"eslint-plugin-svelte": "^2.33.0",
28+
"postcss": "^8.4.29",
29+
"postcss-load-config": "^4.0.1",
30+
"prettier": "^3.0.3",
31+
"prettier-plugin-svelte": "^3.0.3",
32+
"svelte": "^4.2.0",
33+
"svelte-check": "^3.5.1",
34+
"svelte-preprocess": "^5.0.4",
35+
"tailwindcss": "^3.3.3",
36+
"tslib": "^2.6.2",
37+
"typescript": "^5.2.2",
38+
"vite": "^4.4.9"
3939
},
4040
"type": "module",
4141
"engines": {

playwright.config.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
import type { PlaywrightTestConfig } from '@playwright/test';
1+
import { defineConfig } from '@playwright/test';
22

3-
const config: PlaywrightTestConfig = {
3+
export default defineConfig({
44
webServer: {
55
command: 'pnpm build && pnpm preview',
6-
port: 4173
6+
url: 'http://localhost:4173/'
7+
},
8+
use: {
9+
baseURL: 'http://localhost:4173/'
710
}
8-
};
9-
10-
export default config;
11+
});

0 commit comments

Comments
 (0)