38 lines
1018 B
JSON
38 lines
1018 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2020",
|
|
"useDefineForClassFields": 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": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
|
|
//添加---
|
|
"suppressImplicitAnyIndexErrors": true, //允许字符串用作下标
|
|
"ignoreDeprecations":"5.0", //高版本上句报错,此句解决。如此句报错可注释掉
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"@/*":[
|
|
"src/*"
|
|
]
|
|
}
|
|
//---------
|
|
|
|
},
|
|
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue", "src/views/pages/carPage/load_info_echartvue"],
|
|
"references": [{ "path": "./tsconfig.node.json" }]
|
|
}
|