lint: fix

This commit is contained in:
axolotle 2023-04-03 18:22:38 +02:00
parent 56e4ef7dba
commit 4aba833779
2 changed files with 28 additions and 26 deletions

View file

@ -1,23 +1,23 @@
module.exports = { module.exports = {
root: true, root: true,
env: { env: {
node: true, node: true
}, },
extends: [ extends: [
'plugin:vue/strongly-recommended', 'plugin:vue/strongly-recommended',
'eslint:recommended', 'eslint:recommended',
'standard', 'standard'
], ],
parserOptions: { parserOptions: {
parser: '@babel/eslint-parser', parser: '@babel/eslint-parser'
}, },
rules: { rules: {
'vue/max-attributes-per-line': [ 'vue/max-attributes-per-line': [
'error', 'error',
{ {
singleline: 3, singleline: 3,
multiline: 3, multiline: 3
}, }
], ],
'vue/multi-word-component-names': 'off', // FIXME this should be adressed at some point 'vue/multi-word-component-names': 'off', // FIXME this should be adressed at some point
'no-console': 'warn', 'no-console': 'warn',
@ -33,8 +33,8 @@ module.exports = {
'no-multiple-empty-lines': [ 'no-multiple-empty-lines': [
'error', 'error',
{ {
max: 2, max: 2
}, }
], ]
}, }
} }

View file

@ -66,23 +66,25 @@ module.exports = {
} }
}, },
publicPath: '/yunohost/admin', publicPath: '/yunohost/admin',
devServer: process.env.NODE_ENV === 'development' ? { devServer: process.env.NODE_ENV === 'development'
public: fs.readFileSync('/etc/yunohost/current_host', 'utf8'), ? {
https: false, public: fs.readFileSync('/etc/yunohost/current_host', 'utf8'),
allowedHosts: 'all', https: false,
proxy: { allowedHosts: 'all',
'^/yunohost': { proxy: {
target: `http://${process.env.VUE_APP_IP}`, '^/yunohost': {
ws: true, target: `http://${process.env.VUE_APP_IP}`,
logLevel: 'info' ws: true,
} logLevel: 'info'
}, }
static: { },
watch: { static: {
ignored: /node_modules/, watch: {
aggregateTimeout: 300, ignored: /node_modules/,
poll: 1000 aggregateTimeout: 300,
poll: 1000
}
} }
} }
} : {} : {}
} }