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 = {
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
}
]
}
}

View file

@ -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
}
}
}
} : {}
: {}
}