Skip to content

Commit df91354

Browse files
committed
- Linting: Unused disable directive, unused variable, import extension, line breaks, v-on-style
1 parent 9016910 commit df91354

File tree

3 files changed

+10
-18
lines changed

3 files changed

+10
-18
lines changed

helper/data.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ export const truthy = {
7373
}
7474

7575
export const falsy = {
76-
// eslint-disable-next-line unicorn/no-reduce
7776
...Object.keys(truthy).reduce((acc, k) => ({ ...acc, [k]: false }), {}),
7877
tabs: { activeTab: false },
7978
t: { disabled: false },

src/components/compounds/Menu/MenuItem.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script>
2-
import { ref, watchEffect, computed } from 'vue'
2+
import { ref, watchEffect } from 'vue'
33
44
const Component = {
55
name: 'VMenuItem',
@@ -20,7 +20,7 @@ const Component = {
2020
const newActive = ref(props.active)
2121
const newExpanded = ref(props.expanded)
2222
const content = ref(null)
23-
23+
2424
watchEffect(() => {
2525
newActive.value = props.active
2626
})

src/components/compounds/Table/Table.vue

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script>
22
import { computed, reactive, ref, watch } from 'vue'
33
import { VInput, VButton, VCheckbox, VSelect } from '../..'
4-
import VTag from '../Tag/Tag'
4+
import VTag from '../Tag/Tag.vue'
55
66
const Table = {
77
name: 'VTable',
@@ -144,8 +144,7 @@ export default Table
144144
@click="data.resetFilters()"
145145
v-if="hasResetBtn"
146146
type="is-light has-text-black"
147-
class="mt-2 ml-2"
148-
>
147+
class="mt-2 ml-2">
149148
&#x21bb;
150149
</v-button>
151150
</slot>
@@ -164,8 +163,7 @@ export default Table
164163
@dragstart="data.onDragStartColumn($event, row, idx)"
165164
@drop="data.onDropColumn($event, column, idx)"
166165
@dragover="data.onDragOverColumn($event, column, idx)"
167-
@dragleave="data.onDragLeaveColumn($event, column, idx)"
168-
>
166+
@dragleave="data.onDragLeaveColumn($event, column, idx)">
169167
{{ column.caption }}
170168
<span v-if="sortable">
171169
{{ column.ascendant ? '&darr;' : ' &uarr;' }}
@@ -184,8 +182,7 @@ export default Table
184182
@input="data.searchColumn(column.name, search[column.name])"
185183
color="is-dark"
186184
placeholder="Search"
187-
class="input has-text-black is-small is-black"
188-
/>
185+
class="input has-text-black is-small is-black" />
189186
</td>
190187
</tr>
191188
<template v-if="!groupBy">
@@ -196,8 +193,7 @@ export default Table
196193
@drop="data.onDropRow($event, row, idx)"
197194
@dragover="data.onDragOverRow($event, row, idx)"
198195
@dragleave="data.onDragLeaveRow($event, row, idx)"
199-
:class="{ 'has-background-primary': row.selected, 'has-text-white': row.selected }"
200-
>
196+
:class="{ 'has-background-primary': row.selected, 'has-text-white': row.selected }">
201197
<td v-if="checkable">
202198
<v-checkbox @change="data.toggleCheck($event, row)" />
203199
</td>
@@ -211,8 +207,7 @@ export default Table
211207
:key="column.name"
212208
:class="{... column.style, 'sticky-column': column.sticky }"
213209
:contenteditable="props.editable"
214-
v-on:blur="data.editCell(row, column, $event.target.textContent)"
215-
>
210+
@blur="data.editCell(row, column, $event.target.textContent)">
216211
<slot :name="column.name" :row="row">
217212
{{ row[column.name] }}
218213
</slot>
@@ -243,8 +238,7 @@ export default Table
243238
:key="column.name"
244239
:class="column.style"
245240
:contenteditable="props.editable"
246-
v-on:blur="data.editCell(row, column, $event.target.textContent)"
247-
>
241+
@blur="data.editCell(row, column, $event.target.textContent)">
248242
<slot :name="column.name" :row="row">
249243
{{ row[column.name] }}
250244
</slot>
@@ -259,8 +253,7 @@ export default Table
259253
<!-- todo: move the styles to their own scope -->
260254
<div
261255
class="pagination-container"
262-
v-if="pagination"
263-
>
256+
v-if="pagination">
264257
<v-select v-model="rowsPerPage" color="is-dark" class="has-text-dark">
265258
>
266259
<option v-for="value in rowsPerPageOptions" :key="value" :value="value">

0 commit comments

Comments
 (0)