Skip to content

Commit e68c93c

Browse files
committed
fix linting errors
1 parent dfe4de3 commit e68c93c

23 files changed

+6866
-1612
lines changed

.eslintrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
}
3838
],
3939
"import/no-named-as-default": "off",
40-
"import/order": "off"
40+
"import/order": "off",
41+
"vue/max-attributes-per-line": "off"
4142
},
4243
"overrides": [
4344
{

components/LangChooser.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ const options = computed(() =>
1212
else return { label: it.name ?? it.code, value: it.code }
1313
}),
1414
)
15-
</script>
15+
</script>

components/ProfileIcon.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
</template>
66

77
<script lang="ts" setup>
8-
import { SelfFragment } from "~/graphql/generated";
8+
import { SelfFragment } from '~/graphql/generated'
99
1010
defineProps<{
11-
account: SelfFragment
11+
account: SelfFragment
1212
}>()
13-
</script>
13+
</script>

components/input/Account.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ const options = computed(
1313
result.value?.accounts.nodes.map<FormKitOptionsItem>(it => ({ value: it.id, label: it.username ?? it.email })) ??
1414
[],
1515
)
16-
</script>
16+
</script>

components/input/Date.vue

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,4 @@ function inputRaw(value: string, node: FormKitNode) {
1212
}
1313
</script>
1414

15-
<style lang="scss" scoped>
16-
17-
</style>
15+
<style lang="scss" scoped></style>

components/input/InputPlace.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ const options = computed(
1414
label: it.name,
1515
})) ?? [],
1616
)
17-
</script>
17+
</script>

components/input/Pos.vue

+3-24
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,8 @@
11
<template>
22
<div class="grid grid-flow-col gap-4">
3-
<FormKit
4-
name="x"
5-
validation="required"
6-
label="X"
7-
type="number"
8-
step="1"
9-
:value="floored?.x"
10-
/>
11-
<FormKit
12-
name="y"
13-
placeholder="optional"
14-
label="Y"
15-
type="number"
16-
step="1"
17-
:value="floored?.y"
18-
/>
19-
<FormKit
20-
name="z"
21-
validation="required"
22-
label="Z"
23-
type="number"
24-
step="1"
25-
:value="floored?.z"
26-
/>
3+
<FormKit name="x" validation="required" label="X" type="number" step="1" :value="floored?.x" />
4+
<FormKit name="y" placeholder="optional" label="Y" type="number" step="1" :value="floored?.y" />
5+
<FormKit name="z" validation="required" label="Z" type="number" step="1" :value="floored?.z" />
276
</div>
287
</template>
298

components/input/World.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ const { result } = useQuery(GetWorldsDocument)
1111
const options = computed(
1212
() => result.value?.worlds.map<FormKitOptionsItem>(it => ({ value: it.id, label: it.name })) ?? [],
1313
)
14-
</script>
14+
</script>

components/item/Icon.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ span {
5151
bottom: 0;
5252
right: 0;
5353
}
54-
</style>
54+
</style>

components/map/Leaflet.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ const background = computed(() => {
5555
img.leaflet-tile {
5656
image-rendering: pixelated;
5757
}
58-
</style>
58+
</style>

components/network/Node.vue

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
<template>
22
<g v-tooltip="$t(`network.node_type.${node.type.toLowerCase()}`)">
33
<circle v-if="isCircle" :r="config.radius * scale" :fill="color" />
4-
<rect v-else :height="config.height * scale" :width="config.width * scale" :x="config.height * scale * -0.5"
5-
:y="config.width * scale * -0.5" :fill="color" />
4+
<rect
5+
v-else
6+
:height="config.height * scale"
7+
:width="config.width * scale"
8+
:x="config.height * scale * -0.5"
9+
:y="config.width * scale * -0.5"
10+
:fill="color"
11+
/>
612
<component :is="icon" v-if="icon" v-svg-size="{ ...config, scale: scale * 0.6 }" />
713
<text :x="0" y="3em" :font-size="9 * scale" text-anchor="middle" fill="#FFF">
814
{{ node.name }}
@@ -47,4 +53,4 @@ const isCircle = computed(() => props.node.type !== 'Tale')
4753
4854
const color = computed(() => `var(--${colors[props.node.type]})`)
4955
const icon = computed(() => icons[props.node.type])
50-
</script>
56+
</script>

components/paginated/Filter.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ function update(raw: RawTimestampFilter<TimestampFilter>) {
3434
const transformed = transformFilter(raw)
3535
emit('update:modelValue', transformed)
3636
}
37-
</script>
37+
</script>

0 commit comments

Comments
 (0)