Skip to content

Commit

Permalink
Node.js 22
Browse files Browse the repository at this point in the history
Signed-off-by: Sora Morimoto <[email protected]>
  • Loading branch information
smorimoto committed May 2, 2024
1 parent be6b3bb commit 2604892
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,20 @@ Add to your `tsconfig.json`:
```json
"extends": "@tsconfig/node21/tsconfig.json"
```
### Node 22 <kbd><a href="./bases/node22.json">tsconfig.json</a></kbd>

Install:

```sh
npm install --save-dev @tsconfig/node22
yarn add --dev @tsconfig/node22
```

Add to your `tsconfig.json`:

```json
"extends": "@tsconfig/node22/tsconfig.json"
```
### Nuxt <kbd><a href="./bases/nuxt.json">tsconfig.json</a></kbd>

Install:
Expand Down
16 changes: 16 additions & 0 deletions bases/node22.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Node 22",
"_version": "22.0.0",

"compilerOptions": {
"lib": ["es2023"],
"module": "node16",
"target": "es2022",

"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"moduleResolution": "node16"
}
}

0 comments on commit 2604892

Please sign in to comment.