From 732f88ff51a50a7a6fcaac473c525c2336f18ebe Mon Sep 17 00:00:00 2001 From: Mikhail Oleynikov Date: Sat, 6 May 2023 22:17:43 +0300 Subject: [PATCH] Renovate config files (#1117) * Renovate the config files * Return Vue and TS ESLint plugins * Revert Prettier config Add typing to ESLint config Re-revert package.json * Re-add ESLint plugin for Prettier (it went missing during merge, oops) * Try to fix CI by explicit dependency * Try to fix CI by explicit dependency x2 * Try to fix CI magically Additionally, remove unneeded jsconfig.json * Brawaru found the reason Co-authored-by: Sasha Sorokin <10401817+brawaru@users.noreply.github.com> --------- Co-authored-by: Sasha Sorokin <10401817+brawaru@users.noreply.github.com> --- .eslintrc.js | 18 ++ .eslintrc.json | 27 --- app.vue | 2 +- components/ui/ModalReport.vue | 4 +- components/ui/VersionFilterControl.vue | 2 +- components/ui/modrinth-loading-indicator.ts | 2 +- jsconfig.json | 12 -- nuxt.config.js => nuxt.config.ts | 218 +++++++------------- package.json | 9 +- pages/[type]/[id]/settings/index.vue | 2 +- pages/[type]/[id]/settings/links.vue | 2 +- pages/[type]/[id]/version/[version].vue | 2 +- pages/dashboard/projects.vue | 2 +- pages/index.vue | 2 +- pages/search/[searchProjectType].vue | 2 +- pages/settings/index.vue | 2 +- pages/settings/monetization.vue | 2 +- 17 files changed, 109 insertions(+), 201 deletions(-) create mode 100644 .eslintrc.js delete mode 100644 .eslintrc.json delete mode 100644 jsconfig.json rename nuxt.config.js => nuxt.config.ts (50%) 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 -