mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
fix(linter): change severity to warning for no_debugger and no_empty_pattern
This commit is contained in:
parent
8a9cf9bed1
commit
cda0c69ba1
2 changed files with 2 additions and 2 deletions
|
|
@ -9,7 +9,7 @@ use crate::{context::LintContext, fixer::Fix, rule::Rule, AstNode};
|
|||
|
||||
#[derive(Debug, Error, Diagnostic)]
|
||||
#[error("eslint(no-debugger): `debugger` statement is not allowed")]
|
||||
#[diagnostic()]
|
||||
#[diagnostic(severity(warning))]
|
||||
struct NoDebuggerDiagnostic(#[label] pub Span);
|
||||
|
||||
#[derive(Debug, Default, Clone)]
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ use crate::{context::LintContext, rule::Rule, AstNode};
|
|||
|
||||
#[derive(Debug, Error, Diagnostic)]
|
||||
#[error("eslint(no-empty-pattern): Disallow empty destructuring patterns")]
|
||||
#[diagnostic()]
|
||||
#[diagnostic(severity(warning))]
|
||||
struct NoEmptyPatternDiagnostic(&'static str, #[label("Empty {0} binding pattern")] pub Span);
|
||||
|
||||
#[derive(Debug, Default, Clone)]
|
||||
|
|
|
|||
Loading…
Reference in a new issue