Skip to content

Commit ed550b4

Browse files
authored
chore(*): update tsconfig.json (#296)
This pull request includes updates to TypeScript configuration files across multiple packages and modifications to the `.github/sync-client.yml` file to sync these configurations. The most important changes are the addition of new TypeScript compiler options and the inclusion of additional file types in the `tsconfig.json` files. Updates to TypeScript configurations: * [`packages/clang-format-git-python/tsconfig.json`](diffhunk://#diff-da952c9797a8b0e14c1f27481ae421251f0a72d0e83c8f633293783174f619deR3-R14): Added new compiler options such as `target`, `module`, `moduleResolution`, and `skipLibCheck`. Included `.mjs` and `.cjs` file types in the `include` section. * [`packages/clang-format-git/tsconfig.json`](diffhunk://#diff-da952c9797a8b0e14c1f27481ae421251f0a72d0e83c8f633293783174f619deR3-R14): Added new compiler options such as `target`, `module`, `moduleResolution`, and `skipLibCheck`. Included `.mjs` and `.cjs` file types in the `include` section. * [`packages/clang-format-node/tsconfig.json`](diffhunk://#diff-da952c9797a8b0e14c1f27481ae421251f0a72d0e83c8f633293783174f619deR3-R14): Added new compiler options such as `target`, `module`, `moduleResolution`, and `skipLibCheck`. Included `.mjs` and `.cjs` file types in the `include` section. Modifications to sync configuration: * [`.github/sync-client.yml`](diffhunk://#diff-93bc202766315b6269beef308a6ad30ed3e86938ddbfa31b49e030f2263695f1R79-R85): Added entries to sync `tsconfig.json` files from various packages to a common destination.
1 parent 669ab6f commit ed550b4

File tree

4 files changed

+28
-6
lines changed

4 files changed

+28
-6
lines changed

.github/sync-client.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,10 @@ lumirlumir/lumirlumir-configs:
7676
dest: ./configs/eslint.config.mjs
7777
- source: ./lint-staged.config.js
7878
dest: ./configs/lint-staged.config.js
79+
# tsconfig.json
80+
- source: ./packages/clang-format-git/tsconfig.json
81+
dest: ./configs/tsconfig.json
82+
- source: ./packages/clang-format-git-python/tsconfig.json
83+
dest: ./configs/tsconfig.json
84+
- source: ./packages/clang-format-node/tsconfig.json
85+
dest: ./configs/tsconfig.json
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
{
22
"compilerOptions": {
3+
"allowSyntheticDefaultImports": true,
34
"allowJs": true,
45
"checkJs": true,
56
"declaration": true,
67
"emitDeclarationOnly": true,
7-
"outDir": "build"
8+
"outDir": "build",
9+
"target": "ESNext",
10+
"module": "ESNext",
11+
"moduleResolution": "Node",
12+
"skipLibCheck": true
813
},
9-
"include": ["src/**/*.js"],
14+
"include": ["src/**/*.js", "src/**/*.mjs", "src/**/*.cjs"],
1015
"exclude": ["src/**/*.test.js"]
1116
}
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
{
22
"compilerOptions": {
3+
"allowSyntheticDefaultImports": true,
34
"allowJs": true,
45
"checkJs": true,
56
"declaration": true,
67
"emitDeclarationOnly": true,
7-
"outDir": "build"
8+
"outDir": "build",
9+
"target": "ESNext",
10+
"module": "ESNext",
11+
"moduleResolution": "Node",
12+
"skipLibCheck": true
813
},
9-
"include": ["src/**/*.js"],
14+
"include": ["src/**/*.js", "src/**/*.mjs", "src/**/*.cjs"],
1015
"exclude": ["src/**/*.test.js"]
1116
}
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
{
22
"compilerOptions": {
3+
"allowSyntheticDefaultImports": true,
34
"allowJs": true,
45
"checkJs": true,
56
"declaration": true,
67
"emitDeclarationOnly": true,
7-
"outDir": "build"
8+
"outDir": "build",
9+
"target": "ESNext",
10+
"module": "ESNext",
11+
"moduleResolution": "Node",
12+
"skipLibCheck": true
813
},
9-
"include": ["src/**/*.js"],
14+
"include": ["src/**/*.js", "src/**/*.mjs", "src/**/*.cjs"],
1015
"exclude": ["src/**/*.test.js"]
1116
}

0 commit comments

Comments
 (0)