Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork698
Description
What rule do you want to change?
I want thevue/component-name-in-template-casing to support regexes for itsoptions.globals option the way it does for itsignores options.
In my use case, we have prepended every component in our design system withc- and globally registered these components. Rather than producing and keeping a list of all those components in sync as they are developed, I'd like to use the regex/^c-/ and capture them.
Does this change cause the rule to produce more or fewer warnings? Neither. Should make it simpler to create the same warnings.
How will the change be implemented? (New option, new default behavior, etc.)?
I imagine by also mapping with thetoRegex... helper function used on theignores option
Please provide some example code that this change will affect:
What does the rule currently do for this code?
It requires you enumerate every single global component name you want to include in the linting.
What will the rule do after it's changed?
A regex could potentially cover many globally registered component names if they follow a namespacing pattern.
Additional context