Skip to content

Commit 3c98f7a

Browse files
skjnldsvst3iny
authored andcommitted
Fix lint
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]> Signed-off-by: Richard Steinmetz <[email protected]>
1 parent beefca0 commit 3c98f7a

28 files changed

+79
-69
lines changed

.stylelintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/fonts

src/components/AppNavigation/AppNavigationHeader/AppNavigationHeaderDatePicker.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export default {
7373
filters: {
7474
formatDateRage,
7575
},
76-
data: function() {
76+
data() {
7777
return {
7878
isDatepickerOpen: false,
7979
}

src/components/AppNavigation/CalendarList.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939
:calendar="calendar" />
4040
</template>
4141
<!-- The header slot must be placed here, otherwise vuedraggable adds undefined as item to the array -->
42-
<CalendarListItemLoadingPlaceholder
43-
v-if="loadingCalendars"
44-
#footer />
42+
<template #footer>
43+
<CalendarListItemLoadingPlaceholder v-if="loadingCalendars" />
44+
</template>
4545
</draggable>
4646
</template>
4747

src/components/AppNavigation/CalendarList/CalendarListItem.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export default {
183183
required: true,
184184
},
185185
},
186-
data: function() {
186+
data() {
187187
return {
188188
// Rename action
189189
showRenameLabel: true,

src/components/AppNavigation/CalendarList/CalendarListNew.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export default {
101101
ActionText,
102102
AppNavigationItem,
103103
},
104-
data: function() {
104+
data() {
105105
return {
106106
// Open state
107107
isOpen: false,

src/components/AppNavigation/CalendarList/PublicCalendarListItem.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export default {
104104
required: true,
105105
},
106106
},
107-
data: function() {
107+
data() {
108108
return {
109109
// copy subscription link:
110110
showCopySubscriptionLinkLabel: true,

src/components/AppNavigation/CalendarList/Trashbin.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,35 +236,43 @@ export default {
236236
max-width: 40vw;
237237
margin: 2vw;
238238
}
239+
239240
table {
240241
width: 100%;
241242
}
243+
242244
th, td {
243245
padding: 4px;
244246
}
247+
245248
th {
246249
color: var(--color-text-maxcontrast)
247250
}
251+
248252
.name {
249253
// Take remaining width to prevent whitespace on the right side
250254
width: 100vw;
251255
}
256+
252257
.item {
253258
display: flex;
254259
255260
.item-subline {
256261
color: var(--color-text-maxcontrast)
257262
}
258263
}
264+
259265
.deletedAt {
260266
text-align: right;
261267
}
268+
262269
.footer {
263270
color: var(--color-text-lighter);
264271
text-align: center;
265272
font-size: small;
266273
margin-top: 16px;
267274
}
275+
268276
.color-dot {
269277
display: inline-block;
270278
vertical-align: middle;

src/components/AppNavigation/Settings.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export default {
157157
default: false,
158158
},
159159
},
160-
data: function() {
160+
data() {
161161
return {
162162
savingBirthdayCalendar: false,
163163
savingEventLimit: false,

src/components/AppNavigation/Settings/ImportScreenRow.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ export default {
6868
return this.$store.getters.getCalendarById(calendarId)
6969
},
7070
calendars() {
71+
// TODO: remove once the false positive is fixed upstream
72+
// eslint-disable-next-line vue/no-side-effects-in-computed-properties
7173
const calendars = this.$store.getters.sortedCalendarFilteredByComponents(
7274
this.file.parser.containsVEvents(),
7375
this.file.parser.containsVJournals(),

src/components/Editor/Alarm/AlarmTimeUnitSelect.vue

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,29 +71,29 @@ export default {
7171
7272
if (this.unit === 'seconds') {
7373
options.push({
74-
'label': this.$n('calendar', 'second', 'seconds', this.count),
75-
'unit': 'seconds',
74+
label: this.$n('calendar', 'second', 'seconds', this.count),
75+
unit: 'seconds',
7676
})
7777
}
7878
7979
if (!this.isAllDay || ['minutes', 'hours'].indexOf(this.unit) !== -1) {
8080
options.push({
81-
'label': this.$n('calendar', 'minute', 'minutes', this.count),
82-
'unit': 'minutes',
81+
label: this.$n('calendar', 'minute', 'minutes', this.count),
82+
unit: 'minutes',
8383
})
8484
options.push({
85-
'label': this.$n('calendar', 'hour', 'hours', this.count),
86-
'unit': 'hours',
85+
label: this.$n('calendar', 'hour', 'hours', this.count),
86+
unit: 'hours',
8787
})
8888
}
8989
9090
options.push({
91-
'label': this.$n('calendar', 'day', 'days', this.count),
92-
'unit': 'days',
91+
label: this.$n('calendar', 'day', 'days', this.count),
92+
unit: 'days',
9393
})
9494
options.push({
95-
'label': this.$n('calendar', 'week', 'weeks', this.count),
96-
'unit': 'weeks',
95+
label: this.$n('calendar', 'week', 'weeks', this.count),
96+
unit: 'weeks',
9797
})
9898
9999
return options

0 commit comments

Comments
 (0)