mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Don't really have time to implement the react-compiler/healthcheck
version of this script, so for now i propose we just publish this as
react-compiler-healthcheck
the command for running this would be
```
$ npx react-compiler-healthcheck --src 'whatever/**/*.*'
```
ghstack-source-id: e2c443a912
Pull Request resolved: https://github.com/facebook/react-forget/pull/2956
23 lines
602 B
JSON
23 lines
602 B
JSON
{
|
|
"extends": "@tsconfig/strictest/tsconfig.json",
|
|
"compilerOptions": {
|
|
"module": "ES2015",
|
|
"moduleResolution": "Bundler",
|
|
"rootDir": "../",
|
|
"noEmit": true,
|
|
"jsx": "react-jsxdev",
|
|
"lib": ["ES2022"],
|
|
|
|
// weaken strictness from preset
|
|
"importsNotUsedAsValues": "remove",
|
|
"noUncheckedIndexedAccess": false,
|
|
"noUnusedParameters": false,
|
|
"useUnknownInCatchVariables": false,
|
|
"target": "ES2015",
|
|
// ideally turn off only during dev, or on a per-file basis
|
|
"noUnusedLocals": false,
|
|
},
|
|
"exclude": ["node_modules"],
|
|
"include": ["src/**/*.ts"],
|
|
}
|