Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(block-lang): use consistent quotation marks in error messages #2805

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

Merged
merged 4 commits into from
Jul 19, 2025

Conversation

ST-DDT
Copy link
Contributor

@ST-DDT ST-DDT commented Jul 18, 2025

Follow-Up on #2804


While updating the tests, I noticed that the error messages use ", ' and ` for quoting/highlighting things.
This PR changes this to only use '.

Does this qualify as fix? Do I need to create an issue for this one?


Blocked by #2804

Copy link

changeset-bot bot commented Jul 18, 2025

🦋 Changeset detected

Latest commit: d411539

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
eslint-plugin-vue Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Member

@FloEdelmann FloEdelmann left a comment

Choose a reason for hiding this comment

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

Thank you! I'd say this does qualify as a fix, so thanks for adding a changeset! An issue is not required 🙂

@FloEdelmann FloEdelmann requested a review from Copilot July 18, 2025 14:38
Copy link

@Copilot 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 standardizes quotation marks in error messages for the vue/block-lang ESLint rule to use single quotes consistently throughout. The changes address inconsistent usage of double quotes, single quotes, and backticks in error messages by converting all quotes to single quotes for better consistency.

  • Standardized all quotation marks in error messages to use single quotes instead of mixed quote styles
  • Updated test cases to reflect the new consistent error message format
  • Added position information (endLine, endColumn) to test expectations

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
lib/rules/block-lang.js Updated error message templates and helper function to use single quotes consistently
tests/lib/rules/block-lang.js Updated test expectations to match new error message format and added missing position data
.changeset/strong-masks-fetch.md Added changelog entry documenting the fix for inconsistent quotes

@FloEdelmann FloEdelmann requested review from ota-meshi and waynzh July 18, 2025 15:10
@ST-DDT ST-DDT marked this pull request as ready for review July 18, 2025 18:10
Copy link
Member

@waynzh waynzh left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you!

@waynzh waynzh merged commit 8a0e673 into vuejs:master Jul 19, 2025
12 checks passed
@github-actions github-actions bot mentioned this pull request Jul 18, 2025
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.

3 participants