-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
.flowconfig
85 lines (63 loc) · 2.33 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
; https://flow.org/en/docs/config/ignore/
[ignore]
<PROJECT_ROOT>/\.git/.*
.+/.+\.gzip\.js
.+/\.next/.+
; https://flow.org/en/docs/config/untyped/
[untyped]
; https://flow.org/en/docs/config/declarations/
[declarations]
.+/node_modules/.+
; https://flow.org/en/docs/config/libs/
[libs]
./flow-typed/
; These lints are enabled in normal mode. Consult [strict] mode to see what additional lints
; are enabled in strict mode. Only disabled rules in normal mode should be added to strict mode.
;
; https://flow.org/en/docs/config/lints/
[lints]
all=error
sketchy-null-bool=off
unclear-type=off
untyped-import=off
; Flow standard is now to use `{ }` for strict objects and `{ key: value, ... }` for open objects,
; so this option should always be `off`.
ambiguous-object-type=off
; This setting complements [lints] section: all the enabled lints still throw errors + these
; additional lints are enabled only in strict mode (no need to list here every lint). Local
; strict mode behaves the same like strict mode except it turns off 'nonstrict-import' rule.
;
; https://flow.org/en/docs/strict/
[strict]
sketchy-null-bool
unclear-type
untyped-import
; https://flow.org/en/docs/config/options/
[options]
emoji=true
exact_by_default=true
include_warnings=true
; TODO: enable (when other tools support the syntax)
use_mixed_in_catch_variables=false
facebook.fbt=FbtWithoutString
; https://flow.org/en/docs/enums/
enums=true
; This enables new react JSX transforms in flow
react.runtime=automatic
; Allow dynamic `require(path.join(__dirname, 'myFile.json'))`
module.ignore_non_literal_requires=true
; This option lets you alias 'any' with a given string - useful for explaining why you’re using 'any'.
suppress_type=$FlowFixMe
; This option is always ON in the strict mode. We are enabling it even for the classic mode.
; Function parameters are considered const (i.e., treated as if they were declared with const rather than let).
experimental.const_params=true
; https://flow.org/en/docs/react/multiplatform
experimental.multi_platform=true
experimental.multi_platform.extensions=.ios
experimental.multi_platform.extensions=.android
jest_integration=true
relay_integration=true
relay_integration.module_prefix=./__generated__/
; TODO: consider removing the following excludes
relay_integration.excludes=.*/__tests__/.*
relay_integration.excludes=.*/__flowtests__/.*