{
  "include": [
    "run.ts",
    "node_modules/graphql/**/*.ts"
  ],
  "compilerOptions": {
    "lib": [
      "es2022",
      "dom" // Workaround for missing web-compatible globals in `@types/node`
    ],
    "target": "es2021",
    "module": "es2022",
    "moduleResolution": "node",
    "noEmit": true,
    "isolatedModules": true,
    "verbatimModuleSyntax": true,
    "forceConsistentCasingInFileNames": true,

    // Type Checking
    // https://www.typescriptlang.org/tsconfig#Type_Checking_6248
    "strict": true,
    "useUnknownInCatchVariables": false, // FIXME part of 'strict' but is temporary disabled
    // All checks that are not part of "strict"
    "allowUnreachableCode": false,
    "allowUnusedLabels": false,
    "exactOptionalPropertyTypes": true,
    "noFallthroughCasesInSwitch": false, // TODO consider
    "noImplicitOverride": true,
    "noImplicitReturns": false, // TODO consider
    "noPropertyAccessFromIndexSignature": false, // TODO consider
    "noUncheckedIndexedAccess": false, // FIXME
    "noUnusedLocals": true,
    "noUnusedParameters": true,
    "allowSyntheticDefaultImports": true
  },
  "ts-node": {
    "esm": true,
    // Dependencies would normally be skipped, however we've got to checkout graphql-js as a source package
    "skipIgnore": true
  }
}
