22; We fork some components by platform
33.*/*[.]android.js
44
5+ ; Ignore "BUCK" generated dirs
6+ <PROJECT_ROOT>/\.buckd/
7+
8+ ; Ignore unexpected extra "@providesModule"
9+ .*/node_modules/.*/node_modules/fbjs/.*
10+
511; Ignore duplicate module providers
612; For RN Apps installed via npm, "Libraries" folder is inside
713; "node_modules/react-native" but in the source repo it is in the root
8- .*/Libraries/react-native/React.js
14+ node_modules/react-native/Libraries/react-native/React.js
15+
16+ ; Ignore polyfills
17+ node_modules/react-native/Libraries/polyfills/.*
18+
19+ ; These should not be required directly
20+ ; require from fbjs/lib instead: require('fbjs/lib/warning')
21+ node_modules/warning/.*
22+
23+ ; Flow doesn't support platforms
24+ .*/Libraries/Utilities/HMRLoadingView.js
25+
26+ [untyped]
27+ .*/node_modules/@react-native-community/cli/.*/.*
28+ .*/node_modules/react-native/Libraries/Lists/SectionList.js
929
1030[include]
1131
1232[libs]
1333node_modules/react-native/Libraries/react-native/react-native-interface.js
1434node_modules/react-native/flow/
15- node_modules/react-native/flow-github/
1635flow-typed
1736
1837[options]
@@ -21,6 +40,10 @@ emoji=true
2140esproposal.optional_chaining=enable
2241esproposal.nullish_coalescing=enable
2342
43+ module.file_ext=.js
44+ module.file_ext=.json
45+ module.file_ext=.ios.js
46+
2447module.system=haste
2548module.system.haste.use_name_reducers=true
2649# get basename
@@ -33,45 +56,43 @@ module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1'
3356module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1'
3457module.system.haste.paths.blacklist=.*/__tests__/.*
3558module.system.haste.paths.blacklist=.*/__mocks__/.*
36- module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/polyfills/.*
3759module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/Libraries/.*
60+ module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/RNTester/.*
61+ module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/IntegrationTests/.*
62+ module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/react-native/react-native-implementation.js
63+ module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/polyfills/.*
3864
3965munge_underscores=true
4066
4167module.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'
4268
43- module.file_ext=.js
44- module.file_ext=.jsx
45- module.file_ext=.json
46- module.file_ext=.native.js
47-
4869suppress_type=$FlowIssue
4970suppress_type=$FlowFixMe
5071suppress_type=$FlowFixMeProps
5172suppress_type=$FlowFixMeState
5273
53- suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
54- suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
55- suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
74+ suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)
75+ suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)?:? #[0-9]+
5676suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
5777
58- include_warnings=true
78+ [lints]
79+ sketchy-null-number=warn
80+ sketchy-null-mixed=warn
81+ sketchy-number=warn
82+ untyped-type-import=warn
83+ nonstrict-import=warn
84+ deprecated-type=warn
85+ unsafe-getters-setters=warn
86+ inexact-spread=warn
87+ unnecessary-invariant=warn
88+ signature-verification-failure=warn
89+ deprecated-utility=error
5990
60- [untyped]
61- ; bugs in react-native typings
62- .*/Libraries/Components/Navigation/NavigatorIOS.ios.js
63- .*/Libraries/Components/View/ViewPropTypes.js
64- .*/Libraries/Components/ActivityIndicator/ActivityIndicator.js
65- .*/Libraries/Components/Slider/Slider.js
66- .*/Libraries/Components/Touchable/TouchableHighlight.js
67- .*/Libraries/Components/Touchable/TouchableOpacity.js
68- .*/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.ios.js
69- .*/Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js
70- .*/Libraries/Image/Image.ios.js
71- .*/Libraries/Text/Text.js
72- .*/Libraries/LayoutAnimation/LayoutAnimation.js
73- .*/Libraries/Lists/VirtualizedSectionList.js
74- .*/Libraries/StyleSheet/processTransform.js
75- .*/Libraries/StyleSheet/StyleSheetValidation.js
76- .*/Libraries/Text/TextAncestor.js
77- .*/Libraries/YellowBox/UI/YellowBoxList.js
91+ [strict]
92+ deprecated-type
93+ nonstrict-import
94+ sketchy-null
95+ unclear-type
96+ unsafe-getters-setters
97+ untyped-import
98+ untyped-type-import
0 commit comments