Skip to content
This repository was archived by the owner on Mar 12, 2024. It is now read-only.

Commit 4f25822

Browse files
chore: update tsconfig
1 parent 4736683 commit 4f25822

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

playground/vite.config.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ import { resolve } from 'node:path'
22
import { defineConfig } from 'vite'
33
import Vue from '@vitejs/plugin-vue'
44

5+
const currentDir = new URL('.', import.meta.url).pathname
6+
57
export default defineConfig({
68
resolve: {
79
alias: {
8-
'~/': `${resolve(__dirname, 'src')}/`,
9-
'vue-unquery': resolve(__dirname, '../src/index.ts'),
10+
'~/': `${resolve(currentDir, 'src')}/`,
11+
'vue-unquery': resolve(currentDir, '../src/index.ts'),
1012
},
1113
},
1214

tsconfig.json

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
{
22
"compilerOptions": {
33
"target": "ESNext",
4-
"lib": ["ESNext", "DOM", "ScriptHost"],
5-
"jsx": "preserve",
4+
"useDefineForClassFields": true,
65
"module": "ESNext",
7-
"moduleResolution": "node",
6+
"lib": ["ESNext", "DOM", "DOM.Iterable"],
87
"paths": {
98
"vue-unquery": ["./src/index.ts"]
109
},
11-
"types": ["vite/client"],
10+
"skipLibCheck": true,
11+
12+
/* Bundler mode */
13+
"moduleResolution": "node",
14+
"allowImportingTsExtensions": true,
1215
"resolveJsonModule": true,
16+
"isolatedModules": true,
1317
"esModuleInterop": true,
14-
"forceConsistentCasingInFileNames": true,
15-
"strict": true,
16-
"skipLibCheck": true
18+
"noEmit": true,
19+
"jsx": "preserve",
20+
21+
/* Linting */
22+
"strict": true
1723
}
1824
}

0 commit comments

Comments
 (0)