mirror of
https://github.com/facebook/react.git
synced 2026-02-22 03:42:05 +00:00
This PR makes all packages share the same typescript version and updates us to latest versions of typescript, ts-node, typescript-eslint/eslint-plugin and typescript-eslint/parser. I also noticed that the tsconfig we were extending (node18-strictest) was deprecated, so I switched us over to one that's more up to date. Also had to make a couple of small changes to the playground so that continues to build correctly.
21 lines
546 B
JSON
21 lines
546 B
JSON
{
|
|
"extends": "@tsconfig/strictest/tsconfig.json",
|
|
"compilerOptions": {
|
|
"declaration": true,
|
|
"outDir": "dist",
|
|
"jsx": "react-jsxdev",
|
|
|
|
// 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,
|
|
"sourceMap": true
|
|
},
|
|
"exclude": ["node_modules"],
|
|
"include": ["src/**/*.ts"]
|
|
}
|