react-native-webview.git

.flowconfig 3.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. [ignore]
  2. ; This flowconfig is forked by platform - the only difference between them is which suffix is ignored.
  3. .*/*[.]android.js
  4. ;.*/*[.]ios.js
  5. ; Ignore templates for 'react-native init'
  6. .*/local-cli/templates/.*
  7. ; Ignore the Dangerfile
  8. node_modules/react-native/bots/dangerfile.js
  9. ; Ignore "BUCK" generated dirs
  10. node_modules/react-native/\.buckd/
  11. ; Ignore unexpected extra "@providesModule"
  12. .*/node_modules/.*/node_modules/fbjs/.*
  13. ; Ignore duplicate module providers
  14. ; For RN Apps installed via npm, "Libraries" folder is inside
  15. ; "node_modules/react-native" but in the source repo it is in the root
  16. .*/Libraries/react-native/React.js
  17. ; Ignore polyfills
  18. .*/Libraries/polyfills/.*
  19. ; Ignore metro
  20. .*/node_modules/metro/.*
  21. ; Ignore "config-chain"'s test folder - it has a corrupt JSON file that's tripping flow
  22. .*/node_modules/config-chain/test/*.
  23. ; These should not be required directly
  24. ; require from fbjs/lib instead: require('fbjs/lib/invariant')
  25. .*/node_modules/invariant/.*
  26. .*/node_modules/warning/.*
  27. [include]
  28. [libs]
  29. node_modules/react-native/Libraries/react-native/react-native-interface.js
  30. node_modules/react-native/flow/
  31. node_modules/react-native/flow-github/
  32. [lints]
  33. [options]
  34. emoji=true
  35. esproposal.optional_chaining=enable
  36. esproposal.nullish_coalescing=enable
  37. module.system=haste
  38. module.system.haste.use_name_reducers=true
  39. # keep the following in sync with server/haste/hasteImpl.js
  40. # get basename
  41. module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1'
  42. # strip .js or .js.flow suffix
  43. module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1'
  44. # strip platform suffix
  45. module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1'
  46. module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1'
  47. module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1'
  48. module.system.haste.paths.blacklist=.*/__tests__/.*
  49. module.system.haste.paths.blacklist=.*/__mocks__/.*
  50. module.system.haste.paths.whitelist=<PROJECT_ROOT>/js/.*
  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/RNTester/.*
  53. module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/IntegrationTests/.*
  54. module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/polyfills/.*
  55. ; Surpress error `Duplicate module provider` until the slimmening is done
  56. module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Components/WebView/*.
  57. module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Components/WKWebView/*.
  58. munge_underscores=true
  59. 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'
  60. suppress_type=$FlowIssue
  61. suppress_type=$FlowFixMe
  62. suppress_type=$FlowFixMeProps
  63. suppress_type=$FlowFixMeState
  64. suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*[react_native\\(_android\\)?_oss|react_native\\(_android\\)?_fb][a-z,_]*\\)?)\\)
  65. suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*[react_native\\(_android\\)?_oss|react_native\\(_android\\)?_fb][a-z,_]*\\)?)\\)?:? #[0-9]+
  66. suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
  67. suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
  68. [strict]