Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@tsconfig/node18-strictest

tsconfig45.4kMITdeprecated1.0.0

TypeScript 5.0 supports combining TSConfigs using array syntax in extends

A base TSConfig for working with Node 18 + Strictest.

tsconfig, node18-strictest

readme

A base TSConfig for working with Node 18 + Strictest.

Add the package to your "devDependencies":

npm install --save-dev @tsconfig/node18-strictest
yarn add --dev @tsconfig/node18-strictest

Add to your tsconfig.json:

"extends": "@tsconfig/node18-strictest/tsconfig.json"

The tsconfig.json:

// This file was autogenerated by a script
// Equivalent to a config of: strictest extends node18
{
  "$schema": "https://json.schemastore.org/tsconfig",
  "display": "Node 18 + Strictest",
  "compilerOptions": {
    "lib": [
      "es2022"
    ],
    "module": "commonjs",
    "target": "es2022",
    "strict": true,
    "esModuleInterop": true,
    "skipLibCheck": true,
    "forceConsistentCasingInFileNames": true,
    "moduleResolution": "node",
    "allowUnusedLabels": false,
    "allowUnreachableCode": false,
    "exactOptionalPropertyTypes": true,
    "noFallthroughCasesInSwitch": true,
    "noImplicitOverride": true,
    "noImplicitReturns": true,
    "noPropertyAccessFromIndexSignature": true,
    "noUncheckedIndexedAccess": true,
    "noUnusedLocals": true,
    "noUnusedParameters": true,
    "importsNotUsedAsValues": "error",
    "checkJs": true
  }
}

You can find the code here.