diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..e9a84a0 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,20 @@ +module.exports = { + root: true, + env: { + node: true + }, + 'extends': [ + 'plugin:vue/vue3-essential', + 'eslint:recommended', + '@vue/typescript/recommended' + + ], + parserOptions: { + ecmaVersion: 2020 + }, + rules: { + // 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', + // 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off' + 'vue/no-mutating-props': 'off' + } +} diff --git a/package.json b/package.json index ec9bc10..63a47ac 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "@vue/cli-service": "~5.0.0", "@vue/eslint-config-typescript": "^9.1.0", "eslint": "^8.53.0", + "eslint-plugin-prettier": "^5.0.1", "sass": "1.32.12", "sass-loader": "^12.0.0", "typescript": "~4.5.5",