Skip to content

Commit a0a4743

Browse files
committed
config(TS): update tsconfig
1 parent eacdfe6 commit a0a4743

File tree

1 file changed

+29
-9
lines changed

1 file changed

+29
-9
lines changed

tsconfig.json

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,41 @@
11
{
2-
"allowSyntheticDefaultImports": true,
2+
"display": "Node 14",
33
"compilerOptions": {
4+
"strict": true,
5+
"noImplicitReturns": true,
46
"outDir": "./build/",
7+
"types": ["node"],
8+
"typeRoots": ["node_modules/@types"],
59
"sourceMap": true,
6-
"noImplicitAny": false,
7-
"module": "commonjs",
8-
"target": "ES5",
910
"jsx": "react",
10-
"lib": ["ES5", "ES6", "dom"],
11+
"lib": ["esnext", "dom"],
12+
"module": "commonjs",
13+
"target": "es5",
14+
"moduleResolution": "node",
1115
"esModuleInterop": true,
16+
"resolveJsonModule": true,
17+
"declaration": false,
18+
"noImplicitAny": false,
19+
"downlevelIteration": true,
20+
"importHelpers": true,
21+
"skipLibCheck": true,
22+
"forceConsistentCasingInFileNames": true,
1223
"baseUrl": ".",
1324
"paths": {
14-
"components/*": ["./test/components/*"]
15-
}
25+
"components/*": ["./test/components/*"],
26+
"assets/*": ["./test/assets/*"]
27+
},
28+
"isolatedModules": true,
29+
"allowSyntheticDefaultImports": true,
30+
// handled by ESLint (shows warning)
31+
"noUnusedLocals": false,
32+
"noUnusedParameters": false
1633
},
17-
"include": ["./src/**/*", "./test/**/*"],
34+
"include": ["./src/**/*"],
35+
"exclude": ["**/*.spec.*"],
1836
"awesomeTypescriptLoaderOptions": {
19-
"reportFiles": ["./src/**/*"]
37+
"reportFiles": ["./src/**/*.{ts,tsx}"],
38+
"ignoreDiagnostics": [1005 /* expected semicolon */],
39+
"useCache": true
2040
}
2141
}

0 commit comments

Comments
 (0)