diff --git a/README.md b/README.md index 59f9894..db1ad15 100644 --- a/README.md +++ b/README.md @@ -246,6 +246,20 @@ Add to your `tsconfig.json`: ```json "extends": "@tsconfig/node20/tsconfig.json" ``` +### Node 21 tsconfig.json + +Install: + +```sh +npm install --save-dev @tsconfig/node21 +yarn add --dev @tsconfig/node21 +``` + +Add to your `tsconfig.json`: + +```json +"extends": "@tsconfig/node21/tsconfig.json" +``` ### Nuxt tsconfig.json Install: diff --git a/bases/node21.json b/bases/node21.json new file mode 100644 index 0000000..b36fe28 --- /dev/null +++ b/bases/node21.json @@ -0,0 +1,17 @@ +{ + "$schema": "https://json.schemastore.org/tsconfig", + "display": "Node 21", + "_version": "21.0.0", + + "compilerOptions": { + "lib": ["es2023"], + "module": "node16", + "target": "es2022", + + "strict": true, + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + "moduleResolution": "node16" + } +}