.flowconfig 1.87 KB
Newer Older
Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
1 2 3 4 5 6 7 8 9
[ignore]

# We fork some components by platform.
.*/*.web.js
.*/*.android.js

# Some modules have their own node_modules with overlap
.*/node_modules/node-haste/.*

Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
10 11 12 13 14 15 16
# Ugh
.*/node_modules/babel.*
.*/node_modules/babylon.*
.*/node_modules/invariant.*

# Ignore react and fbjs where there are overlaps, but don't ignore
# anything that react-native relies on
17 18 19 20 21 22 23 24 25 26 27 28 29
.*/node_modules/fbjs/lib/Map.js
.*/node_modules/fbjs/lib/Promise.js
.*/node_modules/fbjs/lib/fetch.js
.*/node_modules/fbjs/lib/ExecutionEnvironment.js
.*/node_modules/fbjs/lib/isEmpty.js
.*/node_modules/fbjs/lib/crc32.js
.*/node_modules/fbjs/lib/ErrorUtils.js

# Flow has a built-in definition for the 'react' module which we prefer to use
# over the currently-untyped source
.*/node_modules/react/react.js
.*/node_modules/react/lib/React.js
.*/node_modules/react/lib/ReactDOM.js
Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
30 31 32 33 34 35 36 37

# Ignore commoner tests
.*/node_modules/commoner/test/.*

# See https://github.com/facebook/flow/issues/442
.*/react-tools/node_modules/commoner/lib/reader.js

# Ignore jest
Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
38 39 40 41
.*/node_modules/jest-cli/.*

# Ignore Website
.*/website/.*
Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
42 43 44 45 46 47 48 49 50

[include]

[libs]
node_modules/react-native/Libraries/react-native/react-native-interface.js

[options]
module.system=haste

Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
51 52 53
munge_underscores=true

module.name_mapper='^image![a-zA-Z0-9$_-]+$' -> 'GlobalImageStub'
54
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\)$' -> 'RelativeImageStub'
Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
55

Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
56 57 58 59
suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FixMe

60 61
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(2[0-1]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(2[0-1]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
62 63 64
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy

[version]
65
0.21.0