Skip to content

Commit

Permalink
feat: add vue/component-name-in-template-casing
Browse files Browse the repository at this point in the history
  • Loading branch information
jpntex committed Oct 30, 2023
1 parent fd66975 commit c780dac
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
8 changes: 0 additions & 8 deletions .changeset/README.md

This file was deleted.

8 changes: 8 additions & 0 deletions packages/eslint-config-vue/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,13 @@ module.exports = {
'max': 1,
},
}],
'vue/component-name-in-template-casing': [
'error',
'kebab-case',
{
registeredComponentsOnly: false,
ignores: [],
},
],
},
}
3 changes: 2 additions & 1 deletion packages/eslint-config-vue/playground/test.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup>
import { ref } from 'vue'
import CoolBeans from './cool.vue'
const name = ref<string>('')
name.value = 'John'
Expand All @@ -16,6 +16,7 @@ const clickFn = () => {
<template>
<input v-model="name" type="text"/>
<div>multi root</div>
<cool-beans/>
<div
:class="$style.multi"
title="clicky"
Expand Down

0 comments on commit c780dac

Please sign in to comment.