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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. .*/Libraries/react-native/React.js
  17. .*/Libraries/react-native/ReactNative.js
  18. .*/node_modules/jest-runtime/build/__tests__/.*
  19. ; Ignore polyfills
  20. .*/Libraries/polyfills/.*
  21. ; Ignore metro
  22. .*/node_modules/metro/.*
  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. esproposal.optional_chaining=enable
  29. esproposal.nullish_coalescing=enable
  30. module.system=haste
  31. esproposal.class_static_fields=enable
  32. esproposal.class_instance_fields=enable
  33. experimental.strict_type_args=true
  34. munge_underscores=true
  35. module.name_mapper='^image![a-zA-Z0-9$_-]+$' -> 'GlobalImageStub'
  36. 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'
  37. module.file_ext=.js
  38. module.file_ext=.jsx
  39. module.file_ext=.json
  40. module.file_ext=.native.js
  41. suppress_type=$FlowIssue
  42. suppress_type=$FlowFixMe
  43. suppress_type=$FlowFixMeProps
  44. suppress_type=$FlowFixMeState
  45. suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
  46. suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
  47. suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
  48. [version]
  49. ^0.92.0