UNPKG

2.17 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[declarations]
27.*/node_modules/.*
28
29[libs]
30interface.js
31flow/
32
33[options]
34emoji=true
35
36esproposal.optional_chaining=enable
37esproposal.nullish_coalescing=enable
38
39exact_by_default=true
40
41module.file_ext=.js
42module.file_ext=.json
43module.file_ext=.ios.js
44
45munge_underscores=true
46
47module.name_mapper='^react-native$' -> '<PROJECT_ROOT>/index.js'
48module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/\1'
49module.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'
50
51suppress_type=$FlowIssue
52suppress_type=$FlowFixMe
53suppress_type=$FlowFixMeProps
54suppress_type=$FlowFixMeState
55suppress_type=$FlowFixMeEmpty
56
57suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)
58suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)?:? #[0-9]+
59suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
60
61experimental.well_formed_exports=true
62experimental.types_first=true
63experimental.abstract_locations=true
64
65[lints]
66sketchy-null-number=warn
67sketchy-null-mixed=warn
68sketchy-number=warn
69untyped-type-import=warn
70nonstrict-import=warn
71deprecated-type=warn
72unsafe-getters-setters=warn
73inexact-spread=warn
74unnecessary-invariant=warn
75signature-verification-failure=warn
76deprecated-utility=error
77
78[strict]
79deprecated-type
80nonstrict-import
81sketchy-null
82unclear-type
83unsafe-getters-setters
84untyped-import
85untyped-type-import
86
87[version]
88^0.113.0