.flowconfig 1.81 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 17 18 19 20 21 22 23 24 25 26 27
# 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
.*/node_modules/fbjs-haste/.*/__tests__/.*
.*/node_modules/fbjs-haste/__forks__/Map.js
.*/node_modules/fbjs-haste/__forks__/Promise.js
.*/node_modules/fbjs-haste/__forks__/fetch.js
.*/node_modules/fbjs-haste/core/ExecutionEnvironment.js
.*/node_modules/fbjs-haste/core/isEmpty.js
.*/node_modules/fbjs-haste/crypto/crc32.js
.*/node_modules/fbjs-haste/stubs/ErrorUtils.js
.*/node_modules/react-haste/React.js
.*/node_modules/react-haste/renderers/dom/ReactDOM.js
.*/node_modules/react-haste/renderers/shared/event/eventPlugins/ResponderEventPlugin.js
Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
28 29 30 31 32 33 34 35

# 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
36 37 38 39
.*/node_modules/jest-cli/.*

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

[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
49 50 51 52 53
munge_underscores=true

module.name_mapper='^image![a-zA-Z0-9$_-]+$' -> 'GlobalImageStub'
module.name_mapper='^[./a-zA-Z0-9$_-]+\.png$' -> 'RelativeImageStub'

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

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

[version]
Gaëtan Renaudeau's avatar
Gaëtan Renaudeau committed
63
0.18.1