diff --git a/app/.eslintrc.js b/app/.eslintrc.js new file mode 100644 index 00000000..57cadda3 --- /dev/null +++ b/app/.eslintrc.js @@ -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, + }, + ], + }, +} diff --git a/app/package.json b/app/package.json index 2fef7c69..218a4b88 100644 --- a/app/package.json +++ b/app/package.json @@ -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",