Skip to content

Commit 3656c9b

Browse files
fjakobsclaude
andcommitted
Update TypeScript configuration to target Node.js 22 (ES2023)
Update all TypeScript configuration files to target ES2023, aligning with Node.js 22 capabilities and the package.json requirement of Node.js >=22.0. Changes: - tsconfig_base.json: Update target from ES2020 to ES2023, add explicit lib - packages/databricks-vscode/tsconfig.json: Update lib to ES2023, keep DOM - packages/databricks-vscode-types/tsconfig.json: Remove lib (inherit from base) - packages/databricks-vscode/scripts/tsconfig.json: Update target and lib to ES2023 - packages/databricks-vscode/eslint-local-rules/tsconfig.json: Add ES2023 target - packages/databricks-vscode/src/test/e2e/tsconfig.json: Update target from ES2021 to ES2023 Benefits: - Enables ES2023 features (array methods, improved Promise APIs, etc.) - Ensures consistency across all TypeScript configurations - Better alignment with Node.js 22 runtime capabilities 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 450f84e commit 3656c9b

6 files changed

Lines changed: 9 additions & 7 deletions

File tree

packages/databricks-vscode-types/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"extends": "../../tsconfig_base.json",
33
"compilerOptions": {
4-
"lib": ["ES2020", "ES2021.String"],
54
"rootDir": "."
65
},
76
"include": ["*.ts"]
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"transpileOnly": true,
33
"compilerOptions": {
4-
"module": "Node16"
4+
"module": "Node22",
5+
"target": "ES2023"
56
}
67
}

packages/databricks-vscode/scripts/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"compilerOptions": {
33
"module": "CommonJS",
4-
"target": "ES2020",
4+
"target": "ES2023",
55
"outDir": "out",
66
"esModuleInterop": true,
77
"isolatedModules": false,
8-
"lib": ["ES2020", "ES2021.String"],
8+
"lib": ["ES2023"],
99
"sourceMap": true,
1010
"strict": true /* enable all strict type-checking options */,
1111
"forceConsistentCasingInFileNames": true,

packages/databricks-vscode/src/test/e2e/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"allowImportingTsExtensions": true,
1313
"resolveJsonModule": true,
1414
"module": "ESNext",
15-
"target": "ES2021",
15+
"target": "ES2023",
16+
"lib": ["ES2023"],
1617
"isolatedModules": true,
1718
"sourceMap": true,
1819
"noImplicitAny": false,

packages/databricks-vscode/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"extends": "../../tsconfig_base.json",
33
"compilerOptions": {
44
"outDir": "out",
5-
"lib": ["ES2020", "ES2021.String", "DOM"],
5+
"lib": ["ES2023", "DOM"],
66
"rootDir": "src"
77
},
88
"references": [{"path": "../databricks-vscode-types"}],

tsconfig_base.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"sourceMap": true,
77
"allowJs": true,
88
"module": "CommonJS",
9-
"target": "ES2020",
9+
"target": "ES2023",
10+
"lib": ["ES2023"],
1011
"moduleResolution": "node",
1112
"esModuleInterop": true,
1213
"isolatedModules": true,

0 commit comments

Comments
 (0)