forked from LN-Zap/zap-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.flowconfig
38 lines (31 loc) · 1.41 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
[ignore]
<PROJECT_ROOT>/resources/.*
<PROJECT_ROOT>/release/.*
<PROJECT_ROOT>/dist/.*
<PROJECT_ROOT>/dll/.*
<PROJECT_ROOT>/icons/.*
<PROJECT_ROOT>/storybook-static/.*
<PROJECT_ROOT>/.git/.*
.*/node_modules/config-chain/test/broken.json
[include]
[libs]
flow-typed
[options]
esproposal.class_static_fields=enable
esproposal.class_instance_fields=enable
esproposal.export_star_as=enable
module.system.node.resolve_dirname=node_modules
# Map images to WebpackAsset tyoe def
module.name_mapper.extension='png' -> '<PROJECT_ROOT>/flow/WebpackAsset.js.flow'
module.name_mapper.extension='jpg' -> '<PROJECT_ROOT>/flow/WebpackAsset.js.flow'
module.name_mapper.extension='svg' -> '<PROJECT_ROOT>/flow/WebpackAsset.js.flow'
# Map webpack resolved module imports to the app directory
# Example: components/Foo -> `<project_root>/src/components/Foo`
module.name_mapper='^components/\(.*\)$' -> '<PROJECT_ROOT>/renderer/components/\1'
module.name_mapper='^containers/\(.*\)$' -> '<PROJECT_ROOT>/renderer/containers/\1'
module.name_mapper='^reducers/\(.*\)$' -> '<PROJECT_ROOT>/renderer/reducers/\1'
module.name_mapper='^store/\(.*\)$' -> '<PROJECT_ROOT>/renderer/store/\1'
module.name_mapper='^themes/\(.*\)$' -> '<PROJECT_ROOT>/renderer/themes/\1'
module.name_mapper='^hocs/\(.*\)$' -> '<PROJECT_ROOT>/renderer/hocs/\1'
module.name_mapper='^hooks/\(.*\)$' -> '<PROJECT_ROOT>/renderer/hooks/\1'
module.name_mapper='^@zap/\(.*\)$' -> '<PROJECT_ROOT>/\1'