.flowconfig 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. [ignore]
  2. ; We fork some components by platform
  3. .*/*[.]android.js
  4. ; Ignore "BUCK" generated dirs
  5. <PROJECT_ROOT>/\.buckd/
  6. ; Ignore unexpected extra "@providesModule"
  7. .*/node_modules/.*/node_modules/fbjs/.*
  8. ; Ignore duplicate module providers
  9. ; For RN Apps installed via npm, "Libraries" folder is inside
  10. ; "node_modules/react-native" but in the source repo it is in the root
  11. .*/Libraries/react-native/React.js
  12. ; Ignore polyfills
  13. .*/Libraries/polyfills/.*
  14. ; Ignore metro
  15. .*/node_modules/metro/.*
  16. [include]
  17. [libs]
  18. node_modules/react-native/Libraries/react-native/react-native-interface.js
  19. node_modules/react-native/flow/
  20. node_modules/react-native/flow-github/
  21. [options]
  22. emoji=true
  23. module.system=haste
  24. module.system.haste.use_name_reducers=true
  25. # get basename
  26. module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1'
  27. # strip .js or .js.flow suffix
  28. module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1'
  29. # strip .ios suffix
  30. module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1'
  31. module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1'
  32. module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1'
  33. module.system.haste.paths.blacklist=.*/__tests__/.*
  34. module.system.haste.paths.blacklist=.*/__mocks__/.*
  35. module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/polyfills/.*
  36. module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/Libraries/.*
  37. munge_underscores=true
  38. 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'
  39. module.file_ext=.js
  40. module.file_ext=.jsx
  41. module.file_ext=.json
  42. module.file_ext=.native.js
  43. suppress_type=$FlowIssue
  44. suppress_type=$FlowFixMe
  45. suppress_type=$FlowFixMeProps
  46. suppress_type=$FlowFixMeState
  47. suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
  48. suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
  49. suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
  50. suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
  51. [version]
  52. ^0.75.0