mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
63fcca2856
Moves the plugin into the compiler directory. - Remove eslint-plugin-react-hooks from bundles.js - Remove eslint-plugin-react-hooks from ReactVersions.js - Remove jest.config.js - Remove babel.config-react-compiler.js - Replace babel.config.js with copy from eslint-plugin-react-compiler - Add tsup.config.ts to eslint-plugin-react-hooks - Add eslint-plugin-react-hooks to compiler release scripts
34 lines
922 B
JSON
34 lines
922 B
JSON
{
|
|
"extends": "@tsconfig/strictest/tsconfig.json",
|
|
"compilerOptions": {
|
|
"module": "ES2015",
|
|
"target": "ES2015",
|
|
"moduleResolution": "Bundler",
|
|
"lib": ["ES2020", "dom"],
|
|
"sourceMap": false,
|
|
"types": ["estree-jsx", "node"],
|
|
"downlevelIteration": true,
|
|
"paths": {
|
|
"babel-plugin-react-compiler": ["../babel-plugin-react-compiler/src"]
|
|
},
|
|
"jsx": "react-jsxdev",
|
|
"rootDir": "../..",
|
|
"baseUrl": ".",
|
|
"typeRoots": [
|
|
"../../node_modules/@types"
|
|
],
|
|
"checkJs": false,
|
|
"allowJs": false,
|
|
|
|
// weaken strictness from preset
|
|
"importsNotUsedAsValues": "remove",
|
|
"noUncheckedIndexedAccess": false,
|
|
"noUnusedParameters": false,
|
|
"useUnknownInCatchVariables": true,
|
|
// ideally turn off only during dev, or on a per-file basis
|
|
"noUnusedLocals": false,
|
|
"removeComments": true,
|
|
},
|
|
"include": ["src/**/*.ts", "__tests__/**/*.ts"]
|
|
}
|