Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

component-name-in-template-casing options.globals should support regex #2912

Closed
@kyleshevlin

Description

@kyleshevlin

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp