Skip to content

Latest commit

 

History

History
66 lines (46 loc) · 1.38 KB

restricted-component-names.md

File metadata and controls

66 lines (46 loc) · 1.38 KB
pageClass sidebarDepth title description
rule-details
0
vue/restricted-component-names
enforce using only specific component names

vue/restricted-component-names

enforce using only specific component names

  • This rule has not been released yet.

📖 Rule Details

This rule enforces consistency in component names.

<template>
  <!-- ✓ GOOD -->
  <button/>
  <keep-alive></keep-alive>

  <!-- ✗ BAD -->
  <custom-component />
</template>

🔧 Options

{
  "vue/restricted-component-names": ["error", { 
    "allow": []
  }]
}

"allow"

<template>
  <!-- ✓ GOOD -->
  <custom-component />

  <!-- ✗ BAD -->
  <my-component />
</template>

👫 Related Rules

🔍 Implementation