.flowconfig 1.45 KB
Newer Older
Marek Kotewicz's avatar
init  
Marek Kotewicz committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[ignore]
; We fork some components by platform
.*/*[.]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
fro's avatar
fro committed
15
16
17
18
19
20

; Ignore polyfills
.*/Libraries/polyfills/.*

; Ignore metro
.*/node_modules/metro/.*
Marek Kotewicz's avatar
init  
Marek Kotewicz committed
21
22
23
24
25

[include]

[libs]
node_modules/react-native/Libraries/react-native/react-native-interface.js
fro's avatar
fro committed
26
27
node_modules/react-native/flow/
node_modules/react-native/flow-github/
Marek Kotewicz's avatar
init  
Marek Kotewicz committed
28
29

[options]
fro's avatar
fro committed
30
emoji=true
Marek Kotewicz's avatar
init  
Marek Kotewicz committed
31

fro's avatar
fro committed
32
module.system=haste
Marek Kotewicz's avatar
init  
Marek Kotewicz committed
33
34
35
36
37

munge_underscores=true

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\)$' -> 'RelativeImageStub'

fro's avatar
fro committed
38
39
40
41
42
module.file_ext=.js
module.file_ext=.jsx
module.file_ext=.json
module.file_ext=.native.js

Marek Kotewicz's avatar
init  
Marek Kotewicz committed
43
44
suppress_type=$FlowIssue
suppress_type=$FlowFixMe
fro's avatar
fro committed
45
46
suppress_type=$FlowFixMeProps
suppress_type=$FlowFixMeState
Marek Kotewicz's avatar
init  
Marek Kotewicz committed
47

fro's avatar
fro committed
48
49
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
Marek Kotewicz's avatar
init  
Marek Kotewicz committed
50
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
fro's avatar
fro committed
51
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
Marek Kotewicz's avatar
init  
Marek Kotewicz committed
52
53

[version]
fro's avatar
fro committed
54
^0.67.0