Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix all linter warnings #2762

Merged
merged 1 commit into from
Jan 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/AppNavigation/Colorpicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default {
default: '#31CC7C',
},
},
emits: ['color-selected'],
emits: ['colorSelected'],
data() {
return {
random: '#31CC7C',
Expand All @@ -92,7 +92,7 @@ export default {
this.pick(this.random)
},
pick(color) {
this.$emit('color-selected', color)
this.$emit('colorSelected', color)
},
/*
* Generate a random colour with the core generator
Expand Down
4 changes: 2 additions & 2 deletions src/components/AppSidebar/Alarm/AlarmDateTimePickerModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default {
},
},
emits: [
'select-date-time',
'selectDateTime',
'close',
],
data() {
Expand All @@ -72,7 +72,7 @@ export default {
},

onSubmit() {
this.$emit('select-date-time', this.date)
this.$emit('selectDateTime', this.date)
},

onClose() {
Expand Down
12 changes: 6 additions & 6 deletions src/components/AppSidebar/Alarm/AlarmList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ export default {
},
},
emits: [
'add-alarm',
'remove-alarm',
'update-alarm',
'addAlarm',
'removeAlarm',
'updateAlarm',
],
computed: {
alarmComponents() {
Expand Down Expand Up @@ -125,7 +125,7 @@ export default {
* @param {object} alarm The alarm time or duration
*/
addAlarm(alarm) {
this.$emit('add-alarm', this.generateVAlarm(alarm))
this.$emit('addAlarm', this.generateVAlarm(alarm))
},

/**
Expand All @@ -135,7 +135,7 @@ export default {
* @param {number} index This index of the updated alarm-item
*/
updateAlarm(alarm, index) {
this.$emit('update-alarm', this.generateVAlarm(alarm), index)
this.$emit('updateAlarm', this.generateVAlarm(alarm), index)
},

/**
Expand All @@ -144,7 +144,7 @@ export default {
* @param {number} index The index of the alarm-list
*/
removeAlarm(index) {
this.$emit('remove-alarm', index)
this.$emit('removeAlarm', index)
},
},
}
Expand Down
10 changes: 5 additions & 5 deletions src/components/AppSidebar/Alarm/AlarmListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ export default {
},
},
emits: [
'remove-alarm',
'update-alarm',
'removeAlarm',
'updateAlarm',
],
data() {
return {
Expand Down Expand Up @@ -210,7 +210,7 @@ export default {
parameter: undefined, // ical.js sets the correct parameter for us when using a `ICAL.Time`-object
}

this.$emit('update-alarm', alarm, this.index)
this.$emit('updateAlarm', alarm, this.index)
this.closeEditMode()
},

Expand All @@ -220,7 +220,7 @@ export default {
parameter: undefined, // We don't care about the params, since they currently can't be changed
}

this.$emit('update-alarm', alarm, this.index)
this.$emit('updateAlarm', alarm, this.index)
this.closeEditMode()
},

