eslint-plugin-vue icon indicating copy to clipboard operation
eslint-plugin-vue copied to clipboard

Only allow specific compontent names

Open fisker opened this issue 1 year ago • 0 comments

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

fisker avatar Sep 29 '24 14:09 fisker