mirror of
https://github.com/nextcloud/server.git
synced 2026-04-24 15:53:36 -04:00
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:
parent
7268525a8a
commit
4a571fc391
5 changed files with 6 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -26,13 +26,13 @@ export default {
|
|||
name: 'ExampleContentDownloadButton',
|
||||
components: {
|
||||
NcButton,
|
||||
IconDownload
|
||||
IconDownload,
|
||||
},
|
||||
props: {
|
||||
href: {
|
||||
type: String,
|
||||
required: true,
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ Vue.mixin({
|
|||
methods: {
|
||||
t: translate,
|
||||
$t: translate,
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
const View = Vue.extend(ExampleContentSettingsSection);
|
||||
|
|
|
|||
|
|
@ -33,6 +33,6 @@ export default {
|
|||
hasCalendarApp() {
|
||||
return loadState('dav', 'calendarEnabled')
|
||||
},
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in a new issue