fix: resolve lint warnings/errors and apply formatting (#1024)
* fix: resolve lint warnings/errors and apply formatting Fix 10 oxlint issues (2 errors, 8 warnings): - Remove unused catch parameters in Security.tsx and ImportDialog.tsx - Remove stray expression in Generator.tsx - Add eslint-disable for debounced useCallback in FilterControl.tsx - Remove unnecessary deps (resolveDB, store) in bindStoreToDevice.ts - Prefix unused variant param in AppSidebar.tsx - Memoize tabs arrays in DeviceConfig, RadioConfig, ModuleConfig - Fix channels type in RadioConfig TabItem Also applies oxfmt formatting across all files. * updating lock file * update protobuf package * fix: regenerate pnpm-lock.yaml and exclude jsr protobufs from minimumReleaseAge * prevented http card from always being polled * updated pnpm config fiile * updated actions * removed biome config and lint system leftovers * updating protobuf package
This commit is contained in:
@@ -3,30 +3,14 @@ import { enableMapSet } from "immer";
|
||||
import { afterEach, vi } from "vitest";
|
||||
import "@testing-library/jest-dom";
|
||||
import "@testing-library/user-event";
|
||||
import channelsEN from "@public/i18n/locales/en/channels.json" with {
|
||||
type: "json",
|
||||
};
|
||||
import commandPaletteEN from "@public/i18n/locales/en/commandPalette.json" with {
|
||||
type: "json",
|
||||
};
|
||||
import commonEN from "@public/i18n/locales/en/common.json" with {
|
||||
type: "json",
|
||||
};
|
||||
import configEN from "@public/i18n/locales/en/config.json" with {
|
||||
type: "json",
|
||||
};
|
||||
import connectionsEN from "@public/i18n/locales/en/connections.json" with {
|
||||
type: "json",
|
||||
};
|
||||
import dialogEN from "@public/i18n/locales/en/dialog.json" with {
|
||||
type: "json",
|
||||
};
|
||||
import messagesEN from "@public/i18n/locales/en/messages.json" with {
|
||||
type: "json",
|
||||
};
|
||||
import moduleConfigEN from "@public/i18n/locales/en/moduleConfig.json" with {
|
||||
type: "json",
|
||||
};
|
||||
import channelsEN from "@public/i18n/locales/en/channels.json" with { type: "json" };
|
||||
import commandPaletteEN from "@public/i18n/locales/en/commandPalette.json" with { type: "json" };
|
||||
import commonEN from "@public/i18n/locales/en/common.json" with { type: "json" };
|
||||
import configEN from "@public/i18n/locales/en/config.json" with { type: "json" };
|
||||
import connectionsEN from "@public/i18n/locales/en/connections.json" with { type: "json" };
|
||||
import dialogEN from "@public/i18n/locales/en/dialog.json" with { type: "json" };
|
||||
import messagesEN from "@public/i18n/locales/en/messages.json" with { type: "json" };
|
||||
import moduleConfigEN from "@public/i18n/locales/en/moduleConfig.json" with { type: "json" };
|
||||
import nodesEN from "@public/i18n/locales/en/nodes.json" with { type: "json" };
|
||||
import uiEN from "@public/i18n/locales/en/ui.json" with { type: "json" };
|
||||
import i18n from "i18next";
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
import {
|
||||
createMemoryHistory,
|
||||
createRouter,
|
||||
RouterProvider,
|
||||
} from "@tanstack/react-router";
|
||||
import { createMemoryHistory, createRouter, RouterProvider } from "@tanstack/react-router";
|
||||
import { type RenderOptions, render } from "@testing-library/react";
|
||||
import type { ReactElement } from "react";
|
||||
import "@app/i18n-config.ts";
|
||||
@@ -27,10 +23,8 @@ const Providers = () => {
|
||||
);
|
||||
};
|
||||
|
||||
const renderWithProviders = (
|
||||
ui: ReactElement,
|
||||
options?: Omit<RenderOptions, "wrapper">,
|
||||
) => render(ui, { wrapper: Providers, ...options });
|
||||
const renderWithProviders = (ui: ReactElement, options?: Omit<RenderOptions, "wrapper">) =>
|
||||
render(ui, { wrapper: Providers, ...options });
|
||||
|
||||
export * from "@testing-library/react";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user