1.0.1 • Published 2 years ago

@tsconfig/node18-strictest-esm v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

A base TSConfig for working with Node 18 + ESM + Strictest.

Add the package to your "devDependencies":

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

Add to your tsconfig.json:

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

The tsconfig.json:

// This file was autogenerated by a script
// Equivalent to a config of: strictest extends esm extends node18
{
  "$schema": "https://json.schemastore.org/tsconfig",
  "display": "Node 18 + ESM + Strictest",
  "compilerOptions": {
    "lib": [
      "es2022"
    ],
    "module": "es2022",
    "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.