style: enforce comma-dangle

The ESLint comma-dangle rule issues warnings but doesn't fail the CI.
Running npm run lint:fix adds missing commas automatically. This often
leads to committing unrelated changes. Now, the CI enforces the dangling
comma rule.

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg 2025-07-23 13:01:20 +02:00
parent 7268525a8a
commit 4a571fc391
No known key found for this signature in database
GPG key ID: 4A81C29F63464E8F
5 changed files with 6 additions and 5 deletions

View file

@ -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

View file

@ -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) {

View file

@ -26,13 +26,13 @@ export default {
name: 'ExampleContentDownloadButton',
components: {
NcButton,
IconDownload
IconDownload,
},
props: {
href: {
type: String,
required: true,
}
},
},
}
</script>

View file

@ -10,7 +10,7 @@ Vue.mixin({
methods: {
t: translate,
$t: translate,
}
},
})
const View = Vue.extend(ExampleContentSettingsSection);

View file

@ -33,6 +33,6 @@ export default {
hasCalendarApp() {
return loadState('dav', 'calendarEnabled')
},
}
},
}
</script>