diff --git a/crates/oxc_linter/src/rules/eslint/new_cap.rs b/crates/oxc_linter/src/rules/eslint/new_cap.rs index 34d08f2fb228e..26014a4a19ffe 100644 --- a/crates/oxc_linter/src/rules/eslint/new_cap.rs +++ b/crates/oxc_linter/src/rules/eslint/new_cap.rs @@ -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: