Skip to content

Commit

Permalink
feat: add new config for node 18
Browse files Browse the repository at this point in the history
  • Loading branch information
Fun795 committed Sep 13, 2022
1 parent cd5d993 commit b993460
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ or
}
```

or

```json
{
"extends": "@byndyusoft/tsconfig/tsconfig.node18.json"
}
```

## Maintainers

- [@Byndyusoft/owners](https://github.com/orgs/Byndyusoft/teams/owners) <<[email protected]>>
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"dependencies": {
"@tsconfig/node12": "^1.0.7",
"@tsconfig/node14": "^1.0.0",
"@tsconfig/node16": "^1.0.1"
"@tsconfig/node16": "^1.0.1",
"@tsconfig/node18": "^1.0.1"
},
"devDependencies": {
"@commitlint/cli": "^12.1.4",
Expand Down
23 changes: 23 additions & 0 deletions tsconfig.node18.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"extends": "@tsconfig/node18/tsconfig.json",
"compilerOptions": {
// Project Options
"declaration": true,
"declarationMap": true,
"importHelpers": true,
"incremental": true,
"sourceMap": true,
// Linter Checks
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
// Experimental
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
// Advanced
"allowUnreachableCode": false,
"newLine": "lf",
"preserveConstEnums": true
}
}
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,11 @@
resolved "https://registry.yarnpkg.com/@tsconfig/node16/-/node16-1.0.1.tgz#a6ca6a9a0ff366af433f42f5f0e124794ff6b8f1"
integrity sha512-FTgBI767POY/lKNDNbIzgAX6miIDBs6NTCbdlDb8TrWovHsSvaVIZDlTqym29C6UqhzwcJx4CYr+AlrMywA0cA==

"@tsconfig/node18@^1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@tsconfig/node18/-/node18-1.0.1.tgz#ea5b375a9ead6b09ccbd70c3894ea069829ea1bb"
integrity sha512-sNFeK6X2ATlhlvzyH4kKYQlfHXE2f2/wxtB9ClvYXevWpmwkUT7VaSrjIN9E76Qebz8qP5JOJJ9jD3QoD/Z9TA==

"@types/glob@^7.1.1":
version "7.1.3"
resolved "https://registry.yarnpkg.com/@types/glob/-/glob-7.1.3.tgz#e6ba80f36b7daad2c685acd9266382e68985c183"
Expand Down

0 comments on commit b993460

Please sign in to comment.