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 13dfe71 commit 7b166b3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/oxc_linter/src/rules/eslint/new_cap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ declare_oxc_lint!(
/// Many style guides recommend following this pattern
/// to more easily determine which functions are to be used as constructors.
///
/// **Warning**:
/// 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

0 comments on commit 7b166b3

Please sign in to comment.