Fixed frontend linter

pull/62/head
Jef Roosens 2021-05-01 21:11:13 +02:00
parent 0b86ed9254
commit 6532fbebb1
Signed by: Jef Roosens
GPG Key ID: 955C0660072F691F
2 changed files with 6 additions and 6 deletions

View File

@ -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",

View File

@ -3,11 +3,11 @@ export interface Street {
city: string
}
export async function search (search_term: string): Promise<Street[]> {
const base_url = import.meta.env.VITE_ENDPOINT as string
export async function search (searchTerm: string): Promise<Street[]> {
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) {