Home / File/ tsconfig.json — react Source File

tsconfig.json — react Source File

Architecture documentation for tsconfig.json, a json file in the react codebase.

Entity Profile

Source Code

{
  "extends": "@tsconfig/strictest/tsconfig.json",
  "compilerOptions": {
    "module": "ES2015",
    "moduleResolution": "Bundler",
    "rootDir": "src",
    "noEmit": true,
    "jsx": "react-jsxdev",
    // weaken strictness from preset
    "importsNotUsedAsValues": "remove",
    "noUncheckedIndexedAccess": false,
    "noUnusedParameters": false,
    "stripInternal": true,
    "useUnknownInCatchVariables": true,
    "target": "ES2015",
    // ideally turn off only during dev, or on a per-file basis
    "noUnusedLocals": false,
    "removeComments": true,
    "declaration": true,
  },
  "exclude": [
    "node_modules",
    "src/__tests__/fixtures"
  ],
  "include": [
    "src/**/*.ts"
  ],
  "ts-node": {
    "transpileOnly": true,
    // these options are overrides used only by ts-node
    // same as the --compilerOptions flag and the TS_NODE_COMPILER_OPTIONS environment variable
    "compilerOptions": {
      "module": "NodeNext",
      "moduleResolution": "NodeNext",
    }
  }
}

Frequently Asked Questions

What does tsconfig.json do?
tsconfig.json is a source file in the react codebase, written in json.
Where is tsconfig.json in the architecture?
tsconfig.json is located at compiler/packages/babel-plugin-react-compiler/tsconfig.json (directory: compiler/packages/babel-plugin-react-compiler).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free