/ example / .flowconfig
.flowconfig
 1  [ignore]
 2  ; We fork some components by platform
 3  .*/*[.]android.js
 4  
 5  ; Ignore "BUCK" generated dirs
 6  <PROJECT_ROOT>/\.buckd/
 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  .*/Libraries/react-native/React.js
15  
16  ; Ignore polyfills
17  .*/Libraries/polyfills/.*
18  
19  ; Ignore metro
20  .*/node_modules/metro/.*
21  
22  [include]
23  
24  [libs]
25  node_modules/react-native/Libraries/react-native/react-native-interface.js
26  node_modules/react-native/flow/
27  node_modules/react-native/flow-github/
28  
29  [options]
30  emoji=true
31  
32  module.system=haste
33  module.system.haste.use_name_reducers=true
34  # get basename
35  module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1'
36  # strip .js or .js.flow suffix
37  module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1'
38  # strip .ios suffix
39  module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1'
40  module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1'
41  module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1'
42  module.system.haste.paths.blacklist=.*/__tests__/.*
43  module.system.haste.paths.blacklist=.*/__mocks__/.*
44  module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/polyfills/.*
45  module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/Libraries/.*
46  
47  munge_underscores=true
48  
49  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'
50  
51  module.file_ext=.js
52  module.file_ext=.jsx
53  module.file_ext=.json
54  module.file_ext=.native.js
55  
56  suppress_type=$FlowIssue
57  suppress_type=$FlowFixMe
58  suppress_type=$FlowFixMeProps
59  suppress_type=$FlowFixMeState
60  
61  suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
62  suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
63  suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
64  suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
65  
66  [version]
67  ^0.75.0