We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0334188 commit d059d2eCopy full SHA for d059d2e
crates/oxc_linter/src/rules/typescript/no_empty_object_type.rs
@@ -204,7 +204,7 @@ fn check_interface_declaration(
204
if allow_interfaces == AllowInterfaces::Always {
205
return;
206
}
207
- if let Some(pattern) = allow_with_name.as_ref()
+ if let Some(pattern) = allow_with_name
208
&& pattern.is_match(interface.id.name.as_str())
209
{
210
@@ -232,7 +232,7 @@ fn check_type_literal(
232
match ctx.nodes().parent_kind(node_id) {
233
AstKind::TSIntersectionType(_) => return,
234
AstKind::TSTypeAliasDeclaration(alias) => {
235
236
&& pattern.is_match(alias.id.name.as_str())
237
238
0 commit comments