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

Enforcing props destructuring #2688

Open
Ericlm opened this issue Feb 18, 2025 · 0 comments
Open

Enforcing props destructuring #2688

Ericlm opened this issue Feb 18, 2025 · 0 comments

Comments

@Ericlm
Copy link
Contributor

Ericlm commented Feb 18, 2025

Please describe what the rule should do:
The role of this rule would be to suggest props destructuring. It could also warns on its usage if necessary.

What category should the rule belong to?

[X] Enforces code style (layout)
[ ] Warns about a potential error (problem)
[ ] Suggests an alternate way of doing something (suggestion)
[ ] Other (please specify:)

Provide 2-3 code examples that this rule should warn about:

// vue/prefer-props-destructuring

const props = defineProps<>({...}) // 🚨

const {...} = defineProps<>({...}) // 👍

Additional context

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

No branches or pull requests

1 participant