Skip to content
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

fix: [vue/component-name-in-template-casing] False positive for dynamic component in template #2069

Merged

Conversation

horitaka
Copy link
Contributor

@horitaka horitaka commented Jan 1, 2023

Modified at Jan. 07.

Issue

This pull request is a fix for issue #2048.

How to fixed

Linter check is ignored if type-only import and registeredComponentsOnly=true.
The logic to check whether type-only import or not is the same as for no-undef-components.

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.

I don't think that built-in components should always be skipped. Rather, type-only imports should always be ignored in <script setup> for this rule.

@horitaka
Copy link
Contributor Author

horitaka commented Jan 4, 2023

@FloEdelmann Thank you for your review. I understood the expected behavior of this issue. I will fix it so that type-only imports are ignored.

@horitaka
Copy link
Contributor Author

horitaka commented Jan 7, 2023

@FloEdelmann I fixed to skip the check if components is type-only import. Could you review it again?

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. Thanks for fixing!

Copy link
Member

@ota-meshi ota-meshi 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!

@ota-meshi ota-meshi merged commit 4a08c07 into vuejs:master Jan 7, 2023
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/component-name-in-template-casing] False positive for dynamic component in template
3 participants