Expand All @@ -232,7 +232,7 @@ export default {
* This method emits the removeAlarm event
*/
removeAlarm() {
this.$emit('remove-alarm', this.index)
this.$emit('removeAlarm', this.index)
this.showMenu = false
},
},
Expand Down
6 changes: 3 additions & 3 deletions src/components/AppSidebar/Alarm/AlarmListNew.vue
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export default {
},
},
emits: [
'add-alarm',
'addAlarm',
],
data() {
return {
Expand Down Expand Up @@ -214,7 +214,7 @@ export default {
},

onAlarmOptionClick(alarm) {
this.$emit('add-alarm', alarm)
this.$emit('addAlarm', alarm)
},

onChooseDateAndTime(date) {
Expand All @@ -223,7 +223,7 @@ export default {
parameter: undefined, // ical.js sets the correct parameter for us when using a `ICAL.Time`-object
}

this.$emit('add-alarm', alarm)
this.$emit('addAlarm', alarm)
this.chooseDateTimeMenuIsOpen = false
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default {
},
},
emits: [
'select-date-time',
'selectDateTime',
'close',
],
data() {
Expand Down Expand Up @@ -149,7 +149,7 @@ export default {

const alarmObject = getAlarmObjectFromTriggerTime(seconds, this.alarm.relativeIsRelatedToStart)

this.$emit('select-date-time', alarmObject)
this.$emit('selectDateTime', alarmObject)
},

onClose() {
Expand Down
4 changes: 2 additions & 2 deletions src/components/AppSidebar/CalendarPickerItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default {
required: false,
},
},
emits: ['change-calendar'],
emits: ['changeCalendar'],
computed: {
isDisabled() {
return this.calendars.length < 2 || this.disabled
Expand Down Expand Up @@ -108,7 +108,7 @@ export default {
if (!calendar) {
return
}
this.$emit('change-calendar', calendar)
this.$emit('changeCalendar', calendar)
},
},
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/AppSidebar/CheckboxItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
:aria-checked="checked"
:checked="checked"
:disabled="readOnly"
@click="$emit('set-checked', checked)">
@click="$emit('setChecked', checked)">
<label :for="id">
<span>{{ propertyString }}</span>
</label>
Expand Down Expand Up @@ -56,7 +56,7 @@ export default {
default: '',
},
},
emits: ['set-checked'],
emits: ['setChecked'],
}
</script>

Expand Down
2 changes: 1 addition & 1 deletion src/components/AppSidebar/DateTimePickerItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export default {
checkOverdue: {
type: Boolean,
default: true,
}
},
},
data() {
return {
Expand Down
4 changes: 2 additions & 2 deletions src/components/AppSidebar/MultiselectItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default {
default: null,
},
},
emits: ['change-value'],
emits: ['changeValue'],
computed: {
isDisabled() {
return this.options.length < 2 || this.disabled
Expand All @@ -100,7 +100,7 @@ export default {
if (!value) {
return
}
this.$emit('change-value', value)
this.$emit('changeValue', value)
},
},
}
Expand Down
8 changes: 4 additions & 4 deletions src/components/AppSidebar/TagsItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,17 @@ export default {
},
},
emits: [
'add-tag',
'set-tags',
'addTag',
'setTags',
],
methods: {
t,

addTag(tag) {
this.$emit('add-tag', tag)
this.$emit('addTag', tag)
},
setTags(tags) {
this.$emit('set-tags', tags)
this.$emit('setTags', tags)
},
},
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/TaskCheckbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default {
default: '',
},
},
emits: ['toggle-completed'],
emits: ['toggleCompleted'],
computed: {
ariaLabel() {
if (this.cancelled && !this.completed) {
Expand All @@ -97,7 +97,7 @@ export default {
t,

toggleCompleted() {
this.$emit('toggle-completed')
this.$emit('toggleCompleted')
},
},
}
Expand Down
8 changes: 4 additions & 4 deletions src/components/TaskStatusDisplay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ export default {
},
},
emits: [
'status-clicked',
'reset-status',
'statusClicked',
'resetStatus',
],
data() {
return {
Expand All @@ -86,7 +86,7 @@ export default {
},
methods: {
statusClicked() {
this.$emit('status-clicked')
this.$emit('statusClicked')
},
checkTimeout(newStatus) {
if (newStatus) {
Expand All @@ -96,7 +96,7 @@ export default {
if (newStatus.status === 'success') {
this.resetStatusTimeout = setTimeout(
() => {
this.$emit('reset-status')
this.$emit('resetStatus')
}, 5000,
)
}
Expand Down
4 changes: 2 additions & 2 deletions src/utils/dateStrings.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { convertTimeZone } from './alarms.js'
/**
* Returns a formatted string for the due date
*
* @param {Task} task The task
* @param {import('../models/task.js').Task} task The task
* @return {string} The formatted due date string
*/
export function dueDateString(task) {
Expand Down Expand Up @@ -88,7 +88,7 @@ export function dueDateString(task) {
/**
* Returns a formatted string for the start date
*
* @param {Task} task The task
* @param {import('../models/task.js').Task} task The task
* @return {string} The formatted start date string
*/
export function startDateString(task) {
Expand Down
2 changes: 1 addition & 1 deletion src/views/AppSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
:property-string="completedString"
:read-only="readOnly"
:task="task"
:check-overdue=false
:check-overdue="false"
@set-value="changeCompletedDate">
<template #icon>
<CalendarCheck :size="20" />
Expand Down
Loading