.flowconfig 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. [options]
  21. emoji=true
  22. esproposal.optional_chaining=enable
  23. esproposal.nullish_coalescing=enable
  24. module.system=haste
  25. module.system.haste.use_name_reducers=true
  26. # get basename
  27. module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1'
  28. # strip .js or .js.flow suffix
  29. module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1'
  30. # strip .ios suffix
  31. module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1'
  32. module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1'
  33. module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1'
  34. module.system.haste.paths.blacklist=.*/__tests__/.*
  35. module.system.haste.paths.blacklist=.*/__mocks__/.*
  36. module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/polyfills/.*
  37. module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/Libraries/.*
  38. munge_underscores=true
  39. 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'
  40. module.file_ext=.js
  41. module.file_ext=.jsx
  42. module.file_ext=.json
  43. module.file_ext=.native.js
  44. suppress_type=$FlowIssue
  45. suppress_type=$FlowFixMe
  46. suppress_type=$FlowFixMeProps
  47. suppress_type=$FlowFixMeState
  48. suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
  49. suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
  50. suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
  51. suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
  52. [version]
  53. ^0.92.0