Skip to content

Conversation

waynzh
Copy link
Member

@waynzh waynzh commented Sep 5, 2025

resolve #2912

Copy link

changeset-bot bot commented Sep 5, 2025

🦋 Changeset detected

Latest commit: 80f2630

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 Minor

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

@FloEdelmann FloEdelmann requested a review from Copilot September 5, 2025 08:48
Copy link
Contributor

@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 enhances the component-name-in-template-casing rule to support regex patterns in the globals option, allowing users to match component names with patterns instead of only exact string matches.

  • Added regex pattern support to the globals option for more flexible component name matching
  • Updated rule implementation to handle both string literals and regex patterns
  • Added comprehensive test coverage for the new regex functionality

Reviewed Changes

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

File Description
lib/rules/component-name-in-template-casing.js Updated rule logic to parse and handle regex patterns in globals option
tests/lib/rules/component-name-in-template-casing.js Added test cases for valid and invalid scenarios with regex patterns
docs/rules/component-name-in-template-casing.md Updated documentation with examples of regex pattern usage
.changeset/rude-heads-serve.md Added changelog entry for the new feature

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

waynzh and others added 2 commits September 5, 2025 17:24
Co-authored-by: Flo Edelmann <git@flo-edelmann.de>
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! 🙂

@FloEdelmann FloEdelmann merged commit 10d645e into master Sep 5, 2025
15 checks passed
@FloEdelmann FloEdelmann deleted the global-regex-patterns branch September 5, 2025 10:13
@github-actions github-actions bot mentioned this pull request Sep 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants