forked from EasyTier/EasytierGame
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
45 lines (45 loc) · 1.37 KB
/
tsconfig.json
File metadata and controls
45 lines (45 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
// https://nuxt.com/docs/guide/concepts/typescript
"extends": "./.nuxt/tsconfig.json",
"exclude": ["node_modules", "dist", ".output"],
"include": [
"components/**/*.ts",
"components/**/*.js",
"components/**/*.vue",
"composables/**/*.ts",
"app.vue",
"pages/**/*.ts",
"pages/**/*.js",
"pages/**/*.vue",
"layouts/**/*.ts",
"layouts/**/*.js",
"layouts/**/*.vue",
"plugins/**/*.ts",
"plugins/**/*.js",
"store/**/*.ts",
"store/**/*.js",
"utils/**/*.ts",
"utils/**/*.js",
"typings/**/*.d.ts",
// "composables/**/*.ts",
// "composables/**/*.js",
// "api/**/*.ts",
// "api/**/*.js"
],
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "Node",
// "types": ["element-plus/global"]
"resolveJsonModule": true,
// 从 Vue 3.4 开始,Vue 不再隐式注册全局 JSX 命名空间。要指示 TypeScript 使用 Vue 的 JSX 类型定义,请确保在你的 tsconfig.json 中包含以下内容
"jsx": "preserve",
"jsxImportSource": "vue",
"types": ["@pinia/nuxt", "vite/client", "element-plus/global", "pinia-plugin-persistedstate"],
"allowJs": true, // 允许编译器编译JS,JSX文件
"checkJs": false, // 允许在JS文件中报错,通常与allowJS一起使用
"esModuleInterop": true, // 允许export=导出,由import from 导入
"lib": ["DOM", "ESNext"],
"allowSyntheticDefaultImports": true
}
}