separate eslint config from package.json

This commit is contained in:
axolotle 2023-03-24 20:50:05 +01:00
parent f4d193766c
commit 4d346a8d13
2 changed files with 36 additions and 39 deletions

36
app/.eslintrc.js Normal file
View 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,
},
],
},
}

View file

@ -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",