.flowconfig 1.33 KB
Newer Older
Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
1
[ignore]
Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
2 3
; We fork some components by platform
.*/*[.]android.js
Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
4

Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
5 6
; Ignore "BUCK" generated dirs
<PROJECT_ROOT>/\.buckd/
Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
7

Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
8 9
; Ignore unexpected extra "@providesModule"
.*/node_modules/.*/node_modules/fbjs/.*
Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
10

Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
11 12 13 14 15
; 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
.*/Libraries/react-native/ReactNative.js
Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
16 17 18 19 20

[include]

[libs]
node_modules/react-native/Libraries/react-native/react-native-interface.js
Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
21 22
node_modules/react-native/flow
flow/
Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
23 24 25 26

[options]
module.system=haste

Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
27 28
experimental.strict_type_args=true

Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
29 30
munge_underscores=true

Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
31
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'
Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
32

Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
33 34 35 36
suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FixMe

Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
37 38
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-6]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-6]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
39 40
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy

Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
41 42
unsafe.enable_getters_and_setters=true

Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
43
[version]
Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
44
^0.36.0