Skip to content

Commit

Permalink
feat(linter): implement eslint/new-cap (#8146)
Browse files Browse the repository at this point in the history
https://eslint.org/docs/latest/rules/new-cap

Same Problem with rust regex instead of js regex. Added a note in the
docs
  • Loading branch information
Sysix authored Dec 30, 2024
1 parent d0de560 commit ccaa9f7
Show file tree
Hide file tree
Showing 3 changed files with 932 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/oxc_linter/src/rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ mod eslint {
pub mod max_classes_per_file;
pub mod max_lines;
pub mod max_params;
pub mod new_cap;
pub mod no_alert;
pub mod no_array_constructor;
pub mod no_async_promise_executor;
Expand Down Expand Up @@ -541,6 +542,7 @@ oxc_macros::declare_all_lint_rules! {
eslint::max_classes_per_file,
eslint::max_lines,
eslint::max_params,
eslint::new_cap,
eslint::no_extra_label,
eslint::no_multi_assign,
eslint::no_nested_ternary,
Expand Down
Loading

0 comments on commit ccaa9f7

Please sign in to comment.