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.

.flowconfig 2.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. ; Ignore packages in node_modules which we (i.e. the jitsi-meet project) have
  17. ; seen to cause errors and we have chosen not to fix.
  18. .*/node_modules/@atlaskit/.*/*.js.flow
  19. .*/node_modules/react-native-keep-awake/.*
  20. .*/node_modules/react-native-permissions/.*
  21. .*/node_modules/styled-components/.*
  22. .*/\.git/.*
  23. [include]
  24. [libs]
  25. node_modules/react-native/Libraries/react-native/react-native-interface.js
  26. node_modules/react-native/flow/
  27. [options]
  28. emoji=true
  29. esproposal.optional_chaining=enable
  30. esproposal.nullish_coalescing=enable
  31. module.system=haste
  32. module.system.haste.use_name_reducers=true
  33. # get basename
  34. module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1'
  35. # strip .js or .js.flow suffix
  36. module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1'
  37. # strip .ios suffix
  38. module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1'
  39. module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1'
  40. module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1'
  41. module.system.haste.paths.blacklist=.*/__tests__/.*
  42. module.system.haste.paths.blacklist=.*/__mocks__/.*
  43. module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/polyfills/.*
  44. module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/Libraries/.*
  45. munge_underscores=true
  46. 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'
  47. suppress_type=$FlowIssue
  48. suppress_type=$FlowFixMe
  49. suppress_type=$FlowFixMeProps
  50. suppress_type=$FlowFixMeState
  51. suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
  52. suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
  53. suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
  54. suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
  55. ; We (i.e. the jitsi-meet project) are using the haste module system on Web as
  56. ; well, not only on React Native. Unfortunately, Flow does not support .web.js
  57. ; by default. Override Flow's defaults to include .web.js as well. Technically,
  58. ; we have .native.js as well so the choice of .web.js may lead to errors.
  59. ; Practically though, it is a potential future problem that we do not have at
  60. ; the time of this writing.
  61. module.file_ext=.web.js
  62. ; Flow's defaults:
  63. module.file_ext=.js
  64. module.file_ext=.jsx
  65. module.file_ext=.json
  66. [version]
  67. ^0.92.0