Skip to content

Commit

Permalink
biome: noUnusedVariables
Browse files Browse the repository at this point in the history
  • Loading branch information
starsep committed Feb 23, 2024
1 parent d507cf3 commit 6ef3af2
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"rules": {
"recommended": true,
"correctness": {
"useHookAtTopLevel": "error"
"useHookAtTopLevel": "error",
"noUnusedVariables": "error"
}
}
}
Expand Down
1 change: 0 additions & 1 deletion scripts/updateStoreBadges.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env bun
import * as fs from "fs";
import { $ } from "bun";
import { appStorePath } from "../src/3rdparty/reactStoreBadges";
import languages from "../src/languages";

Expand Down
4 changes: 2 additions & 2 deletions src/components/downloadCard.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { mdiDownload, mdiFileDownloadOutline } from "@mdi/js";
import Icon from "@mdi/react";
import React, { useEffect, useState } from "react";
import React, { useState } from "react";
import { useTranslation } from "react-i18next";
import { useAppContext } from "~/appContext";
import { backendBaseUrl, fetchCountriesData } from "~/backend";
import { backendBaseUrl } from "~/backend";
import { useLanguage } from "~/i18n";
import { Country } from "~/model/country";

Expand Down
1 change: 0 additions & 1 deletion src/components/sidebar/openingHours.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import i18n from "i18next";
import OpeningHours, { argument_hash } from "opening_hours";
import React, { FC } from "react";
import { useTranslation } from "react-i18next";
Expand Down
1 change: 1 addition & 0 deletions src/location.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ function parseLocationFromString(locationString: string): MapLocation | null {
const [zoom, latitude, longitude] = locationString.split("/").map(Number);
return { zoom, latitude, longitude };
} catch (e) {
console.error(`Failed to parse location from string: ${e}`);
return null;
}
}
Expand Down
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const htmlPlugin = async (env) => {
seoLinks,
);
},
buildStart(options) {
buildStart() {
const content = fs.readFileSync("index.html", "utf-8");
for (const lang of Object.keys(languages)) {
fs.mkdirSync(`langs/${lang}`, { recursive: true });
Expand Down

0 comments on commit 6ef3af2

Please sign in to comment.