Skip to content

Commit

Permalink
fix(linter): rule no-restricted-imports: improve diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
Sysix committed Dec 30, 2024
1 parent 12911f4 commit 304c2d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/oxc_linter/src/rules/eslint/no_restricted_imports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ impl NoRestrictedImports {
diagnostic_pattern_and_everything_with_regex_import_name(
entry.module_request.span(),
pattern.message.clone(),
&import_name_patterns,
import_name_patterns,
source,
)
} else if let Some(allowed_import_names) = &pattern.allow_import_names {
Expand Down Expand Up @@ -916,7 +916,7 @@ impl NoRestrictedImports {
diagnostic_pattern_and_everything_with_regex_import_name(
span,
pattern.message.clone(),
&import_name_patterns,
import_name_patterns,
source,
)
} else if let Some(allow_import_name_pattern) =
Expand Down

0 comments on commit 304c2d8

Please sign in to comment.