51 lines
1.1 KiB
JSON
51 lines
1.1 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2020",
|
|
"useDefineForClassFields": true,
|
|
"allowJs": true,
|
|
"module": "ESNext",
|
|
"lib": [
|
|
"ES2020",
|
|
"DOM",
|
|
"DOM.Iterable"
|
|
],
|
|
"skipLibCheck": true,
|
|
/* Bundler mode */
|
|
"moduleResolution": "bundler",
|
|
"allowImportingTsExtensions": true,
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": true,
|
|
"noEmit": true,
|
|
"jsx": "preserve",
|
|
/* Linting */
|
|
"strict": false,
|
|
"noUnusedLocals": false,
|
|
"noUnusedParameters": false,
|
|
"noFallthroughCasesInSwitch": false,
|
|
"types": [
|
|
"vue/ref-macros",
|
|
"unplugin-icons/types/vue",
|
|
"element-plus/global"
|
|
],
|
|
"baseUrl": "./",
|
|
//This is because TypeScript does not resolve webpack aliases automatically.
|
|
//For TS to resolve aliases, they should be added in tsconfig.json under compilerOptions.paths:
|
|
"paths": {
|
|
"@/*": [
|
|
"src/*"
|
|
]
|
|
}
|
|
},
|
|
"include": [
|
|
"src/**/*.ts",
|
|
"src/**/*.d.ts",
|
|
"src/**/*.tsx",
|
|
"src/**/*.vue"
|
|
],
|
|
"references": [
|
|
{
|
|
"path": "./tsconfig.node.json"
|
|
}
|
|
]
|
|
}
|