diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 000000000..feb2388ad --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,18 @@ +// @ts-check +/** @type {import("eslint").ESLint.ConfigData} */ +module.exports = { + root: true, + extends: [ + 'eslint:recommended', + 'plugin:@typescript-eslint/recommended', + 'plugin:vue/vue3-recommended', + '@nuxtjs/eslint-config-typescript', + 'plugin:prettier/recommended', // Integrate Prettier into ESLint + 'prettier', // Disable unnecessary ESLint rules in the presence of Prettier + ], + rules: { + 'no-console': 'off', + 'vue/no-v-html': 'off', + 'vue/multi-word-component-names': 'off', + }, +} diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 39000e5c6..000000000 --- a/.eslintrc.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "env": { - "browser": true, - "es2021": true, - "node": true - }, - "extends": [ - "eslint:recommended", - "plugin:vue/vue3-recommended", - "plugin:@typescript-eslint/recommended", - "@nuxtjs/eslint-config-typescript", - "prettier" - ], - "parserOptions": { - "ecmaVersion": "latest", - "parser": "@typescript-eslint/parser", - "sourceType": "module" - }, - "plugins": ["vue", "@typescript-eslint"], - "rules": { - "no-console": "off", - "vue/no-v-html": "off", - "comma-dangle": ["error", "only-multiline"], - "vue/multi-word-component-names": "off", - "import/no-named-as-default": "off" - } -} diff --git a/app.vue b/app.vue index c3c274ec2..78ee6e8ae 100644 --- a/app.vue +++ b/app.vue @@ -7,5 +7,5 @@ diff --git a/components/ui/ModalReport.vue b/components/ui/ModalReport.vue index 37132c044..3febfb054 100644 --- a/components/ui/ModalReport.vue +++ b/components/ui/ModalReport.vue @@ -20,7 +20,7 @@ Reason -