Files
TypeWords/tsconfig.json
2023-09-11 14:19:04 +08:00

50 lines
1.2 KiB
JSON

{
"compilerOptions": {
"target": "ES6",
"useDefineForClassFields": true,
"allowJs": true,
"module": "ESNext",
"lib": [
"ESNext",
"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": "src",
//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:
// https://betterprogramming.pub/the-right-usage-of-aliases-in-webpack-typescript-4418327f47fa
"paths": {
"@/*": ["*"]
}
},
"include": [
"src/**/*.ts",
"src/**/*.d.ts",
"src/**/*.tsx",
"src/**/*.vue"
],
"references": [
{
"path": "./tsconfig.node.json"
}
]
}