Skip to content

Commit 8b17cf8

Browse files
authored
Merge pull request #376 from Sqrcz/maintenance/remove-unnecessary-eslint-disable
maintenance - unnecessary eslint-disable removed
2 parents 7515aa3 + 3354312 commit 8b17cf8

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/components/FwbJumbotron/FwbJumbotron.vue

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,16 @@ const props = withDefaults(defineProps<IAlertProps>(), {
4646
headerClasses: '',
4747
})
4848
defineSlots<{
49-
/* eslint-disable @typescript-eslint/no-explicit-any */
5049
default: any
51-
/* eslint-enable @typescript-eslint/no-explicit-any */
5250
}>()
5351
5452
const attrs = useAttrs()
5553
5654
const wrapperClasses = computed(() => twMerge(
57-
'bg-white dark:bg-gray-900 py-8 lg:py-16 px-4 mx-auto max-w-screen-xl text-center ',
55+
'bg-white dark:bg-gray-900 mx-auto px-4 py-8 lg:py-16 max-w-screen-xl text-center',
5856
attrs.class as string))
5957
60-
const headerClassesComputed = computed(() => twMerge('mb-4 text-4xl font-extrabold tracking-tight leading-none text-gray-900 md:text-5xl lg:text-6xl dark:text-white', props.headerClasses))
61-
const subTextClassesComputed = computed(() => twMerge('mb-8 text-lg font-normal text-gray-500 lg:text-xl sm:px-0 lg:px-16 dark:text-gray-400', props.subTextClasses))
58+
const headerClassesComputed = computed(() => twMerge('mb-4 font-extrabold text-gray-900 dark:text-white text-4xl md:text-5xl lg:text-6xl leading-none tracking-tight', props.headerClasses))
59+
const subTextClassesComputed = computed(() => twMerge('mb-8 sm:px-0 lg:px-16 font-normal text-gray-500 dark:text-gray-400 text-lg lg:text-xl', props.subTextClasses))
6260
6361
</script>

src/components/utils/FwbSlotListener/FwbSlotListener.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ function appendEvents (
3030
else {
3131
vNode.props[eventName] = (...args: unknown[]) => {
3232
originalHandler(...args)
33-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
34-
;(handler as any)(...args)
33+
if (handler) (handler as any)(...args)
3534
}
3635
}
3736
})

0 commit comments

Comments
 (0)