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,7 +66,8 @@ 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'), public: fs.readFileSync('/etc/yunohost/current_host', 'utf8'),
https: false, https: false,
allowedHosts: 'all', allowedHosts: 'all',
@ -84,5 +85,6 @@ module.exports = {
poll: 1000 poll: 1000
} }
} }
} : {} }
: {}
} }