forked from guardian/frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.flowconfig
51 lines (39 loc) · 1.46 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
[ignore]
.*/node_modules/fbjs/.*
.*node_modules.*/stylelint.*
[include]
[strict]
unclear-type
unsafe-getters-setters
untyped-type-import
sketchy-null
[libs]
####### STATIC APP #######
static/src/javascripts/__flow__/flow-typed
static/src/javascripts/__flow__/types
####### ATOM LIBRARY #######
node_modules/@guardian/atom-renderer/dist/__flow__/types
####### DOTCOM RENDERING #######
node_modules/@guardian/dotcom-rendering/flow-typed
[options]
emoji=true
module.file_ext=.js
module.system.node.resolve_dirname=node_modules
####### STATIC APP #######
module.system.node.resolve_dirname=static/src/javascripts
# 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-node/compat\1'
module.name_mapper='^raven' -> 'raven-js'
module.name_mapper='^videojs' -> 'video.js'
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'