mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
separate eslint config from package.json
This commit is contained in:
parent
f4d193766c
commit
4d346a8d13
2 changed files with 36 additions and 39 deletions
36
app/.eslintrc.js
Normal file
36
app/.eslintrc.js
Normal file
|
@ -0,0 +1,36 @@
|
|||
module.exports = {
|
||||
root: true,
|
||||
env: {
|
||||
node: true,
|
||||
},
|
||||
extends: [
|
||||
'plugin:vue/strongly-recommended',
|
||||
'eslint:recommended',
|
||||
'standard',
|
||||
],
|
||||
parserOptions: {
|
||||
parser: '@babel/eslint-parser',
|
||||
},
|
||||
rules: {
|
||||
'vue/max-attributes-per-line': [
|
||||
'error',
|
||||
{
|
||||
singleline: 3,
|
||||
multiline: 3,
|
||||
},
|
||||
],
|
||||
'no-console': 'warn',
|
||||
'template-curly-spacing': 'off',
|
||||
camelcase: 'warn',
|
||||
indent: 'off',
|
||||
'no-irregular-whitespace': 'off',
|
||||
'no-unused-vars': 'warn',
|
||||
quotes: 'warn',
|
||||
'no-multiple-empty-lines': [
|
||||
'error',
|
||||
{
|
||||
max: 2,
|
||||
},
|
||||
],
|
||||
},
|
||||
}
|
|
@ -46,45 +46,6 @@
|
|||
"vue-cli-plugin-i18n": "~1.0.1",
|
||||
"vue-template-compiler": "^2.6.12"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"root": true,
|
||||
"env": {
|
||||
"node": true
|
||||
},
|
||||
"extends": [
|
||||
"plugin:vue/strongly-recommended",
|
||||
"eslint:recommended",
|
||||
"standard"
|
||||
],
|
||||
"parserOptions": {
|
||||
"parser": "babel-eslint"
|
||||
},
|
||||
"rules": {
|
||||
"vue/max-attributes-per-line": [
|
||||
"error",
|
||||
{
|
||||
"singleline": 3,
|
||||
"multiline": {
|
||||
"max": 3,
|
||||
"allowFirstLine": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"no-console": "warn",
|
||||
"template-curly-spacing": "off",
|
||||
"camelcase": "warn",
|
||||
"indent": "off",
|
||||
"no-irregular-whitespace": "off",
|
||||
"no-unused-vars": "warn",
|
||||
"quotes": "warn",
|
||||
"no-multiple-empty-lines": [
|
||||
"error",
|
||||
{
|
||||
"max": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"browserslist": [
|
||||
"> 1%",
|
||||
"last 2 versions",
|
||||
|
|
Loading…
Reference in a new issue