2
2
; We fork some components by platform
3
3
.*/*[.]android.js
4
4
5
+ ; Ignore "BUCK" generated dirs
6
+ <PROJECT_ROOT>/\.buckd/
7
+
8
+ ; Ignore unexpected extra "@providesModule"
9
+ .*/node_modules/.*/node_modules/fbjs/.*
10
+
5
11
; Ignore duplicate module providers
6
12
; For RN Apps installed via npm, "Libraries" folder is inside
7
13
; "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/.*/.*
9
28
10
29
[include]
11
30
12
31
[libs]
13
32
node_modules/react-native/Libraries/react-native/react-native-interface.js
14
33
node_modules/react-native/flow/
15
- node_modules/react-native/flow-github/
16
34
flow-typed
17
35
18
36
[options]
@@ -21,6 +39,10 @@ emoji=true
21
39
esproposal.optional_chaining=enable
22
40
esproposal.nullish_coalescing=enable
23
41
42
+ module.file_ext=.js
43
+ module.file_ext=.json
44
+ module.file_ext=.ios.js
45
+
24
46
module.system=haste
25
47
module.system.haste.use_name_reducers=true
26
48
# get basename
@@ -33,45 +55,43 @@ module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1'
33
55
module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1'
34
56
module.system.haste.paths.blacklist=.*/__tests__/.*
35
57
module.system.haste.paths.blacklist=.*/__mocks__/.*
36
- module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/polyfills/.*
37
58
module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/Libraries/.*
59
+ module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/RNTester/.*
60
+ module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/IntegrationTests/.*
61
+ module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/react-native/react-native-implementation.js
62
+ module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/polyfills/.*
38
63
39
64
munge_underscores=true
40
65
41
66
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'
42
67
43
- module.file_ext=.js
44
- module.file_ext=.jsx
45
- module.file_ext=.json
46
- module.file_ext=.native.js
47
-
48
68
suppress_type=$FlowIssue
49
69
suppress_type=$FlowFixMe
50
70
suppress_type=$FlowFixMeProps
51
71
suppress_type=$FlowFixMeState
52
72
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
73
+ suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)
74
+ suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)?:? #[0-9]+
56
75
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
57
76
58
- include_warnings=true
77
+ [lints]
78
+ sketchy-null-number=warn
79
+ sketchy-null-mixed=warn
80
+ sketchy-number=warn
81
+ untyped-type-import=warn
82
+ nonstrict-import=warn
83
+ deprecated-type=warn
84
+ unsafe-getters-setters=warn
85
+ inexact-spread=warn
86
+ unnecessary-invariant=warn
87
+ signature-verification-failure=warn
88
+ deprecated-utility=error
59
89
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
90
+ [strict]
91
+ deprecated-type
92
+ nonstrict-import
93
+ sketchy-null
94
+ unclear-type
95
+ unsafe-getters-setters
96
+ untyped-import
97
+ untyped-type-import
0 commit comments