Unify definition of aliases in single place. Make TypeScript configuration file (`tsconfig.json`) source of truth regarding aliases. Both webpack (through `vue.config.js`) and ESLint (through `.eslintrc.js`) now reads the alias configuration from `tsconfig.json`.
45 lines
795 B
JSON
45 lines
795 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "es5",
|
|
"lib": [
|
|
"esnext",
|
|
"dom",
|
|
"dom.iterable",
|
|
"scripthost"
|
|
],
|
|
"module": "esnext",
|
|
"jsx": "preserve",
|
|
"importHelpers": true,
|
|
"downlevelIteration": true,
|
|
"moduleResolution": "node",
|
|
"experimentalDecorators": true,
|
|
"esModuleInterop": true,
|
|
"noUnusedLocals": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"sourceMap": true,
|
|
"baseUrl": ".",
|
|
"types": [
|
|
"webpack-env",
|
|
"mocha",
|
|
"chai"
|
|
],
|
|
"paths": {
|
|
"@/*": [
|
|
"src/*"
|
|
],
|
|
"@tests/*": [
|
|
"tests/*"
|
|
]
|
|
}
|
|
},
|
|
"include": [
|
|
"src/**/*.ts",
|
|
"src/**/*.tsx",
|
|
"src/**/*.vue",
|
|
"tests/**/*.ts",
|
|
"tests/**/*.tsx"
|
|
],
|
|
"exclude": [
|
|
"node_modules"
|
|
]
|
|
} |