Files

46 lines
1.4 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
// 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, // 允许编译器编译JSJSX文件
"checkJs": false, // 允许在JS文件中报错,通常与allowJS一起使用
"esModuleInterop": true, // 允许export=导出,由import from 导入
"lib": ["DOM", "ESNext"],
"allowSyntheticDefaultImports": true
}
}