Skip to content

Commit

Permalink
fix(katzencore): Fixed some ESLint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
maxlkatze committed Aug 12, 2024
1 parent 6682d28 commit ca2ce3a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion playground/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const richTextExample = useKatzeRichText({ key: 'rich_text_example',
default: '<span>This is a rich text example. You can edit this text add italics and boldness and more.</span>',
})
const customImage = useKatzeImage({ key: 'custom_image', default: { src: '/images/test.svg', alt: 'Placeholder Image' }})
const customImage = useKatzeImage({ key: 'custom_image', default: { src: '/images/test.svg', alt: 'Placeholder Image' } })
</script>

<template>
Expand Down
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default defineNuxtModule<ModuleOptions>({
},
)

if(_options.users.length === 0) {
if (_options.users.length === 0) {
katzeError('No users found in the configuration adding default user')
_options.users = [
{
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/components/views/EditView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ onMounted(
}
selectedElement.value = element
//cancel click event
// cancel click event
event.preventDefault()
event.stopPropagation()
event.stopImmediatePropagation()
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/composables/useAnimation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* - useScrollAnimation
* - useTimelineAnimation (WIP)
*/
import { ref, watch } from 'vue'
import { ref } from 'vue'
import type { Ref } from 'vue'
import { onMounted, onUnmounted } from '#imports'

Expand Down
2 changes: 1 addition & 1 deletion src/runtime/composables/useUiComponents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const getContent = () => {
return useRuntimeConfig().public.content as Record<string, unknown> || {}
}

export const getContentByKey = <T = string>(key: string, defaultValue: string|ImageContent = '') => {
export const getContentByKey = <T = string>(key: string, defaultValue: string | ImageContent = '') => {
const content = getContent()
if (content[key]) {
return content[key] as T || defaultValue
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/stores/UiStore.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineStore } from 'pinia'
import type {KatzenUIOptions} from '../composables/useUiComponents';
import type { KatzenUIOptions } from '../composables/useUiComponents'

export enum ComponentType {
Text = 'text',
Expand Down

0 comments on commit ca2ce3a

Please sign in to comment.