-
Notifications
You must be signed in to change notification settings - Fork 2
/
tsconfig.json
40 lines (40 loc) · 1.08 KB
/
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
34
35
36
37
38
39
40
{
"include": [
"*", // What? `includes` is not same as `include` ???
"test/*.ts",
"script/*.ts",
"src/*.ts",
"src/**/*.ts",
"src/options_ui/*.ts",
"src/options_ui/*.vue",
],
"exclude": [
"node_modules"
],
"typeAcquisition": {
"enable": true,
"include": ["web-ext-types", "sanitize-filename"] // Useless for .vue
},
"compilerOptions": {
// "typeRoots": ["node_modules/@types", "node_modules/web-ext-types"], // Useless for .vue
"types": ["web-ext-types", "sanitize-filename", "node"], // Useless for .vue
"target": "esnext",
"allowSyntheticDefaultImports": true,
"useDefineForClassFields": false, // Important. See https://www.typescriptlang.org/tsconfig#useDefineForClassFields
"lib": [
"esnext",
"dom",
"dom.Iterable"
],
"strict": true,
"removeComments": true,
"moduleResolution": "node", // without this, vue cannot be import by TypeScript
},
// override tsconfig for ts-node only.
"ts-node": {
"compilerOptions": {
"module": "commonjs",
"target": "es6",
}
}
}