lint using oxlint (#106)

This commit is contained in:
Will Chen
2025-05-08 17:21:35 -07:00
committed by GitHub
parent 0e8cc26fb5
commit 2537fbb342
63 changed files with 251 additions and 292 deletions

View File

@@ -17,6 +17,7 @@
? new URL(url, window.location.href).href
: window.location.href;
} catch (e) {
console.error("Could not parse URL", e);
newUrl = window.location.href;
}
@@ -64,7 +65,7 @@
};
// --- Listener for Back/Forward Navigation (popstate event) ---
window.addEventListener("popstate", (event) => {
window.addEventListener("popstate", () => {
const currentUrl = window.location.href;
previousUrl = currentUrl;
});

View File

@@ -12,7 +12,7 @@ type ToasterToast = ToastProps & {
action?: ToastActionElement;
};
const actionTypes = {
const _actionTypes = {
ADD_TOAST: "ADD_TOAST",
UPDATE_TOAST: "UPDATE_TOAST",
DISMISS_TOAST: "DISMISS_TOAST",
@@ -26,7 +26,7 @@ function genId() {
return count.toString();
}
type ActionType = typeof actionTypes;
type ActionType = typeof _actionTypes;
type Action =
| {

View File

@@ -87,7 +87,7 @@ export function devErrorAndNavigationPlugin(): Plugin {
};
}
export default defineConfig(({ mode }) => ({
export default defineConfig(() => ({
server: {
host: "::",
port: 8080,