11[ignore]
2- ; This flowconfig is forked by platform - the only difference between them is which suffix is ignored.
2+ ; We fork some components by platform
33.*/*[.]android.js
4- ;.*/*[.]ios.js
5-
6- ; Ignore templates for 'react-native init'
7- .*/local-cli/templates/.*
8-
9- ; Ignore the Dangerfile
10- node_modules/react-native/bots/dangerfile.js
114
125; Ignore "BUCK" generated dirs
13- node_modules/react-native /\.buckd/
6+ <PROJECT_ROOT> /\.buckd/
147
158; Ignore unexpected extra "@providesModule"
169.*/node_modules/.*/node_modules/fbjs/.*
@@ -26,22 +19,11 @@ node_modules/react-native/\.buckd/
2619; Ignore metro
2720.*/node_modules/metro/.*
2821
29- ; Ignore "config-chain"'s test folder - it has a corrupt JSON file that's tripping flow
30- .*/node_modules/config-chain/test/*.
31-
32- ; These should not be required directly
33- ; require from fbjs/lib instead: require('fbjs/lib/invariant')
34- .*/node_modules/invariant/.*
35- .*/node_modules/warning/.*
36-
3722[include]
3823
3924[libs]
4025node_modules/react-native/Libraries/react-native/react-native-interface.js
4126node_modules/react-native/flow/
42- node_modules/react-native/flow-github/
43-
44- [lints]
4527
4628[options]
4729emoji=true
@@ -51,40 +33,40 @@ esproposal.nullish_coalescing=enable
5133
5234module.system=haste
5335module.system.haste.use_name_reducers=true
54- # keep the following in sync with server/haste/hasteImpl.js
5536# get basename
5637module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1'
5738# strip .js or .js.flow suffix
5839module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1'
59- # strip platform suffix
40+ # strip .ios suffix
6041module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1'
6142module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1'
6243module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1'
6344module.system.haste.paths.blacklist=.*/__tests__/.*
6445module.system.haste.paths.blacklist=.*/__mocks__/.*
65- module.system.haste.paths.whitelist=<PROJECT_ROOT>/js/.*
66- module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/Libraries/.*
67- module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/RNTester/.*
68- module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/IntegrationTests/.*
6946module.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/.*
7048
7149munge_underscores=true
7250
7351module.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+
7453# Support the library import in examples
7554module.name_mapper='^\@react-native-community/async-storage$' -> '<PROJECT_ROOT>/lib/AsyncStorage.js'
7655
56+ module.file_ext=.js
57+ module.file_ext=.jsx
58+ module.file_ext=.json
59+ module.file_ext=.native.js
60+
7761suppress_type=$FlowIssue
7862suppress_type=$FlowFixMe
7963suppress_type=$FlowFixMeProps
8064suppress_type=$FlowFixMeState
8165
82- suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*[ react_native\\(_android\\)?_oss|react_native\\(_android\\)?_fb] [a-z,_]*\\)?)\\)
83- suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*[ react_native\\(_android\\)?_oss|react_native\\(_android\\)?_fb] [a-z,_]*\\)?)\\)?:? #[0-9]+
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]+
8468suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
8569suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
8670
87- [strict]
88-
8971[version]
90- ^0.86 .0
72+ ^0.92 .0
0 commit comments