UNPKG

2.08 kBPlain TextView Raw
1[ignore]
2; We fork some components by platform
3.*/*[.]android.js
4
5; Ignore templates for 'react-native init'
6<PROJECT_ROOT>/template/.*
7
8; Ignore the Dangerfile
9<PROJECT_ROOT>/bots/dangerfile.js
10
11; Ignore "BUCK" generated dirs
12<PROJECT_ROOT>/\.buckd/
13
14; These should not be required directly
15; require from fbjs/lib instead: require('fbjs/lib/warning')
16.*/node_modules/warning/.*
17
18; Flow doesn't support platforms
19.*/Libraries/Utilities/LoadingView.js
20
21[untyped]
22.*/node_modules/@react-native-community/cli/.*/.*
23
24[include]
25
26[libs]
27Libraries/react-native/react-native-interface.js
28flow/
29
30[options]
31emoji=true
32
33esproposal.optional_chaining=enable
34esproposal.nullish_coalescing=enable
35
36module.file_ext=.js
37module.file_ext=.json
38module.file_ext=.ios.js
39
40munge_underscores=true
41
42module.name_mapper='^react-native$' -> '<PROJECT_ROOT>/Libraries/react-native/react-native-implementation'
43module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/\1'
44module.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>/Libraries/Image/RelativeImageStub'
45
46suppress_type=$FlowIssue
47suppress_type=$FlowFixMe
48suppress_type=$FlowFixMeProps
49suppress_type=$FlowFixMeState
50suppress_type=$FlowFixMeEmpty
51
52suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)
53suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)?:? #[0-9]+
54suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
55
56[lints]
57sketchy-null-number=warn
58sketchy-null-mixed=warn
59sketchy-number=warn
60untyped-type-import=warn
61nonstrict-import=warn
62deprecated-type=warn
63unsafe-getters-setters=warn
64inexact-spread=warn
65unnecessary-invariant=warn
66signature-verification-failure=warn
67deprecated-utility=error
68
69[strict]
70deprecated-type
71nonstrict-import
72sketchy-null
73unclear-type
74unsafe-getters-setters
75untyped-import
76untyped-type-import
77
78[version]
79^0.105.0