forked from dOrgTech/GoodDAPP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.flowconfig
46 lines (38 loc) · 1.34 KB
/
.flowconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
[include]
./src
[ignore]
.*/android/.*
.*/ios/.*
.*/assets/.*
./config/.*
.*/public/.*
.*/scripts/.*
.*/node_modules/.*
[libs]
./flow-typed/.*
[options]
include_warnings=true
# https://github.com/facebook/react-native/issues/19766#issuecomment-398099206
module.system=haste
module.system.haste.use_name_reducers=true
# keep the following in sync with server/haste/hasteImpl.js
# get basename
module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1'
# strip .js or .js.flow suffix
module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1'
# strip .ios suffix
module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1'
module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1'
module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1'
module.system.haste.paths.blacklist=.*/__tests__/.*
module.system.haste.paths.blacklist=.*/__mocks__/.*
module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/polyfills/.*
module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/Libraries/.*
module.name_mapper='^react-native$' -> 'react-native-web'
module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(png\|css\)$' -> 'empty/object'
# Deal with platform-specific files
module.file_ext=.andriod.js
module.file_ext=.ios.js
module.file_ext=.web.js
module.file_ext=.js
module.file_ext=.json