Skip to content

feat: introduce dumpComponentsInfo option #830

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

Merged
merged 6 commits into from
Apr 14, 2025

Conversation

ilyaliao
Copy link
Contributor

@ilyaliao ilyaliao commented Feb 24, 2025

Description

This PR will add a dumpUnimportComponents option to export information about all components.

I recently created an eslint-plugin-unimport-components tool to automatically complete imports, inspired by eslint-plugin-unimport. I hope to collaborate with unplugin-vue-components to obtain information about all components, allowing ESLint to automatically import components.

(Automatically Generated Components JSON File)
截圖 2025-02-25 凌晨2 01 29

(Eslint Error Message)
截圖 2025-02-25 凌晨2 04 46

@ilyaliao ilyaliao requested a review from antfu as a code owner February 24, 2025 17:56
Copy link

stackblitz bot commented Feb 24, 2025

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@antfu
Copy link
Member

antfu commented Mar 26, 2025

Why this is called unimport? it seems to be unrelated to unimport

@ilyaliao
Copy link
Contributor Author

ilyaliao commented Mar 26, 2025

Why this is called unimport? it seems to be unrelated to unimport

Sorry, I referenced the name dumpUnimportItems from unplugin-auto-import. Do you want me to change it?

https://github.com/unplugin/unplugin-auto-import/blob/c5a84dcf0f11a91d327fcd3dabfa85569ef203da/src/types.ts#L234

@ilyaliao ilyaliao force-pushed the feat/introduce-dump-unimport-components branch from b7a55a1 to ac5be69 Compare March 27, 2025 02:12
@antfu
Copy link
Member

antfu commented Apr 10, 2025

The should be dumpComponentsInfo or dumpComponentsMeta, as this is not related to unimport

@ilyaliao
Copy link
Contributor Author

ilyaliao commented Apr 13, 2025

The should be dumpComponentsInfo or dumpComponentsMeta, as this is not related to unimport

Sure, I will change it.

@ilyaliao ilyaliao changed the title feat: introduce dumpUnimportComponents option feat: introduce dumpComponentsInfo option Apr 13, 2025
@antfu antfu enabled auto-merge (squash) April 14, 2025 05:42
@antfu antfu merged commit 1f1eb86 into unplugin:main Apr 14, 2025
6 checks passed
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.

2 participants