mirror of
https://github.com/oxc-project/oxc.git
synced 2026-11-04 10:29:58 +00:00
fix(linter/unicorn/no-useless-error-capture-stack-trace): move to suspicious category (#28545)
Move the rule from `restriction` to `suspicious`, so suspicious-category filters include unnecessary `Error.captureStackTrace` calls in error constructors. Fixes #28541
This commit is contained in:
1 parent
b3dc411045
commit
e234dc853a
1 file changed
+1
-1
@@ -58,7 +58,7 @@ declare_oxc_lint!(
|
||||
/// ```
|
||||
NoUselessErrorCaptureStackTrace,
|
||||
unicorn,
|
||||
restriction,
|
||||
suspicious,
|
||||
recommended,
|
||||
suggestion,
|
||||
version = "1.20.0",
|
||||
|
||||
Reference in new issue
Block a user