diff --git a/README.md b/README.md index 2f6b8f6..b973958 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,14 @@ or } ``` +or + +```json +{ + "extends": "@byndyusoft/tsconfig/tsconfig.node18.json" +} +``` + ## Maintainers - [@Byndyusoft/owners](https://github.com/orgs/Byndyusoft/teams/owners) <> diff --git a/package.json b/package.json index 2becbbe..4499969 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/tsconfig.node18.json b/tsconfig.node18.json new file mode 100644 index 0000000..688e6f3 --- /dev/null +++ b/tsconfig.node18.json @@ -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 + } +} diff --git a/yarn.lock b/yarn.lock index 6a304ba..27c7ff5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"