From 4d346a8d13885f0c99844e951b6ddf9510e67a05 Mon Sep 17 00:00:00 2001 From: axolotle Date: Fri, 24 Mar 2023 20:50:05 +0100 Subject: [PATCH] separate eslint config from package.json --- app/.eslintrc.js | 36 ++++++++++++++++++++++++++++++++++++ app/package.json | 39 --------------------------------------- 2 files changed, 36 insertions(+), 39 deletions(-) create mode 100644 app/.eslintrc.js 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",