UNPKG

3.11 kBPlain TextView Raw
1[ignore]
2; We fork some components by platform
3.*/*[.]android.js
4
5; Ignore templates for 'react-native init'
6.*/local-cli/templates/.*
7
8; Ignore the Dangerfile
9<PROJECT_ROOT>/bots/dangerfile.js
10
11; Ignore "BUCK" generated dirs
12<PROJECT_ROOT>/\.buckd/
13
14; Ignore unexpected extra "@providesModule"
15.*/node_modules/.*/node_modules/fbjs/.*
16
17; Ignore duplicate module providers
18; For RN Apps installed via npm, "Libraries" folder is inside
19; "node_modules/react-native" but in the source repo it is in the root
20.*/Libraries/react-native/React.js
21
22; Ignore polyfills
23.*/Libraries/polyfills/.*
24
25; Ignore metro
26; .*/node_modules/metro/.*
27
28; These should not be required directly
29; require from fbjs/lib instead: require('fbjs/lib/invariant')
30.*/node_modules/invariant/.*
31.*/node_modules/warning/.*
32
33[include]
34
35[libs]
36Libraries/react-native/react-native-interface.js
37flow/
38flow-github/
39
40[options]
41emoji=true
42
43esproposal.optional_chaining=enable
44esproposal.nullish_coalescing=enable
45
46module.system=haste
47module.system.haste.use_name_reducers=true
48# keep the following in sync with server/haste/hasteImpl.js
49# get basename
50module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1'
51# strip .js or .js.flow suffix
52module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1'
53# strip .ios suffix
54module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1'
55module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1'
56module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1'
57module.system.haste.paths.blacklist=.*/__tests__/.*
58module.system.haste.paths.blacklist=.*/__mocks__/.*
59module.system.haste.paths.whitelist=<PROJECT_ROOT>/Libraries/.*
60module.system.haste.paths.whitelist=<PROJECT_ROOT>/RNTester/.*
61module.system.haste.paths.whitelist=<PROJECT_ROOT>/IntegrationTests/.*
62module.system.haste.paths.blacklist=<PROJECT_ROOT>/Libraries/Animated/src/polyfills/.*
63
64munge_underscores=true
65
66module.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'
67
68suppress_type=$FlowIssue
69suppress_type=$FlowFixMe
70suppress_type=$FlowFixMeProps
71suppress_type=$FlowFixMeState
72
73suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*[react_native\\(_ios\\)?_oss|react_native\\(_ios\\)?_fb][a-z,_]*\\)?)\\)
74suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*[react_native\\(_ios\\)?_oss|react_native\\(_ios\\)?_fb][a-z,_]*\\)?)\\)?:? #[0-9]+
75suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
76suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
77
78[lints]
79all=warn
80unnecessary-optional-chain=off
81
82# There is an ESLint rule for this
83unclear-type=off
84
85sketchy-null=off
86sketchy-null-number=warn
87sketchy-null-mixed=warn
88
89# This is noisy for now. We *do* still want to warn on importing types
90# from untyped files, which is covered by untyped-type-import
91untyped-import=off
92
93[strict]
94deprecated-type
95nonstrict-import
96sketchy-null
97unclear-type
98unsafe-getters-setters
99untyped-import
100untyped-type-import
101
102[version]
103^0.78.0