Skip to content

Commit e2cd31e

Browse files
committed
Refactor tsconfig.json to extend base configuration and simplify options
1 parent be555cf commit e2cd31e

2 files changed

Lines changed: 4 additions & 29 deletions

File tree

‎scripts/changetool/tsconfig.json‎

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,10 @@
11
{
2+
"extends": "../../tsconfig.json",
23
"compilerOptions": {
3-
/* Basic Options */
4-
"lib": ["ES2022"],
5-
"target": "ES2022",
64
"module": "preserve",
7-
"moduleResolution": "bundler",
8-
"allowImportingTsExtensions": true,
9-
"outDir": "./build",
105
"rootDir": ".",
11-
"sourceMap": false,
12-
"types": ["node"],
13-
14-
/* Strict Type-Checking Options */
15-
"strict": true,
16-
"noImplicitAny": false,
17-
"strictNullChecks": true,
18-
"strictFunctionTypes": true,
19-
"strictBindCallApply": true,
20-
"strictPropertyInitialization": true,
21-
"noImplicitThis": true,
22-
23-
/* Additional Checks */
24-
"noUnusedLocals": false,
25-
"noUnusedParameters": false,
26-
"noImplicitReturns": true,
27-
"noFallthroughCasesInSwitch": true,
28-
29-
/* Module Resolution Options */
30-
"esModuleInterop": true,
31-
"resolveJsonModule": true,
32-
"skipLibCheck": true
6+
"outDir": "./build",
7+
"sourceMap": false
338
},
349
"include": ["./**/*.ts"],
3510
"exclude": ["build", "node_modules"]

‎tsconfig.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@
3737
"@octokit/core/dist-types/types": ["./node_modules/@octokit/core/dist-types/types.d.ts"]
3838
},
3939
},
40-
"exclude": ["node_modules", "pr-checks"]
40+
"exclude": ["node_modules", "pr-checks", "scripts/changetool"]
4141
}

0 commit comments

Comments
 (0)