fix(linter): change severity to warning for no_debugger and no_empty_pattern

This commit is contained in:
Boshen 2023-03-26 22:03:46 +08:00
parent 8a9cf9bed1
commit cda0c69ba1
No known key found for this signature in database
GPG key ID: 9C7A8C8AB22BEBD1
2 changed files with 2 additions and 2 deletions

View file

@ -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)]

View file

@ -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)]