.flowconfig 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. [ignore]
  2. ; We fork some components by platform
  3. .*/*[.]android.js
  4. ; Ignore "BUCK" generated dirs
  5. <PROJECT_ROOT>/\.buckd/
  6. ; Ignore polyfills
  7. node_modules/react-native/Libraries/polyfills/.*
  8. ; These should not be required directly
  9. ; require from fbjs/lib instead: require('fbjs/lib/warning')
  10. node_modules/warning/.*
  11. ; Flow doesn't support platforms
  12. .*/Libraries/Utilities/LoadingView.js
  13. [untyped]
  14. .*/node_modules/@react-native-community/cli/.*/.*
  15. [include]
  16. [libs]
  17. node_modules/react-native/Libraries/react-native/react-native-interface.js
  18. node_modules/react-native/flow/
  19. [options]
  20. emoji=true
  21. esproposal.optional_chaining=enable
  22. esproposal.nullish_coalescing=enable
  23. module.file_ext=.js
  24. module.file_ext=.json
  25. module.file_ext=.ios.js
  26. munge_underscores=true
  27. module.name_mapper='^react-native$' -> '<PROJECT_ROOT>/node_modules/react-native/Libraries/react-native/react-native-implementation'
  28. module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/node_modules/react-native/\1'
  29. 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'
  30. suppress_type=$FlowIssue
  31. suppress_type=$FlowFixMe
  32. suppress_type=$FlowFixMeProps
  33. suppress_type=$FlowFixMeState
  34. suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)
  35. suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)?:? #[0-9]+
  36. suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
  37. [lints]
  38. sketchy-null-number=warn
  39. sketchy-null-mixed=warn
  40. sketchy-number=warn
  41. untyped-type-import=warn
  42. nonstrict-import=warn
  43. deprecated-type=warn
  44. unsafe-getters-setters=warn
  45. inexact-spread=warn
  46. unnecessary-invariant=warn
  47. signature-verification-failure=warn
  48. deprecated-utility=error
  49. [strict]
  50. deprecated-type
  51. nonstrict-import
  52. sketchy-null
  53. unclear-type
  54. unsafe-getters-setters
  55. untyped-import
  56. untyped-type-import
  57. [version]
  58. ^0.105.0