From 6532fbebb116a1630a36f2b0a2e82e1d2a541981 Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Sat, 1 May 2021 21:11:13 +0200 Subject: [PATCH] Fixed frontend linter --- web/package.json | 4 ++-- web/src/api/ivago.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/web/package.json b/web/package.json index e19388b..0534f03 100644 --- a/web/package.json +++ b/web/package.json @@ -5,8 +5,8 @@ "dev": "vite", "build": "vue-tsc --noEmit && vite build", "serve": "vite preview", - "lint": "eslint \"src/**\"", - "format": "eslint --fix \"src/**\"" + "lint": "eslint --ext .js,.vue src", + "format": "yarn run lint --fix" }, "dependencies": { "vue": "^3.0.5", diff --git a/web/src/api/ivago.ts b/web/src/api/ivago.ts index 4c01856..7fa15a4 100644 --- a/web/src/api/ivago.ts +++ b/web/src/api/ivago.ts @@ -3,11 +3,11 @@ export interface Street { city: string } -export async function search (search_term: string): Promise { - const base_url = import.meta.env.VITE_ENDPOINT as string +export async function search (searchTerm: string): Promise { + const baseURL = import.meta.env.VITE_ENDPOINT as string - const r = await fetch(`${base_url}/ivago/search?` + new URLSearchParams({ - q: search_term + const r = await fetch(`${baseURL}/ivago/search?` + new URLSearchParams({ + q: searchTerm })) if (!r.ok) {