mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-30 11:47:55 +01:00
chore(eslint): add no-trailing-spaces rule (#1906)
This commit is contained in:
@@ -15,6 +15,7 @@ module.exports = {
|
|||||||
'space-before-blocks': ['error', 'always'],
|
'space-before-blocks': ['error', 'always'],
|
||||||
'space-infix-ops': ['error', { int32Hint: false }],
|
'space-infix-ops': ['error', { int32Hint: false }],
|
||||||
'no-multi-spaces': ['error', { ignoreEOLComments: true }],
|
'no-multi-spaces': ['error', { ignoreEOLComments: true }],
|
||||||
|
'no-trailing-spaces': ['error'],
|
||||||
|
|
||||||
// Typescript
|
// Typescript
|
||||||
'@typescript-eslint/type-annotation-spacing': 'error',
|
'@typescript-eslint/type-annotation-spacing': 'error',
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
<template>
|
<template>
|
||||||
<UAlert
|
<UAlert
|
||||||
title="Customize Alert Avatar"
|
title="Customize Alert Avatar"
|
||||||
description="Insert custom content into the avatar slot!"
|
description="Insert custom content into the avatar slot!"
|
||||||
:avatar="{
|
:avatar="{
|
||||||
src: 'https://avatars.githubusercontent.com/u/739984?v=4',
|
src: 'https://avatars.githubusercontent.com/u/739984?v=4',
|
||||||
alt: 'Avatar'
|
alt: 'Avatar'
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<template #avatar="{ avatar }">
|
<template #avatar="{ avatar }">
|
||||||
<UAvatar
|
<UAvatar
|
||||||
v-bind="avatar"
|
v-bind="avatar"
|
||||||
chip-color="primary"
|
chip-color="primary"
|
||||||
chip-text=""
|
chip-text=""
|
||||||
chip-position="top-right"
|
chip-position="top-right"
|
||||||
@@ -17,4 +17,3 @@
|
|||||||
</template>
|
</template>
|
||||||
</UAlert>
|
</UAlert>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -7,4 +7,3 @@
|
|||||||
</template>
|
</template>
|
||||||
</UAlert>
|
</UAlert>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -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')" />
|
<UButton color="gray" variant="ghost" icon="i-heroicons-x-mark-20-solid" class="-my-1" @click="emits('close')" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<Placeholder class="h-full" />
|
<Placeholder class="h-full" />
|
||||||
</UCard>
|
</UCard>
|
||||||
</USlideover>
|
</USlideover>
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ export default defineComponent({
|
|||||||
const uiButton = computed<typeof configButton>(() => configButton)
|
const uiButton = computed<typeof configButton>(() => configButton)
|
||||||
|
|
||||||
const buttonRefs = ref<{ open: boolean, close: (e: EventTarget) => {} }[]>([])
|
const buttonRefs = ref<{ open: boolean, close: (e: EventTarget) => {} }[]>([])
|
||||||
|
|
||||||
const openedStates = computed(() => buttonRefs.value.map(({ open }) => open))
|
const openedStates = computed(() => buttonRefs.value.map(({ open }) => open))
|
||||||
watch(openedStates, (newValue, oldValue) => {
|
watch(openedStates, (newValue, oldValue) => {
|
||||||
for (const index in newValue) {
|
for (const index in newValue) {
|
||||||
|
|||||||
Reference in New Issue
Block a user