From e2d9f43ba9770cad349270fd9e218338f0c8d7df Mon Sep 17 00:00:00 2001 From: Ahmet Date: Wed, 11 Oct 2023 01:47:15 +0300 Subject: [PATCH] ESLint file has been added to project with recommended eslint rules and custom rules --- frontend/.eslintrc.js | 13 +++++++++++++ frontend/package.json | 2 ++ 2 files changed, 15 insertions(+) create mode 100644 frontend/.eslintrc.js diff --git a/frontend/.eslintrc.js b/frontend/.eslintrc.js new file mode 100644 index 000000000..f6d6650bd --- /dev/null +++ b/frontend/.eslintrc.js @@ -0,0 +1,13 @@ +module.exports = { + extends: ["eslint:recommended", "plugin:vue/vue3-recommended"], + rules: { + "vue/component-tags-order": [ + "error", + { + order: ["template", "script", "style"], + }, + ], + "vue/multi-word-component-names": "off", + "vue/no-empty-component-block": "error", + }, +}; diff --git a/frontend/package.json b/frontend/package.json index 123203cfd..f5f62fb12 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -20,6 +20,8 @@ "@types/node": "^18.11.18", "@vueuse/core": "^9.12.0", "@vueuse/nuxt": "^9.12.0", + "eslint": "^8.51.0", + "eslint-plugin-vue": "^9.17.0", "nuxt": "npm:nuxt3@latest", "nuxt-icon": "^0.2.6", "typescript": "^5.1.3",