chore(frontend): ESLint dla Vue i TypeScriptu
Konfiguracja we flat configu: zalecane zestawy js, typescript-eslint oraz eslint-plugin-vue. Bloki <script setup lang="ts"> obsługuje vue-eslint-parser przekazujący zawartość do parsera TypeScriptu. Odstępstwa od domyślnych reguł: - vue/multi-word-component-names wyłączone - kafelki panelu mają nazwy własne i nie każda jest dwuczłonowa - no-unused-vars przepuszcza nazwy z prefiksem podkreślenia - no-console wyłączone dla testu dymnego, który raportuje wynik na stdout Szablony przepuszczone przez eslint --fix, co ujednoliciło łamanie atrybutów i domykanie znaczników. Po zmianach kontrola typów, build i test dymny nadal przechodzą. Dochodzą skrypty npm: lint (z --max-warnings 0) oraz lint:fix. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1b5ce2109b
commit
105f3e6c6a
17 files changed
+1682
-84
No files matched your search
@@ -41,15 +41,34 @@ async function toggle() {
|
||||
|
||||
<template>
|
||||
<div class="glass-card connection-panel">
|
||||
<h2 class="card-title"><Radio /> Kanał Głosowy</h2>
|
||||
<h2 class="card-title">
|
||||
<Radio /> Kanał Głosowy
|
||||
</h2>
|
||||
<div class="control-row">
|
||||
<select v-model="selected" class="premium-select" :disabled="!channels.length">
|
||||
<option v-if="!channels.length" value="">Brak dostępnych kanałów</option>
|
||||
<option v-for="channel in channels" :key="channel.channel_id" :value="channel.channel_id">
|
||||
<select
|
||||
v-model="selected"
|
||||
class="premium-select"
|
||||
:disabled="!channels.length"
|
||||
>
|
||||
<option
|
||||
v-if="!channels.length"
|
||||
value=""
|
||||
>
|
||||
Brak dostępnych kanałów
|
||||
</option>
|
||||
<option
|
||||
v-for="channel in channels"
|
||||
:key="channel.channel_id"
|
||||
:value="channel.channel_id"
|
||||
>
|
||||
{{ channel.guild_name }} - {{ channel.channel_name }}
|
||||
</option>
|
||||
</select>
|
||||
<button class="btn" :class="active ? 'btn-danger' : 'btn-primary btn-glow'" @click="toggle">
|
||||
<button
|
||||
class="btn"
|
||||
:class="active ? 'btn-danger' : 'btn-primary btn-glow'"
|
||||
@click="toggle"
|
||||
>
|
||||
<component :is="active ? LogOut : LogIn" />
|
||||
{{ active ? 'Odłącz' : 'Połącz' }}
|
||||
</button>
|
||||
|
||||
Reference in new issue
Block a user