forked from facebook/relay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.flowconfig
57 lines (49 loc) · 2.13 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
[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
# keep the following in sync with server/haste/hasteImpl.js
# 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 .ios suffix
module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1'
module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1'
module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1'
module.system.haste.paths.blacklist=.*/__tests__/.*
module.system.haste.paths.blacklist=.*/__mocks__/.*
module.system.haste.paths.blacklist=<PROJECT_ROOT>/packages/react-relay/.*
module.system.haste.paths.blacklist=<PROJECT_ROOT>/packages/babel-plugin-relay/invariant.js
module.system.haste.paths.whitelist=<PROJECT_ROOT>/packages/.*
module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/fbjs/lib/.*
module.name_mapper='^ReactDOM$' -> 'react-dom'
; TODO(T25740028) once we're fully on babylon 7, we can remove this hack.
module.name_mapper='^metro-babylon7$' -> 'babylon'
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.73.0