Files
callstack__react-native-tes…/.flowconfig
T
Michał Pierzchała 1c8eb106a5 chore: update metro and merge deps (#124)
### Summary

We have a security alert around `merge` so I bumped that, also upgraded to latest metro preset version (it's still Node 8 compatible), updated RN to 0.58.6

Removed the version check for Flow as we always use local version anyway.

### Test plan

Check build directory
2019-03-01 15:47:39 +01:00

78 lines
2.8 KiB
Plaintext

[ignore]
; We fork some components by platform
.*/*[.]android.js
; Ignore duplicate module providers
; For RN Apps installed via npm, "Libraries" folder is inside
; "node_modules/react-native" but in the source repo it is in the root
.*/Libraries/react-native/React.js
[include]
[libs]
node_modules/react-native/Libraries/react-native/react-native-interface.js
node_modules/react-native/flow/
node_modules/react-native/flow-github/
flow-typed
[options]
emoji=true
esproposal.optional_chaining=enable
esproposal.nullish_coalescing=enable
module.system=haste
module.system.haste.use_name_reducers=true
# get basename
module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1'
# strip .js or .js.flow suffix
module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1'
# strip .ios suffix
module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1'
module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1'
module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1'
module.system.haste.paths.blacklist=.*/__tests__/.*
module.system.haste.paths.blacklist=.*/__mocks__/.*
module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/polyfills/.*
module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/Libraries/.*
munge_underscores=true
module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
module.file_ext=.js
module.file_ext=.jsx
module.file_ext=.json
module.file_ext=.native.js
suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FlowFixMeProps
suppress_type=$FlowFixMeState
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
include_warnings=true
[untyped]
; bugs in react-native typings
.*/Libraries/Components/Navigation/NavigatorIOS.ios.js
.*/Libraries/Components/View/ViewPropTypes.js
.*/Libraries/Components/ActivityIndicator/ActivityIndicator.js
.*/Libraries/Components/Slider/Slider.js
.*/Libraries/Components/Touchable/TouchableHighlight.js
.*/Libraries/Components/Touchable/TouchableOpacity.js
.*/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.ios.js
.*/Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js
.*/Libraries/Image/Image.ios.js
.*/Libraries/Text/Text.js
.*/Libraries/LayoutAnimation/LayoutAnimation.js
.*/Libraries/Lists/VirtualizedSectionList.js
.*/Libraries/StyleSheet/processTransform.js
.*/Libraries/StyleSheet/StyleSheetValidation.js
.*/Libraries/Text/TextAncestor.js
.*/Libraries/YellowBox/UI/YellowBoxList.js