Skip to content

Commit 746e0fb

Browse files
Merge pull request #2762 from nextcloud/chore/fix-linter-warnings
chore: fix all linter warnings
2 parents ff0658b + 980e29d commit 746e0fb

15 files changed

+40
-40
lines changed

src/components/AppNavigation/Colorpicker.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export default {
6565
default: '#31CC7C',
6666
},
6767
},
68-
emits: ['color-selected'],
68+
emits: ['colorSelected'],
6969
data() {
7070
return {
7171
random: '#31CC7C',
@@ -92,7 +92,7 @@ export default {
9292
this.pick(this.random)
9393
},
9494
pick(color) {
95-
this.$emit('color-selected', color)
95+
this.$emit('colorSelected', color)
9696
},
9797
/*
9898
* Generate a random colour with the core generator

src/components/AppSidebar/Alarm/AlarmDateTimePickerModal.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default {
5252
},
5353
},
5454
emits: [
55-
'select-date-time',
55+
'selectDateTime',
5656
'close',
5757
],
5858
data() {
@@ -72,7 +72,7 @@ export default {
7272
},
7373
7474
onSubmit() {
75-
this.$emit('select-date-time', this.date)
75+
this.$emit('selectDateTime', this.date)
7676
},
7777
7878
onClose() {

src/components/AppSidebar/Alarm/AlarmList.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ export default {
7171
},
7272
},
7373
emits: [
74-
'add-alarm',
75-
'remove-alarm',
76-
'update-alarm',
74+
'addAlarm',
75+
'removeAlarm',
76+
'updateAlarm',
7777
],
7878
computed: {
7979
alarmComponents() {
@@ -125,7 +125,7 @@ export default {
125125
* @param {object} alarm The alarm time or duration
126126
*/
127127
addAlarm(alarm) {
128-
this.$emit('add-alarm', this.generateVAlarm(alarm))
128+
this.$emit('addAlarm', this.generateVAlarm(alarm))
129129
},
130130
131131
/**
@@ -135,7 +135,7 @@ export default {
135135
* @param {number} index This index of the updated alarm-item
136136
*/
137137
updateAlarm(alarm, index) {
138-
this.$emit('update-alarm', this.generateVAlarm(alarm), index)
138+
this.$emit('updateAlarm', this.generateVAlarm(alarm), index)
139139
},
140140
141141
/**
@@ -144,7 +144,7 @@ export default {
144144
* @param {number} index The index of the alarm-list
145145
*/
146146
removeAlarm(index) {
147-
this.$emit('remove-alarm', index)
147+
this.$emit('removeAlarm', index)
148148
},
149149
},
150150
}

src/components/AppSidebar/Alarm/AlarmListItem.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ export default {
124124
},
125125
},
126126
emits: [
127-
'remove-alarm',
128-
'update-alarm',
127+
'removeAlarm',
128+
'updateAlarm',
129129
],
130130
data() {
131131
return {
@@ -210,7 +210,7 @@ export default {
210210
parameter: undefined, // ical.js sets the correct parameter for us when using a `ICAL.Time`-object
211211
}
212212
213-
this.$emit('update-alarm', alarm, this.index)
213+
this.$emit('updateAlarm', alarm, this.index)
214214
this.closeEditMode()
215215
},
216216
@@ -220,7 +220,7 @@ export default {
220220
parameter: undefined, // We don't care about the params, since they currently can't be changed
221221
}
222222
223-
this.$emit('update-alarm', alarm, this.index)
223+
this.$emit('updateAlarm', alarm, this.index)
224224
this.closeEditMode()
225225
},
226226
@@ -232,7 +232,7 @@ export default {
232232
* This method emits the removeAlarm event
233233
*/
234234
removeAlarm() {
235-
this.$emit('remove-alarm', this.index)
235+
this.$emit('removeAlarm', this.index)
236236
this.showMenu = false
237237
},
238238
},

