From 8bcbe299ec6604189e1ffb561dd0f258f4f45a28 Mon Sep 17 00:00:00 2001 From: Supriya Kalghatgi Date: Tue, 7 Aug 2018 13:48:53 +0530 Subject: [PATCH] Update .flowconfig --- .flowconfig | 33 ++++----------------------------- 1 file changed, 4 insertions(+), 29 deletions(-) diff --git a/.flowconfig b/.flowconfig index 3c0adb566..7ce7d3896 100644 --- a/.flowconfig +++ b/.flowconfig @@ -1,67 +1,42 @@ [ignore] ; We fork some components by platform .*/*[.]android.js - ; Ignore "BUCK" generated dirs /\.buckd/ - ; 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 - ; Ignore polyfills .*/Libraries/polyfills/.* - +; Ignore node_modules +.*/node_modules/.* ; Ignore metro .*/node_modules/metro/.* - [include] - [libs] node_modules/react-native/Libraries/react-native/react-native-interface.js node_modules/react-native/flow/ node_modules/react-native/flow-github/ - [options] emoji=true - 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=/node_modules/react-native/Libraries/Animated/src/polyfills/.* -module.system.haste.paths.whitelist=/node_modules/react-native/Libraries/.* - 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' - module.file_ext=.js module.file_ext=.jsx +module.file_ext=.css module.file_ext=.json module.file_ext=.native.js - suppress_type=$FlowIssue suppress_type=$FlowFixMe suppress_type=$FlowFixMeProps suppress_type=$FlowFixMeState - suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError - [version] -^0.75.0 +0.52.0