Nav apraksta

.flowconfig 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. [ignore]
  2. ; We fork some components by platform
  3. .*/*[.]android.js
  4. ; Ignore "BUCK" generated dirs
  5. <PROJECT_ROOT>/\.buckd/
  6. ; Ignore unexpected extra "@providesModule"
  7. .*/node_modules/.*/node_modules/fbjs/.*
  8. ; Ignore duplicate module providers
  9. ; For RN Apps installed via npm, "Libraries" folder is inside
  10. ; "node_modules/react-native" but in the source repo it is in the root
  11. node_modules/react-native/Libraries/react-native/React.js
  12. ; Ignore polyfills
  13. node_modules/react-native/Libraries/polyfills/.*
  14. ; These should not be required directly
  15. ; require from fbjs/lib instead: require('fbjs/lib/warning')
  16. node_modules/warning/.*
  17. ; Flow doesn't support platforms
  18. .*/Libraries/Utilities/HMRLoadingView.js
  19. [untyped]
  20. .*/node_modules/@react-native-community/cli/.*/.*
  21. [include]
  22. [libs]
  23. node_modules/react-native/Libraries/react-native/react-native-interface.js
  24. node_modules/react-native/flow/
  25. [options]
  26. emoji=true
  27. esproposal.optional_chaining=enable
  28. esproposal.nullish_coalescing=enable
  29. module.file_ext=.js
  30. module.file_ext=.json
  31. module.file_ext=.ios.js
  32. module.system=haste
  33. module.system.haste.use_name_reducers=true
  34. # get basename
  35. module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1'
  36. # strip .js or .js.flow suffix
  37. module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1'
  38. # strip .ios suffix
  39. module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1'
  40. module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1'
  41. module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1'
  42. module.system.haste.paths.blacklist=.*/__tests__/.*
  43. module.system.haste.paths.blacklist=.*/__mocks__/.*
  44. module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/Libraries/.*
  45. module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/RNTester/.*
  46. module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/IntegrationTests/.*
  47. module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/react-native/react-native-implementation.js
  48. module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/polyfills/.*
  49. munge_underscores=true
  50. 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'
  51. suppress_type=$FlowIssue
  52. suppress_type=$FlowFixMe
  53. suppress_type=$FlowFixMeProps
  54. suppress_type=$FlowFixMeState
  55. suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)
  56. suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)?:? #[0-9]+
  57. suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
  58. [lints]
  59. sketchy-null-number=warn
  60. sketchy-null-mixed=warn
  61. sketchy-number=warn
  62. untyped-type-import=warn
  63. nonstrict-import=warn
  64. deprecated-type=warn
  65. unsafe-getters-setters=warn
  66. inexact-spread=warn
  67. unnecessary-invariant=warn
  68. signature-verification-failure=warn
  69. deprecated-utility=error
  70. [strict]
  71. deprecated-type
  72. nonstrict-import
  73. sketchy-null
  74. unclear-type
  75. unsafe-getters-setters
  76. untyped-import
  77. untyped-type-import
  78. [version]
  79. ^0.98.0