-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
docs: Add messages property to rule meta documentation #20361
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
Conversation
✅ Deploy Preview for docs-eslint ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
|
lumirlumir
left a comment
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.
Hi @sabyasachisharma, thanks for the PR!
However, issue #20311 was originally assigned to @overlookmotel, so per our policy we cannot accept this PR without consensus from the original author. Thanks for understanding!
|
@sabyasachisharma per #20311 (comment), you can continue working on this PR. |
Adds the messages property to the meta object description in the custom rules documentation. The messages property is used to define violation and suggestion messages that can be referenced by messageIds in context.report() calls. Fixes eslint#20311
5a81df7 to
f90bf10
Compare
lumirlumir
left a comment
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 @mdjermanovic to verify before merging.
mdjermanovic
left a comment
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!
Adds the messages property to the meta object description in the custom rules documentation. The messages property is used to define violation and suggestion messages that can be referenced by messageIds in context.report() calls.
Fixes #20311
Prerequisites checklist
What is the purpose of this pull request? (put an "X" next to an item)
[x] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofix to a rule
[ ] Add a CLI option
[ ] Add something to the core
[ ] Other, please explain:
What changes did you make? (Give an overview)
Added the
messagesproperty to themetaobject description in the custom rules documentation (docs/src/extend/custom-rules.md). Themessagesproperty was already being used in examples throughout the documentation but was missing from the initialmetaobject description. This change adds a clear description of the property with a link to the messageIds section where it's discussed in detail.Is there anything you'd like reviewers to focus on?
No specific focus needed. This is a straightforward documentation update that adds the missing
messagesproperty description to match the existing examples in the documentation.