Skip to content

Commit

Permalink
Updated dev dependencies to check flow errors with RN 0.56
Browse files Browse the repository at this point in the history
  • Loading branch information
Cierpliwy committed Jul 18, 2018
1 parent c7de7be commit 9dfe7d1
Show file tree
Hide file tree
Showing 3 changed files with 4,281 additions and 1,894 deletions.
15 changes: 14 additions & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,19 @@ node_modules/react-native/flow-github/
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=<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/polyfills/.*
module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/Libraries/.*

munge_underscores=true

Expand All @@ -57,4 +70,4 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError

[version]
^0.63.0
^0.75.0
Loading

0 comments on commit 9dfe7d1

Please sign in to comment.