Skip to content

Commit

Permalink
feat(linter): add rule eslint/new-cap
Browse files Browse the repository at this point in the history
  • Loading branch information
Sysix committed Dec 28, 2024
1 parent 7b166b3 commit 04f632f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions crates/oxc_linter/src/rules/eslint/new_cap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ declare_oxc_lint!(
/// The option `newIsCapExceptionPattern` and `capIsNewExceptionPattern` are implemented with
/// the [rust regex syntax](https://docs.rs/regex/latest/regex/). Many JavaScript features
/// are not supported (Lookahead, Lookbehinds, ...).
///
///
/// ### Examples
///
/// Examples of **incorrect** code for this rule:
Expand Down Expand Up @@ -447,11 +447,6 @@ declare_oxc_lint!(
///
/// var friend = new person.acquaintance();
/// ```
///
/// Examples of **correct** code for this rule:
/// ```js
/// FIXME: Tests will fail if examples are missing or syntactically incorrect.
/// ```
NewCap,
style,
pending // TODO: maybe?
Expand Down

0 comments on commit 04f632f

Please sign in to comment.