From 4aba833779b556899e2675a80c0835dc98909110 Mon Sep 17 00:00:00 2001 From: axolotle Date: Mon, 3 Apr 2023 18:22:38 +0200 Subject: [PATCH] lint: fix --- app/.eslintrc.js | 18 +++++++++--------- app/vue.config.js | 36 +++++++++++++++++++----------------- 2 files changed, 28 insertions(+), 26 deletions(-) diff --git a/app/.eslintrc.js b/app/.eslintrc.js index a95931eb..cab608ba 100644 --- a/app/.eslintrc.js +++ b/app/.eslintrc.js @@ -1,23 +1,23 @@ module.exports = { root: true, env: { - node: true, + node: true }, extends: [ 'plugin:vue/strongly-recommended', 'eslint:recommended', - 'standard', + 'standard' ], parserOptions: { - parser: '@babel/eslint-parser', + parser: '@babel/eslint-parser' }, rules: { 'vue/max-attributes-per-line': [ 'error', { singleline: 3, - multiline: 3, - }, + multiline: 3 + } ], 'vue/multi-word-component-names': 'off', // FIXME this should be adressed at some point 'no-console': 'warn', @@ -33,8 +33,8 @@ module.exports = { 'no-multiple-empty-lines': [ 'error', { - max: 2, - }, - ], - }, + max: 2 + } + ] + } } diff --git a/app/vue.config.js b/app/vue.config.js index f1fb5374..f00c0c16 100644 --- a/app/vue.config.js +++ b/app/vue.config.js @@ -66,23 +66,25 @@ module.exports = { } }, publicPath: '/yunohost/admin', - devServer: process.env.NODE_ENV === 'development' ? { - public: fs.readFileSync('/etc/yunohost/current_host', 'utf8'), - https: false, - allowedHosts: 'all', - proxy: { - '^/yunohost': { - target: `http://${process.env.VUE_APP_IP}`, - ws: true, - logLevel: 'info' - } - }, - static: { - watch: { - ignored: /node_modules/, - aggregateTimeout: 300, - poll: 1000 + devServer: process.env.NODE_ENV === 'development' + ? { + public: fs.readFileSync('/etc/yunohost/current_host', 'utf8'), + https: false, + allowedHosts: 'all', + proxy: { + '^/yunohost': { + target: `http://${process.env.VUE_APP_IP}`, + ws: true, + logLevel: 'info' + } + }, + static: { + watch: { + ignored: /node_modules/, + aggregateTimeout: 300, + poll: 1000 + } } } - } : {} + : {} }