Skip to content

Commit

Permalink
fix(linter): rule no-restricted-imports support missing options
Browse files Browse the repository at this point in the history
  • Loading branch information
Sysix committed Dec 23, 2024
1 parent 5296bb4 commit f088c10
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/oxc_linter/src/rules/eslint/no_restricted_imports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,11 @@ fn add_configuration_patterns_from_object(
}

// allowImportNames cannot be used in combination with importNames, importNamePattern or allowImportNamePattern.
if pattern.allow_import_names.is_some() && (
pattern.import_names.is_some()
|| pattern.import_name_pattern.is_some()
|| pattern.allow_import_name_pattern.is_some()
) {
if pattern.allow_import_names.is_some()
&& (pattern.import_names.is_some()
|| pattern.import_name_pattern.is_some()
|| pattern.allow_import_name_pattern.is_some())
{
// ToDo: not allowed
}

Expand Down

0 comments on commit f088c10

Please sign in to comment.