Skip to content

Bug: no-*-definitions rules show normalized identifier in messages #514

@jaymarvelz

Description

@jaymarvelz

Environment

ESLint version: v9.34.0
@eslint/markdown version: 7.2.0
Node version:
npm version:
Operating System:

Which language are you using?

commonmark

What did you do?

Configuration
<!-- eslint markdown/no-empty-definitions: "error" -->
<!-- eslint markdown/no-duplicate-definitions: "error" -->
<!-- eslint markdown/no-unused-definitions: "error" -->

[Mercury]: https://example.com/mercury/
[Mercury]: https://example.com/mercury/
[Mercury]: #

What did you expect to happen?

Messages should display the original label as typed in the Markdown, e.g.:

  • Unexpected unused definition Mercury found.
  • Unexpected duplicate definition Mercury found.
  • Unexpected empty definition Mercury found.

What actually happened?

Messages display the normalized identifier, not the original label:

Unexpected unused definition `mercury` found.

Link to Minimal Reproducible Example

n/a

Participation

  • I am willing to submit a pull request for this issue.

Additional comments

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Ready to Implement

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions