mirror of
https://github.com/facebook/react.git
synced 2026-02-25 13:13:03 +00:00
## Summary This PR bumps Flow all the way to the latest 0.245.2. Most of the suppressions comes from Flow v0.239.0's change to include undefined in the return of `Array.pop`. I also enabled `react.custom_jsx_typing=true` and added custom jsx typing to match the old behavior that `React.createElement` is effectively any typed. This is necessary since various builtin components like `React.Fragment` is actually symbol in the React repo instead of `React.AbstractComponent<...>`. It can be made more accurate by customizing the `React$CustomJSXFactory` type, but I will leave it to the React team to decide. ## How did you test this change? `yarn flow` for all the renderers
46 lines
955 B
Plaintext
46 lines
955 B
Plaintext
[ignore]
|
|
.*/scripts/bench/.*
|
|
.*/build/.*
|
|
.*/fixtures/.*
|
|
# Any hidden directory
|
|
.*/\..*
|
|
|
|
# These shims are copied into external projects:
|
|
.*/rollup/shims/facebook-www/.*
|
|
.*/rollup/shims/react-native/.*
|
|
|
|
.*/node_modules/fbjs/lib/keyMirrorRecursive.js.flow
|
|
.*/node_modules/resolve/test/.*
|
|
.*/__mocks__/.*
|
|
.*/__tests__/.*
|
|
|
|
# contains modern flow syntax that requires a Flow upgrade
|
|
.*/node_modules/prettier-plugin-hermes-parser/.*
|
|
|
|
# TODO: noop should get its own inlinedHostConfig entry
|
|
.*/packages/react-noop-renderer/.*
|
|
|
|
%REACT_RENDERER_FLOW_IGNORES%
|
|
|
|
[libs]
|
|
./node_modules/fbjs/flow/lib/dev.js
|
|
./scripts/flow/environment.js
|
|
./scripts/flow/react-devtools.js
|
|
./scripts/flow/react-native-host-hooks.js
|
|
./scripts/flow/xplat.js
|
|
|
|
[lints]
|
|
untyped-type-import=error
|
|
internal-type=off
|
|
deprecated-type=off
|
|
|
|
[options]
|
|
munge_underscores=false
|
|
react.custom_jsx_typing=true
|
|
|
|
# Substituted by createFlowConfig.js:
|
|
%REACT_RENDERER_FLOW_OPTIONS%
|
|
|
|
[version]
|
|
%FLOW_VERSION%
|