Skip to content

feat(no-deprecated-slot-attribute): regex ignore patterns #2773

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

Conversation

ST-DDT
Copy link
Contributor

@ST-DDT ST-DDT commented Jun 28, 2025

Partially fixes #2710


Adds support for '/regex/' ignore patterns.

    <template>
      <LinkList>
        <one slot="one" />
        <two slot="two" />
        <my-component slot="my-component-slot" />
        <myComponent slot="myComponent-slot" />
        <MyComponent slot="MyComponent-slot" />
      </LinkList>
    </template>
{
  ignore: ['/one/', '/^Two$/i', '/^my-.*/i']
}

Implementation based on #2734

Copy link

changeset-bot bot commented Jun 28, 2025

🦋 Changeset detected

Latest commit: 9d44658

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

@ST-DDT ST-DDT marked this pull request as ready for review June 28, 2025 20:10
@ST-DDT
Copy link
Contributor Author

ST-DDT commented Jun 28, 2025

Tested with production code, kind of works as expected, with the limitations lined out here:

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.

Thanks, LGTM!
One small suggestion on tests.

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.

Thanks!

@waynzh waynzh requested a review from FloEdelmann July 1, 2025 08:22
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.

Looks good to me now, thank you 🙂

@FloEdelmann FloEdelmann merged commit fb4c1c0 into vuejs:master Jul 1, 2025
11 checks passed
@github-actions github-actions bot mentioned this pull request Jun 10, 2025
@ST-DDT ST-DDT deleted the issue-2710/no-deprecated-slot-attribute/regex-ignore branch July 1, 2025 15:49
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.

vue/no-deprecated-slot-attribute conflicts with web component named slots
3 participants