Add eslint

This commit is contained in:
2025-08-20 23:40:00 +02:00
parent cc544322b2
commit 16956d12f4
31 changed files with 1214 additions and 913 deletions
+5 -3
View File
@@ -28,6 +28,8 @@ async function submit() {
pending.value = true;
try {
// TODO: show toast with invite code
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const result = await $fetch(`/api/hunt/${props.huntId}/team`, {
body: JSON.stringify(data),
method: 'POST'
@@ -56,14 +58,14 @@ async function submit() {
<div class="mt-4 flex flex-col gap-4">
<VaInput v-model="data.name" label="Name" placeholder="My cool team" />
<VaTextarea
v-model="data.description"
max-rows="4"
min-rows="2"
v-model="data.description"
label="Description"
placeholder="The best team!"
/>
<p>An invite code will be generated automatically.</p>
<VaAlert color="danger" v-if="error">{{ t(error) }}</VaAlert>
<VaAlert v-if="error" color="danger">{{ t(error) }}</VaAlert>
</div>
<template #footer>
<VaButtonGroup :loading="pending" :disabled="pending">
@@ -71,8 +73,8 @@ async function submit() {
<VaButton
color="success"
:disabled="data.name.length < 3 || pending"
@click="submit"
:loading="pending"
@click="submit"
>Create</VaButton
>
</VaButtonGroup>