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 3.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. [ignore]
  2. # We fork some components by platform.
  3. .*/*.android.js
  4. # Ignore templates with `@flow` in header
  5. .*/local-cli/generator.*
  6. # Ignore malformed json
  7. .*/node_modules/y18n/test/.*\.json
  8. # Ignore the website subdir
  9. <PROJECT_ROOT>/website/.*
  10. # Ignore BUCK generated dirs
  11. <PROJECT_ROOT>/\.buckd/
  12. # Ignore unexpected extra @providesModule
  13. .*/node_modules/commoner/test/source/widget/share.js
  14. # Ignore duplicate module providers
  15. # For RN Apps installed via npm, "Libraries" folder is inside node_modules/react-native but in the source repo it is in the root
  16. node_modules/react-native/Libraries/react-native/React.js
  17. .*/Libraries/react-native/ReactNative.js
  18. .*/node_modules/jest-runtime/build/__tests__/.*
  19. ; Ignore polyfills
  20. node_modules/react-native/Libraries/polyfills/.*
  21. ; These should not be required directly
  22. ; require from fbjs/lib instead: require('fbjs/lib/warning')
  23. node_modules/warning/.*
  24. ; Flow doesn't support platforms
  25. .*/Libraries/Utilities/LoadingView.js
  26. [untyped]
  27. .*/node_modules/@react-native-community/cli/.*/.*
  28. [include]
  29. [libs]
  30. node_modules/react-native/Libraries/react-native/react-native-interface.js
  31. node_modules/react-native/flow/
  32. [options]
  33. esproposal.optional_chaining=enable
  34. esproposal.nullish_coalescing=enable
  35. esproposal.class_static_fields=enable
  36. esproposal.class_instance_fields=enable
  37. module.file_ext=.js
  38. module.file_ext=.json
  39. module.file_ext=.ios.js
  40. module.system=haste
  41. module.system.haste.use_name_reducers=true
  42. # get basename
  43. # get basename
  44. module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1'
  45. module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1'
  46. module.system.haste.paths.blacklist=.*/__tests__/.*
  47. module.system.haste.paths.blacklist=.*/__tests__/.*
  48. module.system.haste.paths.blacklist=.*/__mocks__/.*
  49. module.system.haste.paths.blacklist=.*/__mocks__/.*
  50. module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/polyfills/.*
  51. module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/Libraries/.*
  52. module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/Libraries/.*
  53. module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/RNTester/.*
  54. module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/IntegrationTests/.*
  55. module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/react-native/react-native-implementation.js
  56. module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/polyfills/.*
  57. experimental.strict_type_args=true
  58. munge_underscores=true
  59. module.name_mapper='^image![a-zA-Z0-9$_-]+$' -> 'GlobalImageStub'
  60. module.name_mapper='^react-native$' -> '<PROJECT_ROOT>/node_modules/react-native/Libraries/react-native/react-native-implementation'
  61. module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/node_modules/react-native/\1'
  62. 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'
  63. module.file_ext=.js
  64. module.file_ext=.jsx
  65. module.file_ext=.json
  66. module.file_ext=.native.js
  67. suppress_type=$FlowIssue
  68. suppress_type=$FlowFixMe
  69. suppress_type=$FlowFixMeProps
  70. suppress_type=$FlowFixMeState
  71. suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
  72. suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
  73. suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
  74. [version]
  75. ^0.105.0