Skip to content

Commit 49ef07a

Browse files
authored
[onefetch.dev] migrate from Svelte version 4 to 5 (#1455)
1 parent 971132b commit 49ef07a

21 files changed

+3506
-3177
lines changed

docs/vercel/.gitignore

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
1-
.DS_Store
2-
/node_modules
3-
/build
4-
/.vercel_build_output
1+
node_modules
2+
3+
# Output
4+
.output
55
.vercel
6-
dist/
6+
/.svelte-kit
7+
/build
8+
9+
# OS
10+
.DS_Store
11+
Thumbs.db
12+
13+
# Env
14+
.env
15+
.env.*
16+
!.env.example
17+
!.env.test
18+
19+
# Vite
20+
vite.config.js.timestamp-*
21+
vite.config.ts.timestamp-*

docs/vercel/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

docs/vercel/.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Package Managers
2+
package-lock.json
3+
pnpm-lock.yaml
4+
yarn.lock

docs/vercel/.prettierrc

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,17 @@
33
"tabWidth": 2,
44
"semi": true,
55
"singleQuote": true,
6-
"trailingComma": "es5",
6+
"trailingComma": "none",
77
"bracketSameLine": true,
88
"singleAttributePerLine": false,
99
"quoteProps": "consistent",
1010
"plugins": ["prettier-plugin-svelte"],
11-
"svelteSortOrder": "scripts-options-markup-styles",
12-
"svelteIndentScriptAndStyle": true
11+
"overrides": [
12+
{
13+
"files": "*.svelte",
14+
"options": {
15+
"parser": "svelte"
16+
}
17+
}
18+
]
1319
}

docs/vercel/eslint.config.js

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,33 @@
1-
import eslintPluginSvelte from 'eslint-plugin-svelte';
2-
import tsParser from '@typescript-eslint/parser';
3-
import svelteParser from 'svelte-eslint-parser';
1+
import prettier from 'eslint-config-prettier';
2+
import js from '@eslint/js';
3+
import svelte from 'eslint-plugin-svelte';
4+
import globals from 'globals';
5+
import ts from 'typescript-eslint';
46

5-
export default [
6-
...eslintPluginSvelte.configs['flat/recommended'],
7+
export default ts.config(
8+
js.configs.recommended,
9+
...ts.configs.recommended,
10+
...svelte.configs['flat/recommended'],
11+
prettier,
12+
...svelte.configs['flat/prettier'],
713
{
814
languageOptions: {
9-
parser: tsParser,
10-
parserOptions: {
11-
extraFileExtensions: ['.svelte'],
12-
},
13-
},
15+
globals: {
16+
...globals.browser,
17+
...globals.node
18+
}
19+
}
1420
},
1521
{
16-
files: ['**/*.svelte', '*.svelte'],
22+
files: ['**/*.svelte'],
23+
1724
languageOptions: {
18-
parser: svelteParser,
1925
parserOptions: {
20-
parser: tsParser,
21-
},
22-
},
26+
parser: ts.parser
27+
}
28+
}
2329
},
24-
];
30+
{
31+
ignores: ['build/', '.svelte-kit/', 'dist/']
32+
}
33+
);

docs/vercel/index.html

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

0 commit comments

Comments
 (0)