forked from pillarwallet/pillarwallet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.flowconfig
155 lines (116 loc) · 5.52 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
[ignore]
; We fork some components by platform
.*/*[.]android.js
; Ignore "BUCK" generated dirs
<PROJECT_ROOT>/\.buckd/
; Ignore polyfills
node_modules/react-native/Libraries/polyfills/.*
; These should not be required directly
; require from fbjs/lib instead: require('fbjs/lib/warning')
node_modules/warning/.*
; Flow doesn't support platforms
.*/Libraries/Utilities/LoadingView.js
; ;;; custom ignore start ;;;
<PROJECT_ROOT>/node_modules/findup/.*
; ;;; custom ignore start ;;;
[untyped]
.*/node_modules/@react-native-community/cli/.*/.*
; ;;; custom untyped start ;;;
<PROJECT_ROOT>/metro.config.js
<PROJECT_ROOT>/node_modules/react-native-vector-icons/dist/index.js.flow
<PROJECT_ROOT>/node_modules/react-native-camera/.*
<PROJECT_ROOT>/node_modules/react-native-image-view/.*
<PROJECT_ROOT>/node_modules/react-native-keyboard-aware-scroll-view/.*
<PROJECT_ROOT>/node_modules/react-native-share/.*
<PROJECT_ROOT>/node_modules/react-native-swiper/.*
<PROJECT_ROOT>/node_modules/react-native-image-view/.*
<PROJECT_ROOT>/node_modules/polished/.*
<PROJECT_ROOT>/node_modules/react-native-device-info/.*
<PROJECT_ROOT>/node_modules/react-native-keychain/.*
<PROJECT_ROOT>/node_modules/@storybook/.*/polished
<PROJECT_ROOT>/node_modules/redux-persist/.*
<PROJECT_ROOT>/node_modules/react-native-inappbrowser-reborn/.*
<PROJECT_ROOT>/node_modules/react-native-linear-gradient/.*
; ;;; custom untyped end ;;;
[include]
[libs]
node_modules/react-native/interface.js
node_modules/react-native/flow/
flow-typed
[options]
emoji=true
esproposal.optional_chaining=enable
esproposal.nullish_coalescing=enable
module.file_ext=.js
module.file_ext=.json
module.file_ext=.ios.js
munge_underscores=true
module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/node_modules/react-native/\1'
module.name_mapper='^@?[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> '<PROJECT_ROOT>/node_modules/react-native/Libraries/Image/RelativeImageStub'
module.name_mapper.extension='\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)' -> 'RelativeImageStub'
; ;;; custom paths start ;;;
module.name_mapper='^screens\/\(.*\)$' -> '<PROJECT_ROOT>/src/screens/\1'
module.name_mapper='^screens' -> '<PROJECT_ROOT>/src/screens'
module.name_mapper='^actions\/\(.*\)$' -> '<PROJECT_ROOT>/src/actions/\1'
module.name_mapper='^actions' -> '<PROJECT_ROOT>/src/actions'
module.name_mapper='^assets\/\(.*\)$' -> '<PROJECT_ROOT>/src/assets/\1'
module.name_mapper='^assets' -> '<PROJECT_ROOT>/src/assets'
module.name_mapper='^components\/\(.*\)$' -> '<PROJECT_ROOT>/src/components/\1'
module.name_mapper='^components' -> '<PROJECT_ROOT>/src/components'
module.name_mapper='^constants\/\(.*\)$' -> '<PROJECT_ROOT>/src/constants/\1'
module.name_mapper='^constants' -> '<PROJECT_ROOT>/src/constants'
module.name_mapper='^fixtures\/\(.*\)$' -> '<PROJECT_ROOT>/src/fixtures/\1'
module.name_mapper='^fixtures' -> '<PROJECT_ROOT>/src/fixtures'
module.name_mapper='^models\/\(.*\)$' -> '<PROJECT_ROOT>/src/models/\1'
module.name_mapper='^models' -> '<PROJECT_ROOT>/src/models'
module.name_mapper='^navigation\/\(.*\)$' -> '<PROJECT_ROOT>/src/navigation/\1'
module.name_mapper='^navigation' -> '<PROJECT_ROOT>/src/navigation'
module.name_mapper='^reducers\/\(.*\)$' -> '<PROJECT_ROOT>/src/reducers/\1'
module.name_mapper='^reducers' -> '<PROJECT_ROOT>/src/reducers'
module.name_mapper='^services\/\(.*\)$' -> '<PROJECT_ROOT>/src/services/\1'
module.name_mapper='^services' -> '<PROJECT_ROOT>/src/services'
module.name_mapper='^utils\/\(.*\)$' -> '<PROJECT_ROOT>/src/utils/\1'
module.name_mapper='^utils' -> '<PROJECT_ROOT>/src/utils'
module.name_mapper='^testUtils\/\(.*\)$' -> '<PROJECT_ROOT>/src/testUtils/\1'
module.name_mapper='^testUtils' -> '<PROJECT_ROOT>/src/testUtils'
module.name_mapper='^configs\/\(.*\)$' -> '<PROJECT_ROOT>/src/configs/\1'
module.name_mapper='^configs' -> '<PROJECT_ROOT>/src/configs'
module.name_mapper='^abi\/\(.*\)$' -> '<PROJECT_ROOT>/src/abi/\1'
module.name_mapper='^abi' -> '<PROJECT_ROOT>/src/abi'
module.name_mapper='^selectors\/\(.*\)$' -> '<PROJECT_ROOT>/src/selectors/\1'
module.name_mapper='^selectors' -> '<PROJECT_ROOT>/src/selectors'
module.name_mapper='^translations\/\(.*\)$' -> '<PROJECT_ROOT>/src/selectors/\1'
module.name_mapper='^translations' -> '<PROJECT_ROOT>/src/translations'
module.name_mapper='^containers\/\(.*\)$' -> '<PROJECT_ROOT>/src/containers/\1'
module.name_mapper='^containers' -> '<PROJECT_ROOT>/src/containers'
module.name_mapper='^hooks\/\(.*\)$' -> '<PROJECT_ROOT>/src/hooks/\1'
module.name_mapper='^hooks' -> '<PROJECT_ROOT>/src/hooks'
; ;;; custom paths end ;;;
suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FlowFixMeProps
suppress_type=$FlowFixMeState
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)?:? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
[lints]
sketchy-null-number=warn
sketchy-null-mixed=warn
sketchy-number=warn
untyped-type-import=warn
nonstrict-import=warn
deprecated-type=warn
unsafe-getters-setters=warn
unnecessary-invariant=warn
signature-verification-failure=warn
deprecated-utility=error
[strict]
deprecated-type
nonstrict-import
sketchy-null
unclear-type
unsafe-getters-setters
untyped-import
untyped-type-import
[version]
^0.122.0