2019-02-24 02:52:56 +00:00
|
|
|
[ignore]
|
2019-02-24 04:57:12 +00:00
|
|
|
; This flowconfig is forked by platform - the only difference between them is which suffix is ignored.
|
2019-02-24 02:52:56 +00:00
|
|
|
.*/*[.]android.js
|
2019-02-24 04:57:12 +00:00
|
|
|
;.*/*[.]ios.js
|
|
|
|
|
|
|
|
; Ignore templates for 'react-native init'
|
|
|
|
.*/local-cli/templates/.*
|
|
|
|
|
|
|
|
; Ignore the Dangerfile
|
|
|
|
node_modules/react-native/bots/dangerfile.js
|
2019-02-24 02:52:56 +00:00
|
|
|
|
|
|
|
; Ignore "BUCK" generated dirs
|
2019-02-24 04:57:12 +00:00
|
|
|
node_modules/react-native/\.buckd/
|
2019-02-24 02:52:56 +00:00
|
|
|
|
|
|
|
; Ignore unexpected extra "@providesModule"
|
|
|
|
.*/node_modules/.*/node_modules/fbjs/.*
|
|
|
|
|
2019-03-03 06:39:57 +00:00
|
|
|
; Ignore extra CameraRoll
|
|
|
|
.*/node_modules/react-native/Libraries/CameraRoll/CameraRoll.js
|
|
|
|
|
2019-02-24 02:52:56 +00:00
|
|
|
; 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
|
|
|
|
|
|
|
|
; Ignore polyfills
|
|
|
|
.*/Libraries/polyfills/.*
|
|
|
|
|
|
|
|
; Ignore metro
|
|
|
|
.*/node_modules/metro/.*
|
|
|
|
|
2019-02-24 04:57:12 +00:00
|
|
|
; Ignore "config-chain"'s test folder - it has a corrupt JSON file that's tripping flow
|
|
|
|
.*/node_modules/config-chain/test/*.
|
|
|
|
|
|
|
|
; These should not be required directly
|
|
|
|
; require from fbjs/lib instead: require('fbjs/lib/invariant')
|
|
|
|
.*/node_modules/invariant/.*
|
|
|
|
.*/node_modules/warning/.*
|
|
|
|
|
2019-02-24 02:52:56 +00:00
|
|
|
[include]
|
|
|
|
|
|
|
|
[libs]
|
|
|
|
node_modules/react-native/Libraries/react-native/react-native-interface.js
|
|
|
|
node_modules/react-native/flow/
|
|
|
|
node_modules/react-native/flow-github/
|
|
|
|
|
2019-02-24 04:57:12 +00:00
|
|
|
[lints]
|
|
|
|
|
2019-02-24 02:52:56 +00:00
|
|
|
[options]
|
|
|
|
emoji=true
|
|
|
|
|
|
|
|
esproposal.optional_chaining=enable
|
|
|
|
esproposal.nullish_coalescing=enable
|
|
|
|
|
|
|
|
module.system=haste
|
|
|
|
module.system.haste.use_name_reducers=true
|
2019-02-24 04:57:12 +00:00
|
|
|
# keep the following in sync with server/haste/hasteImpl.js
|
2019-02-24 02:52:56 +00:00
|
|
|
# get basename
|
|
|
|
module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1'
|
|
|
|
# strip .js or .js.flow suffix
|
|
|
|
module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1'
|
2019-02-24 04:57:12 +00:00
|
|
|
# strip platform suffix
|
2019-02-24 02:52:56 +00:00
|
|
|
module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1'
|
|
|
|
module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1'
|
|
|
|
module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1'
|
|
|
|
module.system.haste.paths.blacklist=.*/__tests__/.*
|
|
|
|
module.system.haste.paths.blacklist=.*/__mocks__/.*
|
2019-02-24 04:57:12 +00:00
|
|
|
module.system.haste.paths.whitelist=<PROJECT_ROOT>/js/.*
|
2019-02-24 02:52:56 +00:00
|
|
|
module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/Libraries/.*
|
2019-02-24 04:57:12 +00:00
|
|
|
module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/RNTester/.*
|
|
|
|
module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/IntegrationTests/.*
|
|
|
|
module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/polyfills/.*
|
2019-02-24 02:52:56 +00:00
|
|
|
|
|
|
|
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'
|
2019-02-24 04:57:12 +00:00
|
|
|
# Support the library import in examples
|
2019-02-24 12:47:44 +00:00
|
|
|
module.name_mapper='^\@react-native-community/cameraroll$' -> '<PROJECT_ROOT>/js/CameraRoll.js'
|
2019-02-24 02:52:56 +00:00
|
|
|
|
|
|
|
suppress_type=$FlowIssue
|
|
|
|
suppress_type=$FlowFixMe
|
|
|
|
suppress_type=$FlowFixMeProps
|
|
|
|
suppress_type=$FlowFixMeState
|
|
|
|
|
2019-02-24 04:57:12 +00:00
|
|
|
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*[react_native\\(_android\\)?_oss|react_native\\(_android\\)?_fb][a-z,_]*\\)?)\\)
|
|
|
|
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*[react_native\\(_android\\)?_oss|react_native\\(_android\\)?_fb][a-z,_]*\\)?)\\)?:? #[0-9]+
|
2019-02-24 02:52:56 +00:00
|
|
|
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
|
|
|
|
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
|
|
|
|
|
2019-02-24 04:57:12 +00:00
|
|
|
[strict]
|
|
|
|
|
2019-02-24 02:52:56 +00:00
|
|
|
[version]
|
|
|
|
^0.86.0
|