mirror of
https://github.com/danbulant/oxc
synced 2026-05-20 04:38:54 +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 => {
|
AllowWarnDeny::Deny | AllowWarnDeny::Warn => {
|
||||||
match maybe_category {
|
match maybe_category {
|
||||||
Some(category) => rules.extend(
|
Some(category) => rules.extend(
|
||||||
all_rules.iter().filter(|rule| rule.category() == category).cloned(),
|
RULES.iter().filter(|rule| rule.category() == category).cloned(),
|
||||||
),
|
),
|
||||||
None => {
|
None => {
|
||||||
if name_or_category == "all" {
|
if name_or_category == "all" {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue