5
5
; Ignore "BUCK" generated dirs
6
6
<PROJECT_ROOT>/\.buckd/
7
7
8
- ; Ignore unexpected extra "@providesModule"
9
- .*/ node_modules/.*/node_modules/fbjs /.*
8
+ ; Ignore polyfills
9
+ node_modules/react-native/Libraries/polyfills /.*
10
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
- .*/Libraries/react-native/React.js
11
+ ; These should not be required directly
12
+ ; require from fbjs/lib instead: require('fbjs/lib/warning')
13
+ node_modules/warning/.*
15
14
16
- ; Ignore polyfills
17
- .*/Libraries/polyfills/.*
15
+ ; Flow doesn't support platforms
16
+ .*/Libraries/Utilities/LoadingView.js
18
17
19
- ; Ignore metro
20
- .*/node_modules/metro /.*
18
+ [untyped]
19
+ .*/node_modules/@react-native-community/cli/.* /.*
21
20
22
21
[include]
23
22
@@ -31,42 +30,51 @@ emoji=true
31
30
esproposal.optional_chaining=enable
32
31
esproposal.nullish_coalescing=enable
33
32
34
- module.system=haste
35
- module.system.haste.use_name_reducers=true
36
- # get basename
37
- module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1'
38
- # strip .js or .js.flow suffix
39
- module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1'
40
- # strip .ios suffix
41
- module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1'
42
- module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1'
43
- module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1'
44
- module.system.haste.paths.blacklist=.*/__tests__/.*
45
- module.system.haste.paths.blacklist=.*/__mocks__/.*
46
- module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/polyfills/.*
47
- module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/Libraries/.*
33
+ module.file_ext=.js
34
+ module.file_ext=.json
35
+ module.file_ext=.ios.js
48
36
49
37
munge_underscores=true
50
38
51
- 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'
39
+ server.max_workers=1
52
40
53
41
# Support the library import in examples
54
42
module.name_mapper='^\@react-native-community/async-storage$' -> '<PROJECT_ROOT>/lib/AsyncStorage.js'
55
43
56
- module.file_ext=.js
57
- module.file_ext=.jsx
58
- module.file_ext=.json
59
- module.file_ext=.native.js
44
+ module.name_mapper='^react-native$' -> '<PROJECT_ROOT>/node_modules/react-native/Libraries/react-native/react-native-implementation'
45
+ module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/node_modules/react-native/\1'
46
+ 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'
60
47
61
48
suppress_type=$FlowIssue
62
49
suppress_type=$FlowFixMe
63
50
suppress_type=$FlowFixMeProps
64
51
suppress_type=$FlowFixMeState
65
52
66
- suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
67
- suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
68
- suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
53
+ suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)
54
+ suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)?:? #[0-9]+
69
55
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
70
56
57
+ [lints]
58
+ sketchy-null-number=warn
59
+ sketchy-null-mixed=warn
60
+ sketchy-number=warn
61
+ untyped-type-import=warn
62
+ nonstrict-import=warn
63
+ deprecated-type=warn
64
+ unsafe-getters-setters=warn
65
+ inexact-spread=warn
66
+ unnecessary-invariant=warn
67
+ signature-verification-failure=warn
68
+ deprecated-utility=error
69
+
70
+ [strict]
71
+ deprecated-type
72
+ nonstrict-import
73
+ sketchy-null
74
+ unclear-type
75
+ unsafe-getters-setters
76
+ untyped-import
77
+ untyped-type-import
78
+
71
79
[version]
72
- ^0.92 .0
80
+ ^0.105 .0
0 commit comments