You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
2.3KB

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