55; Ignore "BUCK" generated dirs
66<PROJECT_ROOT>/\.buckd/
77
8- ; Ignore unexpected extra "@providesModule"
9- .*/ node_modules/.*/node_modules/fbjs /.*
8+ ; Ignore polyfills
9+ node_modules/react-native/Libraries/polyfills /.*
1010
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/.*
1514
16- ; Ignore polyfills
17- .*/Libraries/polyfills/.*
15+ ; Flow doesn't support platforms
16+ .*/Libraries/Utilities/LoadingView.js
17+
18+ ; Ignore example folder
19+ .*/example/.*
1820
19- ; Ignore metro
20- .*/node_modules/metro/.*
21+
22+ [untyped]
23+ .*/node_modules/@react-native-community/cli/.*/.*
2124
2225[include]
2326
@@ -31,39 +34,46 @@ emoji=true
3134esproposal.optional_chaining=enable
3235esproposal.nullish_coalescing=enable
3336
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/.*
37+ module.file_ext=.js
38+ module.file_ext=.json
39+ module.file_ext=.ios.js
4840
4941munge_underscores=true
5042
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'
52-
53- module.file_ext=.js
54- module.file_ext=.jsx
55- module.file_ext=.json
56- module.file_ext=.native.js
43+ module.name_mapper='^react-native$' -> '<PROJECT_ROOT>/node_modules/react-native/Libraries/react-native/react-native-implementation'
44+ module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/node_modules/react-native/\1'
45+ 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'
5746
5847suppress_type=$FlowIssue
5948suppress_type=$FlowFixMe
6049suppress_type=$FlowFixMeProps
6150suppress_type=$FlowFixMeState
6251
63- suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
64- suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
65- suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
52+ suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)
53+ suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)?:? #[0-9]+
6654suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
6755
56+ [lints]
57+ sketchy-null-number=warn
58+ sketchy-null-mixed=warn
59+ sketchy-number=warn
60+ untyped-type-import=warn
61+ nonstrict-import=warn
62+ deprecated-type=warn
63+ unsafe-getters-setters=warn
64+ inexact-spread=warn
65+ unnecessary-invariant=warn
66+ signature-verification-failure=warn
67+ deprecated-utility=error
68+
69+ [strict]
70+ deprecated-type
71+ nonstrict-import
72+ sketchy-null
73+ unclear-type
74+ unsafe-getters-setters
75+ untyped-import
76+ untyped-type-import
77+
6878[version]
69- ^0.92 .0
79+ ^0.105 .0
0 commit comments