This repository has been archived by the owner on Aug 14, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.flowconfig
45 lines (38 loc) · 1.56 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
[declarations]
<PROJECT_ROOT>/node_modules/.*
[ignore]
<PROJECT_ROOT>/node_modules/redux-persist/.*
[include]
[libs]
[lints]
all=error
# These are caused by flow-typed libdefs and must be fixed on their end.
deprecated-utility=warn
# Creates a huge amount of errors in flow-typed libdefs, which can't be fixed on our end.
dynamic-export=off
# Unsafe types are already prohibited by eslint flowtype/no-weak-types, which also allows for exceptions in test files.
unclear-type=off
[options]
# Allow importing directly from these folders.
module.name_mapper='^api' -> '<PROJECT_ROOT>/app/api'
module.name_mapper='^assets' -> '<PROJECT_ROOT>/app/assets'
module.name_mapper='^components' -> '<PROJECT_ROOT>/app/components'
module.name_mapper='^config' -> '<PROJECT_ROOT>/app/config'
module.name_mapper='^errors' -> '<PROJECT_ROOT>/app/errors'
module.name_mapper='^forms' -> '<PROJECT_ROOT>/app/forms'
module.name_mapper='^i18n' -> '<PROJECT_ROOT>/app/i18n'
module.name_mapper='^lib' -> '<PROJECT_ROOT>/app/lib'
module.name_mapper='^modals' -> '<PROJECT_ROOT>/app/modals'
module.name_mapper='^modules' -> '<PROJECT_ROOT>/app/modules'
module.name_mapper='^store' -> '<PROJECT_ROOT>/app/store'
module.name_mapper='^types' -> '<PROJECT_ROOT>/app/types'
# Stop flow from complaining about imported files with these extensions.
# (Requires the 'empty' npm package to be installed.)
module.file_ext=.js
module.file_ext=.jsx
module.file_ext=.json
module.file_ext=.css
module.file_ext=.less
module.name_mapper='.*\(.css\)' -> 'empty/object'
module.name_mapper='.*\(.less\)' -> 'empty/object'
[strict]