fix(linter): change no-control-regex to severity warning

This commit is contained in:
Boshen 2023-07-28 13:06:47 +08:00
parent fe54b1fbc9
commit e4020d6fb2
2 changed files with 1 additions and 1 deletions

View file

@ -16,7 +16,7 @@ use crate::{context::LintContext, rule::Rule, AstNode};
#[derive(Debug, Error, Diagnostic)]
#[error("eslint(no-control-regex): Unexpected control character(s)")]
#[diagnostic(
severity(error),
severity(warning),
help("Unexpected control character(s) in regular expression: \"{0}\"")
)]
struct NoControlRegexDiagnostic(Atom, #[label] pub Span);