This repository has been archived by the owner on Aug 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.flowconfig
86 lines (66 loc) · 2.35 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
[ignore]
; We fork some components by platform
.*/node_modules/.*/*[.]android.js
; Ignore "BUCK" generated dirs
<PROJECT_ROOT>/\.buckd/
; Ignore unexpected extra "@providesModule"
.*/node_modules/.*/node_modules/fbjs/.*
; Ignore duplicate module providers
; For RN Apps installed via npm, "Libraries" folder is inside
; "node_modules/react-native" but in the source repo it is in the root
.*/Libraries/react-native/React.js
; Ignore polyfills
.*/Libraries/polyfills/.*
; Ignore metro
.*/node_modules/metro/.*
; My custom ignores
<PROJECT_ROOT>/\.git/
<PROJECT_ROOT>/node_modules/reqwest/.+
<PROJECT_ROOT>/node_modules/fbemitter/.+
<PROJECT_ROOT>/node_modules/xdl/build/detach/.+
<PROJECT_ROOT>/node_modules/react-relay/lib/.+
[include]
[untyped]
<PROJECT_ROOT>/node_modules/react-native/Libraries/.+
<PROJECT_ROOT>/node_modules/expo/.+
<PROJECT_ROOT>/node_modules/iterall/.+
<PROJECT_ROOT>/node_modules/graphql/.+
<PROJECT_ROOT>/node_modules/express-graphql/.+
[libs]
node_modules/react-native/Libraries/react-native/react-native-interface.js
node_modules/react-native/flow/
node_modules/react-native/flow-github/
flow-typed/
[options]
emoji=true
include_warnings=true
module.system=haste
munge_underscores=true
module.file_ext=.js
module.file_ext=.ios.js
module.file_ext=.json
module.file_ext=.native.js
; This option lets you alias 'any' with a given string - useful for explaining why you’re using 'any'
; Please, do not use "fix me" suppress types and comments
suppress_type=$FlowFixMe
suppress_type=$FlowFixMeProps
suppress_type=$FlowFixMeState
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue: https://github.com/facebook/flow/issues/[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError: .+
suppress_comment=\\(.\\|\n\\)*\\$FlowAllowDynamicImport
esproposal.optional_chaining=enable
esproposal.nullish_coalescing=enable
module.name_mapper='^__generated__/\(.+\)$' -> '<PROJECT_ROOT>/src/__generated__/\1'
module.system.node.resolve_dirname=node_modules
module.system.node.resolve_dirname=src/util
[lints]
all=error
sketchy-null=off
untyped-import=off
; unclear types are used by Relay Compiler
unclear-type=off
; untyped imports are used by Relay Compiler
untyped-type-import=off
; some WTF (https://github.com/facebook/flow/issues/7473):
dynamic-export=off