Skip to content

Commit e5a8c22

Browse files
siderisltdasiderismehtapcavdar
authored
Full Upgrade to Svelte 5 (#22)
* Upgraded to Svelte5 --------- Co-authored-by: asideris <[email protected]> Co-authored-by: mehtapcavdar <[email protected]>
1 parent 90faa9d commit e5a8c22

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+5038
-5041
lines changed

.eslintignore

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

.prettierignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ node_modules
66
.env
77
.env.*
88
!.env.example
9-
**.spec.ts
109

1110
# Ignore files for PNPM, NPM and YARN
1211
pnpm-lock.yaml

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

eslint.config.js

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
import prettier from 'eslint-config-prettier';
2+
import js from '@eslint/js';
3+
import { includeIgnoreFile } from '@eslint/compat';
4+
import svelte from 'eslint-plugin-svelte';
5+
import globals from 'globals';
6+
import { fileURLToPath } from 'node:url';
7+
import ts from 'typescript-eslint';
8+
import svelteConfig from './svelte.config.js';
9+
10+
const gitignorePath = fileURLToPath(new URL('./.gitignore', import.meta.url));
11+
12+
export default ts.config(
13+
includeIgnoreFile(gitignorePath),
14+
js.configs.recommended,
15+
...ts.configs.recommended,
16+
...svelte.configs.recommended,
17+
prettier,
18+
...svelte.configs.prettier,
19+
{
20+
languageOptions: {
21+
globals: { ...globals.browser, ...globals.node }
22+
},
23+
rules: {
24+
'no-undef': 'off',
25+
'@typescript-eslint/no-explicit-any': 'warn',
26+
'svelte/require-each-key': 'warn',
27+
'@typescript-eslint/no-unused-expressions': 'warn',
28+
'@typescript-eslint/ban-ts-comment': 'warn'
29+
}
30+
},
31+
{
32+
files: ['**/*.svelte', '**/*.svelte.ts', '**/*.svelte.js'],
33+
languageOptions: {
34+
parserOptions: {
35+
projectService: true,
36+
extraFileExtensions: ['.svelte'],
37+
parser: ts.parser,
38+
svelteConfig
39+
}
40+
}
41+
}
42+
);

0 commit comments

Comments
 (0)