mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 20:28:58 +00:00
fix(linter): support -D all -D nursery
This commit is contained in:
parent
8d17bb4052
commit
b88dfd7cee
1 changed files with 1 additions and 1 deletions
|
|
@ -185,7 +185,7 @@ impl LintOptions {
|
|||
AllowWarnDeny::Deny | AllowWarnDeny::Warn => {
|
||||
match maybe_category {
|
||||
Some(category) => rules.extend(
|
||||
all_rules.iter().filter(|rule| rule.category() == category).cloned(),
|
||||
RULES.iter().filter(|rule| rule.category() == category).cloned(),
|
||||
),
|
||||
None => {
|
||||
if name_or_category == "all" {
|
||||
|
|
|
|||
Loading…
Reference in a new issue