5
5
; Ignore "BUCK" generated dirs
6
6
<PROJECT_ROOT>/\.buckd/
7
7
8
- ; Ignore unexpected extra "@providesModule"
9
- .*/node_modules/.*/node_modules/fbjs/.*
10
-
11
- ; Ignore duplicate module providers
12
- ; For RN Apps installed via npm, "Libraries" folder is inside
13
- ; "node_modules/react-native" but in the source repo it is in the root
14
- node_modules/react-native/Libraries/react-native/React.js
15
-
16
8
; Ignore polyfills
17
9
node_modules/react-native/Libraries/polyfills/.*
18
10
19
- ; These should not be required directly
20
- ; require from fbjs/lib instead: require('fbjs/lib/warning')
21
- node_modules/warning/.*
22
-
23
11
; Flow doesn't support platforms
24
- .*/Libraries/Utilities/HMRLoadingView .js
12
+ .*/Libraries/Utilities/LoadingView .js
25
13
26
14
[untyped]
27
15
.*/node_modules/@react-native-community/cli/.*/.*
28
16
29
17
[include]
30
18
31
19
[libs]
32
- node_modules/react-native/Libraries/react-native/react-native- interface.js
20
+ node_modules/react-native/interface.js
33
21
node_modules/react-native/flow/
34
22
35
23
[options]
36
24
emoji=true
37
25
38
- esproposal.optional_chaining=enable
39
- esproposal.nullish_coalescing=enable
26
+ exact_by_default=true
27
+
28
+ format.bracket_spacing=false
40
29
41
30
module.file_ext=.js
42
31
module.file_ext=.json
43
32
module.file_ext=.ios.js
44
33
45
- module.system=haste
46
- module.system.haste.use_name_reducers=true
47
- # get basename
48
- module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1'
49
- # strip .js or .js.flow suffix
50
- module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1'
51
- # strip .ios suffix
52
- module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1'
53
- module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1'
54
- module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1'
55
- module.system.haste.paths.blacklist=.*/__tests__/.*
56
- module.system.haste.paths.blacklist=.*/__mocks__/.*
57
- module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/Libraries/.*
58
- module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/RNTester/.*
59
- module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/IntegrationTests/.*
60
- module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/react-native/react-native-implementation.js
61
- module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/polyfills/.*
62
-
63
34
munge_underscores=true
64
35
65
- 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'
36
+ module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/node_modules/react-native/\1'
37
+ 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\)$' -> '<PROJECT_ROOT>/node_modules/react-native/Libraries/Image/RelativeImageStub'
66
38
67
39
suppress_type=$FlowIssue
68
40
suppress_type=$FlowFixMe
69
41
suppress_type=$FlowFixMeProps
70
42
suppress_type=$FlowFixMeState
71
43
72
- suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)
73
- suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)?:? #[0-9]+
74
- suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
75
-
76
44
[lints]
77
45
sketchy-null-number=warn
78
46
sketchy-null-mixed=warn
@@ -81,10 +49,8 @@ untyped-type-import=warn
81
49
nonstrict-import=warn
82
50
deprecated-type=warn
83
51
unsafe-getters-setters=warn
84
- inexact-spread=warn
85
52
unnecessary-invariant=warn
86
53
signature-verification-failure=warn
87
- deprecated-utility=error
88
54
89
55
[strict]
90
56
deprecated-type
@@ -96,4 +62,4 @@ untyped-import
96
62
untyped-type-import
97
63
98
64
[version]
99
- ^0.98 .0
65
+ ^0.158 .0
0 commit comments