Skip to content
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

Rewrite error-message rule #922

Merged
merged 17 commits into from Dec 9, 2020

Conversation

fisker
Copy link
Collaborator

@fisker fisker commented Dec 7, 2020

Context: #915 (comment)

Completely rewrite the rule.

Thanks to the powerful getStaticValue function, we can detect some static value of the message.

Fixes #915

@fisker fisker marked this pull request as ready for review December 7, 2020 07:15
@sindresorhus sindresorhus changed the title Rewrite error-message Rewrite error-message rule Dec 9, 2020
@sindresorhus sindresorhus merged commit 877bef9 into sindresorhus:master Dec 9, 2020
@sindresorhus
Copy link
Owner

This looks great. The rule makes a lot more sense now.

@fisker fisker deleted the error-message-rewrite branch December 9, 2020 13:21
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.

error-message: Maximum call stack size exceeded
2 participants