From 1f7a8edb149141d597af8eb8ea498a3516d07c49 Mon Sep 17 00:00:00 2001 From: Anwarul Islam Date: Thu, 28 Mar 2024 20:58:48 +0600 Subject: [PATCH] fix: lint errors removed by using `satisfies` or `as` for type (#3934) Co-authored-by: jamesgeorge007 Co-authored-by: amk-dev --- packages/hoppscotch-common/.eslintrc.js | 3 + packages/hoppscotch-common/package.json | 12 +- .../src/components/collections/Properties.vue | 42 +- .../components/collections/graphql/index.vue | 18 +- .../src/components/collections/index.vue | 9 +- .../src/components/graphql/Authorization.vue | 2 +- .../src/components/http/Authorization.vue | 2 +- .../components/http/OAuth2Authorization.vue | 14 +- .../hoppscotch-common/src/pages/oauth.vue | 9 +- .../hoppscotch-selfhost-web/.eslintrc.cjs | 3 + pnpm-lock.yaml | 583 +++++++++++++++--- 11 files changed, 570 insertions(+), 127 deletions(-) diff --git a/packages/hoppscotch-common/.eslintrc.js b/packages/hoppscotch-common/.eslintrc.js index 1e467a047..a09d4a7e8 100644 --- a/packages/hoppscotch-common/.eslintrc.js +++ b/packages/hoppscotch-common/.eslintrc.js @@ -10,6 +10,9 @@ module.exports = { parserOptions: { sourceType: "module", requireConfigFile: false, + ecmaFeatures: { + jsx: false, + }, }, extends: [ "@vue/typescript/recommended", diff --git a/packages/hoppscotch-common/package.json b/packages/hoppscotch-common/package.json index cd9d37554..195741c4d 100644 --- a/packages/hoppscotch-common/package.json +++ b/packages/hoppscotch-common/package.json @@ -127,8 +127,8 @@ "@types/splitpanes": "2.2.6", "@types/uuid": "9.0.7", "@types/yargs-parser": "21.0.3", - "@typescript-eslint/eslint-plugin": "6.13.2", - "@typescript-eslint/parser": "6.13.2", + "@typescript-eslint/eslint-plugin": "7.3.1", + "@typescript-eslint/parser": "7.3.1", "@vitejs/plugin-vue": "4.5.1", "@vue/compiler-sfc": "3.3.10", "@vue/eslint-config-typescript": "12.0.0", @@ -136,9 +136,9 @@ "autoprefixer": "10.4.16", "cross-env": "7.0.3", "dotenv": "16.3.1", - "eslint": "8.55.0", - "eslint-plugin-prettier": "5.0.1", - "eslint-plugin-vue": "9.19.2", + "eslint": "8.57.0", + "eslint-plugin-prettier": "5.1.3", + "eslint-plugin-vue": "9.24.0", "glob": "10.3.10", "npm-run-all": "4.1.5", "openapi-types": "12.1.3", @@ -164,4 +164,4 @@ "vitest": "0.34.6", "vue-tsc": "1.8.24" } -} \ No newline at end of file +} diff --git a/packages/hoppscotch-common/src/components/collections/Properties.vue b/packages/hoppscotch-common/src/components/collections/Properties.vue index 642679065..0db2eb59f 100644 --- a/packages/hoppscotch-common/src/components/collections/Properties.vue +++ b/packages/hoppscotch-common/src/components/collections/Properties.vue @@ -65,14 +65,20 @@