-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
33 lines (32 loc) · 998 Bytes
/
tsconfig.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
// this enables stricter inference for data properties on `this`
"strict": true,
"jsx": "preserve",
"esModuleInterop": true,
"moduleResolution": "Node",
"noImplicitAny": false,
"allowJs": true,
"skipLibCheck": true,
"baseUrl": "src",
// this enables the use of `import` statements in TypeScript files
// like `import { Component } from '@/components';
// requires `tsconfig-paths-webpack-plugin` in order to work
// with webpack's `alias` feature
"paths": {
"@/*": ["*"],
// this is to prevent an issue with storybook interpreting
// a vue file as react
// @see: https://github.com/johnsoncodehk/volar/discussions/592#discussioncomment-2163181
"react": ["./types/stub-react.d.ts"]
},
"sourceMap": true,
"types": [
"vite/client" // if using vite
]
},
"include": ["src"],
"exclude": ["node_modules", "vendor"]
}