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.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. [ignore]
  2. ; We fork some components by platform
  3. .*/*[.]android.js
  4. ; Ignore polyfills
  5. node_modules/react-native/Libraries/polyfills/.*
  6. ; These should not be required directly
  7. ; require from fbjs/lib instead: require('fbjs/lib/warning')
  8. node_modules/warning/.*
  9. ; Flow doesn't support platforms
  10. .*/Libraries/Utilities/LoadingView.js
  11. [untyped]
  12. .*/node_modules/@react-native-community/cli/.*/.*
  13. ; Ignore packages in node_modules which we (i.e. the jitsi-meet project) have
  14. ; seen to cause errors and we have chosen not to fix.
  15. .*/node_modules/@atlaskit/.*/*.js.flow
  16. .*/node_modules/react-native-keep-awake/.*
  17. .*/node_modules/react-native-permissions/.*
  18. .*/node_modules/styled-components/.*
  19. .*/\.git/.*
  20. [include]
  21. [libs]
  22. node_modules/react-native/interface.js
  23. node_modules/react-native/flow/
  24. [options]
  25. emoji=true
  26. esproposal.optional_chaining=enable
  27. esproposal.nullish_coalescing=enable
  28. ; We (i.e. the jitsi-meet project) are using the haste module system on Web as
  29. ; well, not only on React Native. Unfortunately, Flow does not support .web.js
  30. ; by default. Override Flow's defaults to include .web.js as well. Technically,
  31. ; we have .native.js as well so the choice of .web.js may lead to errors.
  32. ; Practically though, it is a potential future problem that we do not have at
  33. ; the time of this writing.
  34. module.file_ext=.web.js
  35. ; Flow's defaults:
  36. module.file_ext=.js
  37. module.file_ext=.json
  38. module.file_ext=.ios.js
  39. munge_underscores=true
  40. module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/node_modules/react-native/\1'
  41. 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\)$' -> '<PROJECT_ROOT>/node_modules/react-native/Libraries/Image/RelativeImageStub'
  42. suppress_type=$FlowIssue
  43. suppress_type=$FlowFixMe
  44. suppress_type=$FlowFixMeProps
  45. suppress_type=$FlowFixMeState
  46. suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)
  47. suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)?:? #[0-9]+
  48. suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
  49. [lints]
  50. sketchy-null-number=warn
  51. sketchy-null-mixed=warn
  52. sketchy-number=warn
  53. untyped-type-import=warn
  54. nonstrict-import=warn
  55. deprecated-type=warn
  56. unsafe-getters-setters=warn
  57. unnecessary-invariant=warn
  58. signature-verification-failure=warn
  59. deprecated-utility=error
  60. [strict]
  61. deprecated-type
  62. nonstrict-import
  63. sketchy-null
  64. unclear-type
  65. unsafe-getters-setters
  66. untyped-import
  67. untyped-type-import
  68. [version]
  69. ^0.122.0