Appearance
vue/match-component-import-name
要求注册的组件名称与导入的组件名称匹配
¥require the registered component name to match the imported component name
📖 规则详情
默认情况下,此规则将验证导入的名称是否与组件对象属性标识符的名称匹配。请注意,"matches" 表示导入的名称与组件对象属性标识符的 PascalCase 或 kebab-case 版本匹配。如果你希望强制它只能匹配 PascalCase 或 kebab-case 中的一个,请将此规则与规则 vue/component-definition-name-casing 结合使用。
¥By default, this rule will validate that the imported name matches the name of the components object property identifer. Note that "matches" means that the imported name matches either the PascalCase or kebab-case version of the components object property identifer. If you would like to enforce that it must match only one of PascalCase or kebab-case, use this rule in conjunction with the rule vue/component-definition-name-casing.
👫相关规则
¥👫 Related Rules
🚀版本
¥🚀 Version
此规则在 eslint-plugin-vue v8.7.0 中引入
¥This rule was introduced in eslint-plugin-vue v8.7.0
🔍代码实现
¥🔍 Implementation