Skip to content

Instantly share code, notes, and snippets.

@spikebrehm
Created February 16, 2017 23:34
Show Gist options
  • Save spikebrehm/f3c94b61314879a89e68cc21a816de34 to your computer and use it in GitHub Desktop.
Save spikebrehm/f3c94b61314879a89e68cc21a816de34 to your computer and use it in GitHub Desktop.
[ignore]
# This config is based on the `.flowconfig` file generated by `react-native
# init`.
# We fork some components by platform
.*/*[.]android.js
# 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
.*/Libraries/react-native/ReactNative.js
# Getting a bunch of errors in react-native code.
# https://github.com/facebook/react-native/issues/11099
# TODO(tech-debt-cleanup): When we upgrade to RN >= 0.41, remove this.
.*/node_modules/react-native/Libraries/.*
.*/node_modules/react-native/packager/.*
# .*/node_modules/react-native/lib/.*
.*/node_modules/react-native/local-cli/.*
.*/node_modules/react-native-permissions/Example/.*
# These things purposefully have syntax errors
.*/node_modules/npmconf/test/fixtures/.*
.*/node_modules/config-chain/test/.*
[include]
[libs]
node_modules/react-native/Libraries/react-native/react-native-interface.js
node_modules/react-native/flow
flow/
[options]
# For some reason, `react-native` is not found. Maybe due to over-agressive ignores
# up above?
# module.name_mapper='\(react-native\)' -> 'empty/object'
module.system=haste
experimental.strict_type_args=true
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'
suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FixMe
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-7]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-7]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
unsafe.enable_getters_and_setters=true
[version]
^0.33.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment