Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions crates/oxc_linter/src/rules/eslint/no_invalid_regexp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use oxc_regular_expression::{ConstructorParser, Options};
use oxc_span::Span;
use rustc_hash::FxHashSet;
use serde::Deserialize;
use schemars::JsonSchema;

use crate::{AstNode, context::LintContext, rule::Rule};

Expand Down Expand Up @@ -54,12 +55,13 @@ declare_oxc_lint!(
NoInvalidRegexp,
eslint,
correctness,
config = NoInvalidRegexpConfig,
);

#[derive(Debug, Clone, Deserialize, Default)]
#[derive(Debug, Clone, Deserialize, Default, JsonSchema)]
#[serde(rename_all = "camelCase", default)]
Comment thread
camc314 marked this conversation as resolved.
struct NoInvalidRegexpConfig {
#[serde(default, rename = "allowConstructorFlags")]
Comment thread
camc314 marked this conversation as resolved.
/// Case-sensitive array of flags.
/// Case-sensitive array of flags that will be allowed.
allow_constructor_flags: Vec<char>,
}

Expand Down
Loading