fix js linter errors

This commit is contained in:
rash
2026-03-13 15:39:10 +01:00
parent e62bed7092
commit c62a6359e1
6 changed files with 27 additions and 6 deletions

View File

@@ -83,5 +83,26 @@ export default defineConfig([
'@stylistic/generator-star-spacing': 0, '@stylistic/generator-star-spacing': 0,
'@stylistic/yield-star-spacing': ['error', 'after'], '@stylistic/yield-star-spacing': ['error', 'after'],
}, },
} },
{
files: [
'src/pretix/static/pretixcontrol/js/ui/checkinrules/**/*.vue',
'src/pretix/plugins/webcheckin/**/*.vue',
],
languageOptions: {
globals: {
moment: 'readonly',
},
},
},
{
files: [
'src/pretix/static/pretixpresale/widget/**/*.{ts,vue}',
],
languageOptions: {
globals: {
LANG: 'readonly',
},
},
},
]) ])

View File

@@ -60,5 +60,5 @@ onUnmounted(() => {
}) })
</script> </script>
<template lang="pug"> <template lang="pug">
input.form-control(ref="input", :id="id", :required="required") input.form-control(:id="id", ref="input", :required="required")
</template> </template>

View File

@@ -61,5 +61,5 @@ onUnmounted(() => {
}) })
</script> </script>
<template lang="pug"> <template lang="pug">
input.form-control(ref="input", :id="id", :required="required") input.form-control(:id="id", ref="input", :required="required")
</template> </template>

View File

@@ -81,7 +81,7 @@ function calcItemsSelected () {
isItemsSelected.value = hasChecked || hasQuantity isItemsSelected.value = hasChecked || hasQuantity
} }
function focusVoucherField () { function _focusVoucherField () {
voucherinput.value?.focus() voucherinput.value?.focus()
} }

View File

@@ -1,5 +1,5 @@
<script setup lang="ts"> <script setup lang="ts">
import { computed, inject, ref, watch, onMounted, nextTick } from 'vue' import { computed, inject, ref, watch, onMounted } from 'vue'
import type { Item, Category } from '~/types' import type { Item, Category } from '~/types'
import { StoreKey } from '~/sharedStore' import { StoreKey } from '~/sharedStore'
import { STRINGS, interpolate } from '~/i18n' import { STRINGS, interpolate } from '~/i18n'

View File

@@ -40,7 +40,7 @@ onMounted(() => {
emit('mounted') // TODO where does this go? emit('mounted') // TODO where does this go?
}) })
watch(() => store.view, (newValue, oldValue) => { watch(() => store.view, (_newValue, oldValue) => {
if (oldValue && wrapper.value) { if (oldValue && wrapper.value) {
// always make sure the widget is scrolled to the top // always make sure the widget is scrolled to the top
// as we only check top, we do not need to wait for a redraw // as we only check top, we do not need to wait for a redraw