mirror of
https://github.com/pretix/pretix.git
synced 2026-05-11 16:13:59 +00:00
fix js linter errors
This commit is contained in:
@@ -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',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
])
|
])
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ function calcItemsSelected () {
|
|||||||
isItemsSelected.value = hasChecked || hasQuantity
|
isItemsSelected.value = hasChecked || hasQuantity
|
||||||
}
|
}
|
||||||
|
|
||||||
function focusVoucherField () {
|
function _focusVoucherField () {
|
||||||
voucherinput.value?.focus()
|
voucherinput.value?.focus()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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'
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user