Skip to content

Rule Proposal: Analog of vue/match-component-file-name for imported components #1786

Closed
@iliubinskii

Description

@iliubinskii

Please describe what the rule should do:

This rule should enforce consistent tag names for imported components.

What category should the rule belong to?

Enforces code style (layout)

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

Valid example

import IconPicker from "./IconPicker.vue";

export default defineComponent({
  name: "app",
  components: {
    "icon-picker": IconPicker

Invalid example

import IconPicker from "./IconPicker.vue";

export default defineComponent({
  name: "app",
  components: {
    "some-inconsistent-name": IconPicker

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