mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
lint: fix
This commit is contained in:
parent
56e4ef7dba
commit
4aba833779
2 changed files with 28 additions and 26 deletions
|
@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
} : {}
|
||||
: {}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue