Skip to content

Commit d3fc48b

Browse files
committed
Move shared tsconfig to tsconfig.base.json
1 parent f88b185 commit d3fc48b

File tree

3 files changed

+29
-23
lines changed

3 files changed

+29
-23
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"lib",
5151
"src",
5252
"dist",
53-
"tsconfig.json",
53+
"tsconfig.base.json",
5454
"!**/*.test.ts"
5555
],
5656
"scripts": {

tsconfig.base.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"$schema": "https://json.schemastore.org/tsconfig",
3+
"compilerOptions": {
4+
"composite": true,
5+
"noEmit": true,
6+
"strict": true,
7+
"module": "nodenext",
8+
"esModuleInterop": true,
9+
"target": "es2021",
10+
"jsx": "react-jsx",
11+
"sourceMap": true,
12+
"newLine": "lf",
13+
"verbatimModuleSyntax": true,
14+
"allowUnreachableCode": false,
15+
"allowUnusedLabels": false,
16+
"exactOptionalPropertyTypes": true,
17+
"noFallthroughCasesInSwitch": true,
18+
"noImplicitOverride": true,
19+
"noImplicitReturns": true,
20+
"noPropertyAccessFromIndexSignature": true,
21+
"noUncheckedIndexedAccess": true,
22+
"noUnusedParameters": true,
23+
"noUnusedLocals": true,
24+
"forceConsistentCasingInFileNames": true,
25+
"baseUrl": "./"
26+
}
27+
}

tsconfig.json

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,7 @@
11
{
22
"$schema": "https://json.schemastore.org/tsconfig",
3+
"extends": "./tsconfig.base.json",
34
"compilerOptions": {
4-
"composite": true,
5-
"noEmit": true,
6-
"strict": true,
7-
"module": "nodenext",
8-
"esModuleInterop": true,
9-
"target": "es2021",
10-
"jsx": "react-jsx",
11-
"sourceMap": true,
12-
"newLine": "lf",
13-
"verbatimModuleSyntax": true,
14-
"allowUnreachableCode": false,
15-
"allowUnusedLabels": false,
16-
"exactOptionalPropertyTypes": true,
17-
"noFallthroughCasesInSwitch": true,
18-
"noImplicitOverride": true,
19-
"noImplicitReturns": true,
20-
"noPropertyAccessFromIndexSignature": true,
21-
"noUncheckedIndexedAccess": true,
22-
"noUnusedParameters": true,
23-
"noUnusedLocals": true,
24-
"forceConsistentCasingInFileNames": true,
25-
"baseUrl": "./",
265
"paths": {
276
"@seamapi/smith": ["./src/index.ts"],
287
"lib/*": ["./src/lib/*"]

0 commit comments

Comments
 (0)