diff --git a/.eslintrc.js b/.eslintrc.js index 23dc753f8b989..de392e49d3aad 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -22,6 +22,7 @@ module.exports = { 'plugin:cypress/recommended', ], rules: { + 'comma-dangle': 'error', 'no-tabs': 'warn', // TODO: make sure we fix this as this is bad vue coding style. // Use proper sync modifier @@ -30,6 +31,7 @@ module.exports = { // allows custom xxxx:xxx events formats ignores: ['/^[a-z]+(?:-[a-z]+)*:[a-z]+(?:-[a-z]+)*$/u'], }], + 'vue/html-self-closing': 'error', }, settings: { jsdoc: { diff --git a/apps/dav/src/components/AbsenceForm.vue b/apps/dav/src/components/AbsenceForm.vue index 18c60ba4dd45b..5350c04a56558 100644 --- a/apps/dav/src/components/AbsenceForm.vue +++ b/apps/dav/src/components/AbsenceForm.vue @@ -219,7 +219,7 @@ export default { lastDay: formatDateAsYMD(this.lastDay), status: this.status, message: this.message, - replacementUserId: this.replacementUser?.user ?? null + replacementUserId: this.replacementUser?.user ?? null, }) showSuccess(this.$t('dav', 'Absence saved')) } catch (error) { diff --git a/apps/dav/src/components/ExampleContentDownloadButton.vue b/apps/dav/src/components/ExampleContentDownloadButton.vue index d3ee793eddc89..6ee13e057bd86 100644 --- a/apps/dav/src/components/ExampleContentDownloadButton.vue +++ b/apps/dav/src/components/ExampleContentDownloadButton.vue @@ -26,13 +26,13 @@ export default { name: 'ExampleContentDownloadButton', components: { NcButton, - IconDownload + IconDownload, }, props: { href: { type: String, required: true, - } + }, }, } diff --git a/apps/dav/src/components/ExampleEventSettings.vue b/apps/dav/src/components/ExampleEventSettings.vue index c7a90b71a4a3a..5d2053def5086 100644 --- a/apps/dav/src/components/ExampleEventSettings.vue +++ b/apps/dav/src/components/ExampleEventSettings.vue @@ -47,7 +47,7 @@ type="file" accept=".ics,text/calendar" class="import-event-modal__file-picker" - @change="selectFile" /> + @change="selectFile">