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/.*/.*
28
+ .*/node_modules/react-native/Libraries/Lists/SectionList.js
9
29
10
30
[include]
11
31
12
32
[libs]
13
33
node_modules/react-native/Libraries/react-native/react-native-interface.js
14
34
node_modules/react-native/flow/
15
- node_modules/react-native/flow-github/
16
35
flow-typed
17
36
18
37
[options]
@@ -21,6 +40,10 @@ emoji=true
21
40
esproposal.optional_chaining=enable
22
41
esproposal.nullish_coalescing=enable
23
42
43
+ module.file_ext=.js
44
+ module.file_ext=.json
45
+ module.file_ext=.ios.js
46
+
24
47
module.system=haste
25
48
module.system.haste.use_name_reducers=true
26
49
# get basename
@@ -33,45 +56,43 @@ module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1'
33
56
module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1'
34
57
module.system.haste.paths.blacklist=.*/__tests__/.*
35
58
module.system.haste.paths.blacklist=.*/__mocks__/.*
36
- module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/polyfills/.*
37
59
module.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/.*
38
64
39
65
munge_underscores=true
40
66
41
67
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
68
43
- module.file_ext=.js
44
- module.file_ext=.jsx
45
- module.file_ext=.json
46
- module.file_ext=.native.js
47
-
48
69
suppress_type=$FlowIssue
49
70
suppress_type=$FlowFixMe
50
71
suppress_type=$FlowFixMeProps
51
72
suppress_type=$FlowFixMeState
52
73
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]+
56
76
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
57
77
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
59
90
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