src/components/AppSidebar/Alarm/AlarmListNew.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export default {
137137
},
138138
},
139139
emits: [
140-
'add-alarm',
140+
'addAlarm',
141141
],
142142
data() {
143143
return {
@@ -214,7 +214,7 @@ export default {
214214
},
215215
216216
onAlarmOptionClick(alarm) {
217-
this.$emit('add-alarm', alarm)
217+
this.$emit('addAlarm', alarm)
218218
},
219219
220220
onChooseDateAndTime(date) {
@@ -223,7 +223,7 @@ export default {
223223
parameter: undefined, // ical.js sets the correct parameter for us when using a `ICAL.Time`-object
224224
}
225225
226-
this.$emit('add-alarm', alarm)
226+
this.$emit('addAlarm', alarm)
227227
this.chooseDateTimeMenuIsOpen = false
228228
},
229229
},

src/components/AppSidebar/Alarm/AlarmRelativeTimePickerModal.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export default {
8585
},
8686
},
8787
emits: [
88-
'select-date-time',
88+
'selectDateTime',
8989
'close',
9090
],
9191
data() {
@@ -149,7 +149,7 @@ export default {
149149
150150
const alarmObject = getAlarmObjectFromTriggerTime(seconds, this.alarm.relativeIsRelatedToStart)
151151
152-
this.$emit('select-date-time', alarmObject)
152+
this.$emit('selectDateTime', alarmObject)
153153
},
154154
155155
onClose() {

src/components/AppSidebar/CalendarPickerItem.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export default {
7373
required: false,
7474
},
7575
},
76-
emits: ['change-calendar'],
76+
emits: ['changeCalendar'],
7777
computed: {
7878
isDisabled() {
7979
return this.calendars.length < 2 || this.disabled
@@ -108,7 +108,7 @@ export default {
108108
if (!calendar) {
109109
return
110110
}
111-
this.$emit('change-calendar', calendar)
111+
this.$emit('changeCalendar', calendar)
112112
},
113113
},
114114
}

src/components/AppSidebar/CheckboxItem.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
2828
:aria-checked="checked"
2929
:checked="checked"
3030
:disabled="readOnly"
31-
@click="$emit('set-checked', checked)">
31+
@click="$emit('setChecked', checked)">
3232
<label :for="id">
3333
<span>{{ propertyString }}</span>
3434
</label>
@@ -56,7 +56,7 @@ export default {
5656
default: '',
5757
},
5858
},
59-
emits: ['set-checked'],
59+
emits: ['setChecked'],
6060
}
6161
</script>
6262

src/components/AppSidebar/DateTimePickerItem.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export default {
121121
checkOverdue: {
122122
type: Boolean,
123123
default: true,
124-
}
124+
},
125125
},
126126
data() {
127127
return {

src/components/AppSidebar/MultiselectItem.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export default {
8686
default: null,
8787
},
8888
},
89-
emits: ['change-value'],
89+
emits: ['changeValue'],
9090
computed: {
9191
isDisabled() {
9292
return this.options.length < 2 || this.disabled
@@ -100,7 +100,7 @@ export default {
100100
if (!value) {
101101
return
102102
}
103-
this.$emit('change-value', value)
103+
this.$emit('changeValue', value)
104104
},
105105
},
106106
}

src/components/AppSidebar/TagsItem.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,17 @@ export default {
8282
},
8383
},
8484
emits: [
85-
'add-tag',
86-
'set-tags',
85+
'addTag',
86+
'setTags',
8787
],
8888
methods: {
8989
t,
9090
9191
addTag(tag) {
92-
this.$emit('add-tag', tag)
92+
this.$emit('addTag', tag)
9393
},
9494
setTags(tags) {
95-
this.$emit('set-tags', tags)
95+
this.$emit('setTags', tags)
9696
},
9797
},
9898
}

src/components/TaskCheckbox.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export default {
7171
default: '',
7272
},
7373
},
74-
emits: ['toggle-completed'],
74+
emits: ['toggleCompleted'],
7575
computed: {
7676
ariaLabel() {
7777
if (this.cancelled && !this.completed) {
@@ -97,7 +97,7 @@ export default {
9797
t,
9898
9999
toggleCompleted() {
100-
this.$emit('toggle-completed')
100+
this.$emit('toggleCompleted')
101101
},
102102
},
103103
}

src/components/TaskStatusDisplay.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ export default {
6363
},
6464
},
6565
emits: [
66-
'status-clicked',
67-
'reset-status',
66+
'statusClicked',
67+
'resetStatus',
6868
],
6969
data() {
7070
return {
@@ -86,7 +86,7 @@ export default {
8686
},
8787
methods: {
8888
statusClicked() {
89-
this.$emit('status-clicked')
89+
this.$emit('statusClicked')
9090
},
9191
checkTimeout(newStatus) {
9292
if (newStatus) {
@@ -96,7 +96,7 @@ export default {
9696
if (newStatus.status === 'success') {
9797
this.resetStatusTimeout = setTimeout(
9898
() => {
99-
this.$emit('reset-status')
99+
this.$emit('resetStatus')
100100
}, 5000,
101101
)
102102
}

src/utils/dateStrings.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { convertTimeZone } from './alarms.js'
2727
/**
2828
* Returns a formatted string for the due date
2929
*
30-
* @param {Task} task The task
30+
* @param {import('../models/task.js').Task} task The task
3131
* @return {string} The formatted due date string
3232
*/
3333
export function dueDateString(task) {
@@ -88,7 +88,7 @@ export function dueDateString(task) {
8888
/**
8989
* Returns a formatted string for the start date
9090
*
91-
* @param {Task} task The task
91+
* @param {import('../models/task.js').Task} task The task
9292
* @return {string} The formatted start date string
9393
*/
9494
export function startDateString(task) {

src/views/AppSidebar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
172172
:property-string="completedString"
173173
:read-only="readOnly"
174174
:task="task"
175-
:check-overdue=false
175+
:check-overdue="false"
176176
@set-value="changeCompletedDate">
177177
<template #icon>
178178
<CalendarCheck :size="20" />

0 commit comments

Comments
 (0)