BlueWallet/.flowconfig

71 lines
2.3 KiB
Plaintext
Raw Normal View History

2018-01-30 23:42:38 +01:00
[ignore]
; We fork some components by platform
.*/*[.]android.js
; Ignore "BUCK" generated dirs
2019-01-19 06:40:41 +01:00
<PROJECT_ROOT>/\.buckd/
2018-01-30 23:42:38 +01:00
; Ignore unexpected extra "@providesModule"
.*/node_modules/.*/node_modules/fbjs/.*
2019-01-19 06:40:41 +01: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
2018-01-30 23:42:38 +01:00
; Ignore polyfills
2019-01-19 06:40:41 +01:00
.*/Libraries/polyfills/.*
2018-01-30 23:42:38 +01:00
2019-01-19 06:40:41 +01:00
; Ignore metro
.*/node_modules/metro/.*
2018-01-30 23:42:38 +01:00
[include]
[libs]
node_modules/react-native/Libraries/react-native/react-native-interface.js
node_modules/react-native/flow/
2019-01-19 06:40:41 +01:00
node_modules/react-native/flow-github/
2018-01-30 23:42:38 +01:00
[options]
emoji=true
2019-01-19 06:40:41 +01:00
esproposal.optional_chaining=enable
esproposal.nullish_coalescing=enable
2018-01-30 23:42:38 +01:00
2019-01-19 06:40:41 +01:00
module.system=haste
module.system.haste.use_name_reducers=true
# 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'
# strip .ios suffix
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__/.*
module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/polyfills/.*
module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/Libraries/.*
2018-01-30 23:42:38 +01: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-01-19 06:40:41 +01:00
module.file_ext=.js
module.file_ext=.jsx
module.file_ext=.json
module.file_ext=.native.js
2018-01-30 23:42:38 +01:00
suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FlowFixMeProps
suppress_type=$FlowFixMeState
2019-01-19 06:40:41 +01:00
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
2018-01-30 23:42:38 +01:00
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
[version]
2019-05-02 22:33:03 +02:00
^0.97.0