Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update base TSConfig to options supported by Node 22 #4481

Merged
merged 1 commit into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions devTools/tsconfigs/tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,15 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@tsconfig/node22/tsconfig.json",
"compilerOptions": {
"module": "commonjs",
"strict": true,
"esModuleInterop": true,
"resolveJsonModule": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true,
"composite": true,

"declaration": true,
"declarationMap": true,

// We start with https://github.com/tsconfig/bases/blob/master/bases/node14.json then drop:
// "lib": ["es2020"],
// "target": "es2020",

"lib": ["dom", "dom.iterable", "es2020", "es2021", "es2022", "es2023"],
"target": "es2019",

"alwaysStrict": true,
"noImplicitReturns": true,
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@
"@rmp135/sql-ts": "^2.1.0",
"@testing-library/jest-dom": "^6.1.3",
"@testing-library/react": "^12.1.5",
"@tsconfig/node22": "^22.0.0",
"@types/bcrypt": "^5.0.0",
"@types/chunk-text": "^1.0.0",
"@types/codemirror": "^5.60.5",
Expand Down
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5431,6 +5431,13 @@ __metadata:
languageName: node
linkType: hard

"@tsconfig/node22@npm:^22.0.0":
version: 22.0.0
resolution: "@tsconfig/node22@npm:22.0.0"
checksum: 10/9fc45789304640e1e37e1f1e04c02dca593c290d4f1cb55af7e9cab799fb2c6356e1cc15ee9f140185591a81f491a4c7f2d6c08c1e5a3d758658ba69f1afee6d
languageName: node
linkType: hard

"@tufjs/canonical-json@npm:2.0.0":
version: 2.0.0
resolution: "@tufjs/canonical-json@npm:2.0.0"
Expand Down Expand Up @@ -11762,6 +11769,7 @@ __metadata:
"@testing-library/jest-dom": "npm:^6.1.3"
"@testing-library/react": "npm:^12.1.5"
"@tippyjs/react": "npm:^4.2.6"
"@tsconfig/node22": "npm:^22.0.0"
"@types/bcrypt": "npm:^5.0.0"
"@types/chunk-text": "npm:^1.0.0"
"@types/codemirror": "npm:^5.60.5"
Expand Down
Loading