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

Only allow specific compontent names #2568

Open
fisker opened this issue Sep 29, 2024 · 1 comment
Open

Only allow specific compontent names #2568

fisker opened this issue Sep 29, 2024 · 1 comment

Comments

@fisker
Copy link
Contributor

fisker commented Sep 29, 2024

Please describe what the rule should do:

Enforce consistency component name prefix. This rule should accept options to enforce component matches names or name patterns.

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:

<!-- Good -->
<keep-alive></keep-alive> <!-- builtin -->
<button/> <!-- html tag -->
<foo-button/> <!-- allowed with option `/^foo\-/` -->

<!-- Bad -->
<bar-button/>

Additional context

N/A

@ota-meshi
Copy link
Member

Thank you for proposing the rule. That rule sounds good to me.

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

2 participants