-
Notifications
You must be signed in to change notification settings - Fork 80
feat: expose identifiers in messages for no-empty-definitions #507
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
feat: expose identifiers in messages for no-empty-definitions #507
Conversation
The committers listed above are authorized under a signed CLA. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Would like another review before merging, since it's a small change but adds a new feature.
| messages: { | ||
| emptyDefinition: "Unexpected empty definition found.", | ||
| emptyDefinition: | ||
| "Unexpected empty definition `{{ identifier }}` found.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To the team: I think using backticks here would be fine, since the similar rule no-unused-definition uses backticks as well.
| "Unexpected unused footnote definition `{{ identifier }}` found.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!
|
Nice work @Nohgh 🎉🎉🎉 |
|
@Nohgh we'd like to pay you for this contribution. Please contact us contact (at) eslint (dot) org so we can send you the details. |
Prerequisites checklist
What is the purpose of this pull request?
Enhance the
no-empty-definitionsrule to include identifier data in its verification process,ensuring more informative and accurate error messages.
What changes did you make? (Give an overview)
no-empty-definitionsrule logic to verify and expose identifier data.no-empty-definitions.test.jsto cover new behavior.Related Issues
refs #499
Is there anything you'd like reviewers to focus on?