mirror of
https://github.com/facebook/react.git
synced 2026-02-25 22:25:09 +00:00
42 lines
1.1 KiB
JSON
42 lines
1.1 KiB
JSON
{
|
|
"extends": "@tsconfig/strictest/tsconfig.json",
|
|
"compilerOptions": {
|
|
"module": "ES2015",
|
|
"moduleResolution": "Bundler",
|
|
"declaration": true,
|
|
"declarationDir": "./dist",
|
|
"declarationMap": false,
|
|
"rootDir": "src",
|
|
"outDir": "dist",
|
|
// https://github.com/microsoft/TypeScript/issues/30925
|
|
"tsBuildInfoFile": "dist/tsconfig.tsbuildinfo",
|
|
"jsx": "react-jsxdev",
|
|
// weaken strictness from preset
|
|
"importsNotUsedAsValues": "remove",
|
|
"noUncheckedIndexedAccess": false,
|
|
"noUnusedParameters": false,
|
|
"useUnknownInCatchVariables": true,
|
|
"target": "ES2015",
|
|
// ideally turn off only during dev, or on a per-file basis
|
|
"noUnusedLocals": false,
|
|
"composite": true,
|
|
"removeComments": 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",
|
|
}
|
|
}
|
|
}
|