diff --git a/.eslintrc.js b/.eslintrc.js index f30e21e03..e699f0fd4 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -19,18 +19,32 @@ module.exports = { 'jsx-a11y/label-has-for': 'off', 'jsx-a11y/anchor-is-valid': 'off', 'import/no-unresolved': 'off', - 'vue/max-attributes-per-line': ['error', { - 'singleline': 20, - 'multiline': { - 'max': 1, - 'allowFirstLine': false + 'vue/max-attributes-per-line': [ + 'error', + { + singleline: 20, + multiline: { + max: 1, + allowFirstLine: false, + }, }, - }], - 'vue/html-self-closing': 'off', - "vue/no-v-html": 'off', + ], + 'vue/html-self-closing': [ + 'error', + { + html: { + void: 'always', + normal: 'always', + component: 'always', + }, + svg: 'always', + math: 'always', + }, + ], + 'vue/no-v-html': 'off', 'vue/singleline-html-element-content-newline': 'off', 'import/extensions': ['off'], - 'no-console': 'error' + 'no-console': 'error', }, settings: { 'import/resolver': { @@ -41,12 +55,10 @@ module.exports = { }, env: { browser: true, - node: true, jest: true, - jasmine: true + node: true, }, globals: { - __WEBPACK_ENV__: true, bus: true, }, }; diff --git a/app/javascript/dashboard/App.vue b/app/javascript/dashboard/App.vue index 1e262f1ff..7243e566e 100644 --- a/app/javascript/dashboard/App.vue +++ b/app/javascript/dashboard/App.vue @@ -2,7 +2,7 @@
- +
- +
- + />
@@ -102,7 +101,7 @@ />
- +
{{ headerContent }}

- +
diff --git a/app/javascript/dashboard/components/NetworkNotification.vue b/app/javascript/dashboard/components/NetworkNotification.vue index 115a674a2..6f29dbb74 100644 --- a/app/javascript/dashboard/components/NetworkNotification.vue +++ b/app/javascript/dashboard/components/NetworkNotification.vue @@ -20,8 +20,7 @@ color-scheme="warning" icon="dismiss-circle" @click="closeNotification" - > - + /> diff --git a/app/javascript/dashboard/components/SettingsSection.vue b/app/javascript/dashboard/components/SettingsSection.vue index e700e9467..b3348ae04 100644 --- a/app/javascript/dashboard/components/SettingsSection.vue +++ b/app/javascript/dashboard/components/SettingsSection.vue @@ -13,7 +13,7 @@

- +
diff --git a/app/javascript/dashboard/components/buttons/Button.vue b/app/javascript/dashboard/components/buttons/Button.vue index 69dbc3658..733b84639 100644 --- a/app/javascript/dashboard/components/buttons/Button.vue +++ b/app/javascript/dashboard/components/buttons/Button.vue @@ -7,7 +7,7 @@ :icon="icon" /> - + diff --git a/app/javascript/dashboard/components/ui/Banner.vue b/app/javascript/dashboard/components/ui/Banner.vue index 227b0a37e..a1b612952 100644 --- a/app/javascript/dashboard/components/ui/Banner.vue +++ b/app/javascript/dashboard/components/ui/Banner.vue @@ -30,8 +30,7 @@ icon="dismiss-circle" class-names="banner-action__button" @click="onClickClose" - > - + /> diff --git a/app/javascript/dashboard/components/ui/Switch.vue b/app/javascript/dashboard/components/ui/Switch.vue index b0bc32881..e15258c22 100644 --- a/app/javascript/dashboard/components/ui/Switch.vue +++ b/app/javascript/dashboard/components/ui/Switch.vue @@ -7,7 +7,7 @@ :aria-checked="value.toString()" @click="onClick" > - +