Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

chore: resolve lint errors

jamesgeorge0076473cd5af65a
diff --git a/packages/hoppscotch-common/src/components/http/authorization/OAuth2.vue b/packages/hoppscotch-common/src/components/http/authorization/OAuth2.vue
index 8f1c2f558..817cc6f60 100644
--- a/packages/hoppscotch-common/src/components/http/authorization/OAuth2.vue
+++ b/packages/hoppscotch-common/src/components/http/authorization/OAuth2.vue
@@ -235,13 +235,13 @@
</div>
<!-- Parameter rows -->
- <div class="divide-y divide-dividerLight" v-else>
+ <div v-else class="divide-y divide-dividerLight">
<HttpKeyValue
- :show-description="false"
v-for="(param, index) in workingAuthRequestParams"
:key="`auth-request-param-${param.id}`"
v-model:name="param.key"
v-model:value="param.value"
+ :show-description="false"
:total="workingAuthRequestParams.length"
:index="index"
:entity-id="param.id"
@@ -314,13 +314,13 @@
</div>
<!-- Parameter rows -->
- <div class="divide-y divide-dividerLight" v-else>
+ <div v-else class="divide-y divide-dividerLight">
<HttpKeyValue
- :show-description="false"
v-for="(param, index) in workingTokenRequestParams"
:key="`token-request-param-${param.id}`"
v-model:name="param.key"
v-model:value="param.value"
+ :show-description="false"
:total="workingTokenRequestParams.length"
:index="index"
:entity-id="param.id"
@@ -448,13 +448,13 @@
</div>
<!-- Parameter rows -->
- <div class="divide-y divide-dividerLight" v-else>
+ <div v-else class="divide-y divide-dividerLight">
<HttpKeyValue
- :show-description="false"
v-for="(param, index) in workingRefreshRequestParams"
:key="`refresh-request-param-${param.id}`"
v-model:name="param.key"
v-model:value="param.value"
+ :show-description="false"
:total="workingRefreshRequestParams.length"
:index="index"
:entity-id="param.id"
diff --git a/packages/hoppscotch-selfhost-web/src/platform/auth/desktop/index.ts b/packages/hoppscotch-selfhost-web/src/platform/auth/desktop/index.ts
index 4fce80a90..25e1f0fe3 100644
--- a/packages/hoppscotch-selfhost-web/src/platform/auth/desktop/index.ts
+++ b/packages/hoppscotch-selfhost-web/src/platform/auth/desktop/index.ts
@@ -89,9 +89,8 @@ async function getInitialUserDetails(): Promise<
> {
try {
const accessToken = await persistenceService.getLocalConfig("access_token")
- const refreshToken = await persistenceService.getLocalConfig(
- "refresh_token"
- )
+ const refreshToken =
+ await persistenceService.getLocalConfig("refresh_token")
if (!accessToken || !refreshToken) {
return { error: "auth/cookies_not_found" }
@@ -224,9 +223,8 @@ export async function setInitialUser() {
async function refreshToken() {
try {
- const refreshToken = await persistenceService.getLocalConfig(
- "refresh_token"
- )
+ const refreshToken =
+ await persistenceService.getLocalConfig("refresh_token")
if (!refreshToken) return null
const { response } = interceptorService.execute({
@@ -455,9 +453,8 @@ export const def: AuthPlatformDef = {
},
async signInWithEmailLink(_email: string, url: string) {
- const deviceIdentifier = await persistenceService.getLocalConfig(
- "deviceIdentifier"
- )
+ const deviceIdentifier =
+ await persistenceService.getLocalConfig("deviceIdentifier")
if (!deviceIdentifier) {
throw new Error(
diff --git a/packages/hoppscotch-selfhost-web/src/platform/auth/web/index.ts b/packages/hoppscotch-selfhost-web/src/platform/auth/web/index.ts
index b60f556e1..b325779e2 100644
--- a/packages/hoppscotch-selfhost-web/src/platform/auth/web/index.ts
+++ b/packages/hoppscotch-selfhost-web/src/platform/auth/web/index.ts
@@ -302,9 +302,8 @@ export const def: AuthPlatformDef = {
const token = searchParams.get("token")
- const deviceIdentifier = await persistenceService.getLocalConfig(
- "deviceIdentifier"
- )
+ const deviceIdentifier =
+ await persistenceService.getLocalConfig("deviceIdentifier")
await axios.post(
`${import.meta.env.VITE_BACKEND_API_URL}/auth/verify`,
@@ -356,9 +355,8 @@ export const def: AuthPlatformDef = {
async processMagicLink() {
if (this.isSignInWithEmailLink(window.location.href)) {
- const deviceIdentifier = await persistenceService.getLocalConfig(
- "deviceIdentifier"
- )
+ const deviceIdentifier =
+ await persistenceService.getLocalConfig("deviceIdentifier")
if (!deviceIdentifier) {
throw new Error(