Skip to content

Conversation

@sabyasachisharma
Copy link
Contributor

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 messages property to the meta object description in the custom rules documentation (docs/src/extend/custom-rules.md). The messages property was already being used in examples throughout the documentation but was missing from the initial meta object 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 messages property description to match the existing examples in the documentation.

@sabyasachisharma sabyasachisharma requested a review from a team as a code owner November 30, 2025 23:19
@github-project-automation github-project-automation bot moved this to Needs Triage in Triage Nov 30, 2025
@eslint-github-bot eslint-github-bot bot added the documentation Relates to ESLint's documentation label Nov 30, 2025
@netlify
Copy link

netlify bot commented Nov 30, 2025

Deploy Preview for docs-eslint ready!

Name Link
🔨 Latest commit f90bf10
🔍 Latest deploy log https://app.netlify.com/projects/docs-eslint/deploys/692ded85d3d88d0008856891
😎 Deploy Preview https://deploy-preview-20361--docs-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Nov 30, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: sabyasachisharma / name: Sabya Sachi (f90bf10)

Copy link
Member

@lumirlumir lumirlumir left a 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!

Reference: https://eslint.org/docs/latest/contribute/work-on-issue#starting-work

@lumirlumir lumirlumir moved this from Needs Triage to Triaging in Triage Dec 1, 2025
@mdjermanovic mdjermanovic added the accepted There is consensus among the team that this change meets the criteria for inclusion label Dec 1, 2025
@mdjermanovic mdjermanovic moved this from Triaging to Implementing in Triage Dec 1, 2025
@mdjermanovic
Copy link
Member

@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
Copy link
Member

@lumirlumir lumirlumir left a 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.

@lumirlumir lumirlumir moved this from Implementing to Second Review Needed in Triage Dec 2, 2025
Copy link
Member

@mdjermanovic mdjermanovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@mdjermanovic mdjermanovic merged commit 3f5062e into eslint:main Dec 2, 2025
32 checks passed
@github-project-automation github-project-automation bot moved this from Second Review Needed to Complete in Triage Dec 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accepted There is consensus among the team that this change meets the criteria for inclusion documentation Relates to ESLint's documentation

Projects

Status: Complete

Development

Successfully merging this pull request may close these issues.

Docs: messages property missing from description of rule meta

3 participants