chore(eslint): add no-trailing-spaces rule (#1906)

This commit is contained in:
John Tanzer
2024-06-24 10:55:50 +02:00
committed by GitHub
parent 99c52e5008
commit 0a47a2b5f2
5 changed files with 11 additions and 12 deletions

View File

@@ -15,6 +15,7 @@ module.exports = {
'space-before-blocks': ['error', 'always'],
'space-infix-ops': ['error', { int32Hint: false }],
'no-multi-spaces': ['error', { ignoreEOLComments: true }],
'no-trailing-spaces': ['error'],
// Typescript
'@typescript-eslint/type-annotation-spacing': 'error',

View File

@@ -1,15 +1,15 @@
<template>
<UAlert
title="Customize Alert Avatar"
description="Insert custom content into the avatar slot!"
:avatar="{
src: 'https://avatars.githubusercontent.com/u/739984?v=4',
alt: 'Avatar'
<UAlert
title="Customize Alert Avatar"
description="Insert custom content into the avatar slot!"
:avatar="{
src: 'https://avatars.githubusercontent.com/u/739984?v=4',
alt: 'Avatar'
}"
>
<template #avatar="{ avatar }">
<UAvatar
v-bind="avatar"
<UAvatar
v-bind="avatar"
chip-color="primary"
chip-text=""
chip-position="top-right"
@@ -17,4 +17,3 @@
</template>
</UAlert>
</template>

View File

@@ -7,4 +7,3 @@
</template>
</UAlert>
</template>

View File

@@ -23,7 +23,7 @@ const emits = defineEmits<{
<UButton color="gray" variant="ghost" icon="i-heroicons-x-mark-20-solid" class="-my-1" @click="emits('close')" />
</div>
</template>
<Placeholder class="h-full" />
</UCard>
</USlideover>

View File

@@ -133,7 +133,7 @@ export default defineComponent({
const uiButton = computed<typeof configButton>(() => configButton)
const buttonRefs = ref<{ open: boolean, close: (e: EventTarget) => {} }[]>([])
const openedStates = computed(() => buttonRefs.value.map(({ open }) => open))
watch(openedStates, (newValue, oldValue) => {
for (const index in newValue) {