.flowconfig 2.1 KB

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