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