Skip to content

Commit 0ff68ea

Browse files
committed
add base tsconfig and update client to extend from base
1 parent 3eed8b8 commit 0ff68ea

File tree

3 files changed

+23
-29
lines changed

3 files changed

+23
-29
lines changed

client/tsconfig.json

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,9 @@
11
{
2+
"extends": "../tsconfig.base.json",
23
"compilerOptions": {
34
"target": "ES6",
45
"module": "ESNext",
56
"lib": ["DOM", "ESNext"],
67
"jsx": "react",
7-
"strict": true,
8-
"noEmit": true,
9-
"allowJs": true,
10-
"checkJs": false,
11-
"esModuleInterop": true,
12-
"skipLibCheck": true,
13-
"moduleResolution": "node",
14-
"resolveJsonModule": true,
15-
"allowSyntheticDefaultImports": true,
16-
"forceConsistentCasingInFileNames": true,
17-
18-
// From https://www.typescriptlang.org/docs/handbook/babel-with-typescript.html to use Babel for transpiling, tsc for types
19-
// Ensure that .d.ts files are created by tsc, but not .js files
20-
"declaration": true,
21-
"emitDeclarationOnly": true,
22-
// Ensure that Babel can safely transpile files in the TypeScript project
23-
"isolatedModules": true
248
},
25-
"include": ["**/*"],
26-
"exclude": [
27-
"../node_modules",
28-
"../node_modules/@types",
29-
]
309
}

tsconfig.base.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"compilerOptions": {
3+
"strict": true,
4+
"allowJs": true,
5+
"checkJs": false,
6+
"esModuleInterop": true,
7+
"skipLibCheck": true,
8+
"moduleResolution": "node",
9+
"resolveJsonModule": true,
10+
"allowSyntheticDefaultImports": true,
11+
"forceConsistentCasingInFileNames": true,
12+
13+
// From https://www.typescriptlang.org/docs/handbook/babel-with-typescript.html to use Babel for transpiling, tsc for types
14+
// Ensure that .d.ts files are created by tsc, but not .js files
15+
"declaration": true,
16+
"emitDeclarationOnly": true,
17+
// Ensure that Babel can safely transpile files in the TypeScript project
18+
"isolatedModules": true
19+
},
20+
"include": ["**/*"],
21+
"exclude": ["../node_modules"]
22+
}

tsconfig.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,4 @@
44
{ "path": "client" },
55
// { "path": "server" }
66
],
7-
"exclude": [
8-
"node_modules",
9-
"node_modules/@types",
10-
"./node_modules/@types",
11-
"dist",
12-
"build"
13-
]
147
}

0 commit comments

Comments
 (0)