Skip to content

fix: handle unresolved types in require-valid-default-prop - #3099

Open
awnoa wants to merge 4 commits into
vuejs:masterfrom
awnoa:fix/2279-imported-union-default
Open

fix: handle unresolved types in require-valid-default-prop#3099
awnoa wants to merge 4 commits into
vuejs:masterfrom
awnoa:fix/2279-imported-union-default

Conversation

@awnoa

@awnoa awnoa commented Jul 17, 2026

Copy link
Copy Markdown

Fixes #2279.

Unresolved type references now use a dedicated inference marker instead of sharing the null placeholder. require-valid-default-prop skips validation only for that marker, while real null unions continue to validate known runtime types.

Tests cover both the imported-union case and a string | null mismatch.

@changeset-bot

changeset-bot Bot commented Jul 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b805682

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

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/require-valid-default-prop breaks when importing type with union

1 participant