forked from guardian/frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.flowconfig
63 lines (49 loc) · 1.97 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
[ignore]
.*/node_modules/fbjs/.*
.*node_modules.*/stylelint.*
.*/node_modules/preact/.*
.*/node_modules/emotion/.*
.*/node_modules/emotion-utils/.*
.*/node_modules/babel-plugin-emotion/.*
[include]
[libs]
####### STATIC APP #######
static/src/javascripts/__flow__/flow-typed
static/src/javascripts/__flow__/types
####### UI #######
ui/src/__flow__/flow-typed
ui/src/__flow__/types.js
ui/src/__flow__/preact.js
[options]
emoji=true
module.file_ext=.js
module.file_ext=.jsx
module.system.node.resolve_dirname=node_modules
module.system.node.resolve_dirname=ui/node_modules
####### STATIC APP #######
module.system.node.resolve_dirname=static/src/javascripts
module.system.node.resolve_dirname=static/src/javascripts-legacy
# paths that are aliased in webapck
module.name_mapper='^admin' -> 'projects/admin'
module.name_mapper='^common' -> 'projects/common'
module.name_mapper='^facia' -> 'projects/facia'
module.name_mapper='^membership' -> 'projects/membership'
module.name_mapper='^commercial' -> 'projects/commercial'
module.name_mapper='^journalism' -> 'projects/journalism'
module.name_mapper='^svgs' -> '<PROJECT_ROOT>/static/src/inline-svgs'
# modules that go by different names in webpack
module.name_mapper='^lodash\(.*\)$' -> 'lodash-amd/compat\1'
module.name_mapper='^picturefill' -> 'projects/common/utils/picturefill'
module.name_mapper='^raven' -> 'raven-js'
module.name_mapper='^EventEmitter' -> 'wolfy87-eventemitter'
module.name_mapper='^videojs' -> 'video.js'
module.name_mapper='^stripe' -> 'stripe/stripe.min'
module.name_mapper='^ophan/ng' -> 'ophan-tracker-js'
module.name_mapper='^ophan/embed' -> 'ophan-tracker-js/build/ophan.embed'
module.name_mapper='^raw-loader!.*$' -> '__flow__/stubs/raw'
module.name_mapper.extension='svg' -> '__flow__/stubs/svg'
####### UI #######
module.system.node.resolve_dirname=ui/src
module.name_mapper='React/JSX' -> 'Preact/h'
module.name_mapper.extension='css' -> '__flow__/stubs/css'
module.name_mapper.extension='js.scss' -> '__flow__/stubs/js-scss'