mirror of
https://github.com/facebook/react.git
synced 2026-02-23 20:23:02 +00:00
ghstack-source-id: a1776f97d5f7d4d8e02886906eb001e358628fc8 Pull Request resolved: https://github.com/facebook/react-forget/pull/2967
39 lines
1.1 KiB
JSON
39 lines
1.1 KiB
JSON
{
|
|
"extends": "@tsconfig/strictest/tsconfig.json",
|
|
"compilerOptions": {
|
|
"module": "ES2015",
|
|
"moduleResolution": "Bundler",
|
|
"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",
|
|
}
|
|
}
|
|
}
|