Skip to content

Conversation

@Rel1cx
Copy link
Owner

@Rel1cx Rel1cx commented Nov 2, 2025

Set the diagnostic loc to the dollar sign position for clarity.

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Docs
  • Test
  • New Binding issue #___
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe:

Does this PR introduce a breaking change?

  • Yes, and the changes were approved in issue #___
  • No

Checklist

  • When resolving issues, they are referenced in the PR's title (e.g fix: remove a typo, closes #___, #___)
  • I have added a convincing reason for adding this feature, if necessary

Other information

Set the diagnostic loc to the dollar sign position for clarity.
@vercel
Copy link

vercel bot commented Nov 2, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
eslint-react Ready Ready Preview Comment Nov 2, 2025 8:05am

@Rel1cx Rel1cx requested a review from Copilot November 2, 2025 07:51
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR improves the precision of error reporting in the jsx-dollar ESLint rule by narrowing the highlighted location to point specifically at the $ character instead of the entire text node.

  • Adds a custom loc property to the error report to highlight only the $ character
  • Updates the documentation to reflect the more precise error indicator

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
packages/plugins/eslint-plugin-react-x/src/rules/jsx-dollar.ts Adds custom location reporting to highlight only the $ character in the error
packages/plugins/eslint-plugin-react-x/src/rules/jsx-dollar.mdx Updates the documentation example to show the narrowed error indicator

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: REL1CX <rel1cx@proton.me>
@Rel1cx Rel1cx merged commit 9c811a2 into main Nov 2, 2025
10 of 11 checks passed
@Rel1cx Rel1cx deleted the improve-location-reporting-jsx-dollar branch November 2, 2025 09:04
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.

2 participants