Skip to content

Add no-error-capture-stack-trace rule #2676

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Jun 13, 2025

Conversation

fisker
Copy link
Collaborator

@fisker fisker commented Jun 12, 2025

Fixes #2627

@fisker fisker marked this pull request as ready for review June 12, 2025 15:53
@fisker fisker marked this pull request as draft June 12, 2025 15:54
@fisker fisker marked this pull request as ready for review June 12, 2025 15:56
@sindresorhus
Copy link
Owner

Should it be no-useless-error-capture-stack-trace? Since it doesn't prevent all uses of Error.captureStackTrace, just ones inside error subclass.

@sindresorhus sindresorhus merged commit fc900b6 into sindresorhus:main Jun 13, 2025
19 checks passed
@fisker fisker deleted the no-error-capture-stack-trace branch June 13, 2025 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rule proposal: no-error-capture-stack-trace
2 participants