forked from facebook/relay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.flowconfig
50 lines (41 loc) · 1.61 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
[ignore]
.*/__tests__/.*
.*/**/*.native.js
<PROJECT_ROOT>/dist/.*
<PROJECT_ROOT>/examples/.*
<PROJECT_ROOT>/node_modules/react/node_modules/.*
<PROJECT_ROOT>/node_modules/react-dom/node_modules/.*
<PROJECT_ROOT>/node_modules/react-static-container/node_modules/.*
<PROJECT_ROOT>/website-prototyping-tools/node_modules/.*
<PROJECT_ROOT>/website/node_modules/.*
; TODO: Update `iterall` to Flow 0.66
<PROJECT_ROOT>/node_modules/graphql/node_modules/iterall/.*
[libs]
flow
node_modules/fbjs/flow/lib
[options]
module.system=haste
module.system.haste.use_name_reducers=true
# 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 .native suffix
module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1'
module.system.haste.paths.blacklist=.*/__tests__/.*
module.system.haste.paths.blacklist=.*/__mocks__/.*
module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/fbjs/lib/.*
module.name_mapper='^ReactDOM$' -> 'react-dom'
esproposal.class_static_fields=enable
esproposal.class_instance_fields=enable
munge_underscores=true
suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FlowFixMeProps
suppress_type=$FlowFixMeState
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*oss[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*oss[a-z,_]*\\)?)\\)?:? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
[version]
^0.77.0