Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

correct eslint "no-multiple-empty-lines" (#1179)

Ronan LE MEILLAT8d1f30c1017f
diff --git a/frontend/src/api/index.js b/frontend/src/api/index.js
index f2421032..008c8ff7 100644
--- a/frontend/src/api/index.js
+++ b/frontend/src/api/index.js
@@ -32,7 +32,6 @@ http.interceptors.response.use((resp) => {
store.commit('setLoading', { model: resp.config.loading, status: false });
}
-
let data = {};
if (typeof resp.data.data === 'object') {
if (resp.data.data.constructor === Object) {
diff --git a/frontend/src/components/EmptyPlaceholder.vue b/frontend/src/components/EmptyPlaceholder.vue
index 75d651a9..d5a5458e 100644
--- a/frontend/src/components/EmptyPlaceholder.vue
+++ b/frontend/src/components/EmptyPlaceholder.vue
@@ -9,7 +9,6 @@
</section>
</template>
-
<script>
export default {
name: 'EmptyPlaceholder',
diff --git a/frontend/src/components/LogView.vue b/frontend/src/components/LogView.vue
index 745e318c..4c9d4717 100644
--- a/frontend/src/components/LogView.vue
+++ b/frontend/src/components/LogView.vue
@@ -12,7 +12,6 @@
</section>
</template>
-
<script>
// Regexp for splitting log lines in the following format to
// [timestamp] [file] [message].
diff --git a/frontend/src/components/Navigation.vue b/frontend/src/components/Navigation.vue
index c23f347a..2fb18aaa 100644
--- a/frontend/src/components/Navigation.vue
+++ b/frontend/src/components/Navigation.vue
@@ -84,7 +84,6 @@
</b-menu-list>
</template>
-
<script>
export default {
name: 'navigation',
diff --git a/frontend/src/constants.js b/frontend/src/constants.js
index 9bccac29..e4cd46ca 100644
--- a/frontend/src/constants.js
+++ b/frontend/src/constants.js
@@ -27,7 +27,6 @@ export const uris = Object.freeze({
static: `${baseURL}/static`,
});
-
// Keys used in Vuex store.
export const storeKeys = Object.freeze({
models: 'models',
diff --git a/frontend/src/main.js b/frontend/src/main.js
index 95b0aa60..10dc8f86 100644
--- a/frontend/src/main.js
+++ b/frontend/src/main.js
@@ -15,7 +15,6 @@ const i18n = new VueI18n();
Vue.use(Buefy, {});
Vue.config.productionTip = false;
-
// Setup the router.
router.beforeEach((to, from, next) => {
if (to.matched.length === 0) {
diff --git a/frontend/src/views/404.vue b/frontend/src/views/404.vue
index f2bf5ae3..5e65cd73 100644
--- a/frontend/src/views/404.vue
+++ b/frontend/src/views/404.vue
@@ -4,7 +4,6 @@
</section>
</template>
-
<script>
import Vue from 'vue';
diff --git a/frontend/src/views/CampaignAnalytics.vue b/frontend/src/views/CampaignAnalytics.vue
index ecd20dad..f41f130c 100644
--- a/frontend/src/views/CampaignAnalytics.vue
+++ b/frontend/src/views/CampaignAnalytics.vue
@@ -51,7 +51,6 @@
<template v-else>{{ $t('analytics.nonUnique') }}</template>
</p>
-
<section class="charts mt-5">
<div class="chart columns" v-for="(v, k) in charts" :key="k">
<div class="column is-9">
diff --git a/frontend/src/views/Campaigns.vue b/frontend/src/views/Campaigns.vue
index 94ebc148..d0d9bd51 100644
--- a/frontend/src/views/Campaigns.vue
+++ b/frontend/src/views/Campaigns.vue
@@ -408,7 +408,6 @@ export default Vue.extend({
sendAt = dayjs(c.sendAt).isAfter(now) ? c.sendAt : now.add(7, 'day');
}
-
const data = {
name,
subject: c.subject,
diff --git a/frontend/src/views/Dashboard.vue b/frontend/src/views/Dashboard.vue
index 4397ee56..72d4eb72 100644
--- a/frontend/src/views/Dashboard.vue
+++ b/frontend/src/views/Dashboard.vue
@@ -137,7 +137,6 @@
</section>
</template>
-
<style lang="css">
@import "~c3/c3.css";
</style>
diff --git a/frontend/src/views/Forms.vue b/frontend/src/views/Forms.vue
index c9452fea..4dda2783 100644
--- a/frontend/src/views/Forms.vue
+++ b/frontend/src/views/Forms.vue
@@ -8,7 +8,6 @@
{{ $t('forms.noPublicLists') }}
</p>
-
<div class="columns" v-else-if="publicLists.length > 0">
<div class="column is-4">
<h4>{{ $t('forms.publicLists') }}</h4>
diff --git a/frontend/src/views/Lists.vue b/frontend/src/views/Lists.vue
index d2cedede..c26b0fd0 100644
--- a/frontend/src/views/Lists.vue
+++ b/frontend/src/views/Lists.vue
@@ -194,7 +194,6 @@ export default Vue.extend({
this.getLists();
},
-
// Show the edit list form.
showEditForm(list) {
this.curItem = list;
diff --git a/frontend/src/views/Maintenance.vue b/frontend/src/views/Maintenance.vue
index 2799caee..8b89d2e4 100644
--- a/frontend/src/views/Maintenance.vue
+++ b/frontend/src/views/Maintenance.vue
@@ -7,7 +7,6 @@
</p>
<br />
-
<div class="box">
<h4 class="is-size-5">{{ $t('globals.terms.subscribers') }}</h4><br />
<div class="columns">
diff --git a/frontend/src/views/SubscriberForm.vue b/frontend/src/views/SubscriberForm.vue
index a2d164c1..e78bf560 100644
--- a/frontend/src/views/SubscriberForm.vue
+++ b/frontend/src/views/SubscriberForm.vue
@@ -309,7 +309,6 @@ export default Vue.extend({
this.getBounces();
}
-
this.$nextTick(() => {
this.$refs.focus.focus();
});
diff --git a/frontend/src/views/settings/smtp.vue b/frontend/src/views/settings/smtp.vue
index 032577f6..0ffc02f3 100644
--- a/frontend/src/views/settings/smtp.vue
+++ b/frontend/src/views/settings/smtp.vue
@@ -307,7 +307,6 @@ export default Vue.extend({
return;
}
-
this.errMsg = '';
this.$api.testSMTP({ ...item, email: this.testEmail }).then(() => {
this.$utils.toast(this.$t('campaigns.testSent'));