Skip to content

Commit f9e138b

Browse files
authored
fix: remove unnecessary configuration from tsconfig (#130)
* fix: remove unnecessary configuration from typescript * chore: format * fix: remove unnecesary vite config
1 parent 5534355 commit f9e138b

File tree

3 files changed

+8
-18
lines changed

3 files changed

+8
-18
lines changed

svelte.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ const config = {
88
preprocess: preprocess(),
99

1010
kit: {
11-
adapter: adapter()
11+
adapter: adapter(),
12+
alias: {
13+
$components: 'src/lib/components',
14+
'$components/*': 'src/lib/components/*'
15+
}
1216
}
1317
}
1418

tsconfig.json

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,7 @@
2020
"esModuleInterop": true,
2121
"skipLibCheck": true,
2222
"forceConsistentCasingInFileNames": true,
23-
"baseUrl": ".",
2423
"allowJs": true,
25-
"checkJs": true,
26-
"paths": {
27-
"$lib": ["src/lib"],
28-
"$lib/*": ["src/lib/*"],
29-
"$components": ["src/lib/components"],
30-
"$components/*": ["src/lib/components/*"]
31-
}
32-
},
33-
"include": ["src/**/*.d.ts", "src/**/*.js", "src/**/*.ts", "src/**/*.svelte"]
24+
"checkJs": true
25+
}
3426
}

vite.config.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
import { sveltekit } from '@sveltejs/kit/vite'
2-
import path from 'path'
32

43
/** @type {import('vite').UserConfig} */
54
const config = {
6-
plugins: [sveltekit()],
7-
resolve: {
8-
alias: {
9-
$components: path.resolve('./src/lib/components')
10-
}
11-
}
5+
plugins: [sveltekit()]
126
}
137

148
export default config

0 commit comments

Comments
 (0)