Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(no-deprecated-slot-attribute): add ignoreParents option#2784

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

ST-DDT
Copy link
Contributor

@ST-DDTST-DDT commentedJul 9, 2025
edited
Loading

Adds#2710


Adds anignoreParents: string[] option tono-deprecated-slot-attribute to allow ignoring web-component usecases:

<template><web-component> <Entryslot="entry" /></web-component></template>

Preview:


Note to self: Next PR(s):

@changeset-botchangeset-bot
Copy link

changeset-botbot commentedJul 9, 2025
edited
Loading

🦋 Changeset detected

Latest commit:c94f13f

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

This PR includes changesets to release 1 package
NameType
eslint-plugin-vueMinor

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-DDTST-DDT marked this pull request as ready for reviewJuly 9, 2025 21:31
@FloEdelmannFloEdelmann linked an issueJul 10, 2025 that may beclosed by this pull request
2 tasks
Copy link
Member

@FloEdelmannFloEdelmann 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! 🙂

ST-DDT reacted with thumbs up emoji
Copy link

@CopilotCopilotAI 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

Adds anignoreParents option to theno-deprecated-slot-attribute rule so users can skip slot-attribute deprecation checks when a component is nested inside specified parent tags (e.g., web components).

  • IntroduceignoreParents in rule schema, parsing logic, and documentation
  • Extend tests to cover literal and regex-basedignoreParents matching
  • Update utility JSDoc to acceptVDocumentFragment inisVElement

Reviewed Changes

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

Show a summary per file
FileDescription
tests/lib/rules/no-deprecated-slot-attribute.jsAdd valid/invalid test cases forignoreParents
lib/utils/index.jsExtend JSDoc forisVElement to include fragments
lib/rules/syntaxes/slot-attribute.jsImport and applyignoreParents in reporting logic
lib/rules/no-deprecated-slot-attribute.jsAddignoreParents to rule schema
docs/rules/no-deprecated-slot-attribute.mdDocument the newignoreParents option
.changeset/beige-teams-camp.mdBump version with a minor release note
Comments suppressed due to low confidence (1)

docs/rules/no-deprecated-slot-attribute.md:53

  • [nitpick] Clarify that regex patterns inignoreParents are matched against the component’s raw tag name (which can be kebab-case or PascalCase). You may want to note that users should include case-insensitive flags or patterns to cover both formats.
- `"ignoreParents"` (`string[]`) An array of tags or regular expression patterns (e.g. `/^custom-/`) for parents that ignore these rules. This option is especially useful for [Web-Components](https://developer.mozilla.org/en-US/docs/Web/API/Web_components). Default is empty.

Copy link
Member

@waynzhwaynzh 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!

@waynzhwaynzhforce-pushed thefeat-2710-no-deprecated-slot-attribute-ignoreParents branch fromcba96ee toc94f13fCompareJuly 13, 2025 07:50
@waynzhwaynzh merged commit9140c63 intovuejs:masterJul 13, 2025
12 checks passed
@github-actionsgithub-actionsbot mentioned this pull requestJul 13, 2025
@ST-DDTST-DDT deleted the feat-2710-no-deprecated-slot-attribute-ignoreParents branchJuly 13, 2025 14:23
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@FloEdelmannFloEdelmannFloEdelmann approved these changes

Copilot code reviewCopilotCopilot left review comments

@waynzhwaynzhwaynzh approved these changes

@ota-meshiota-meshiAwaiting requested review from ota-meshi

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

vue/no-deprecated-slot-attribute conflicts with web component named slots
3 participants
@ST-DDT@FloEdelmann@waynzh

[8]ページ先頭

©2009-2025 Movatter.jp