From dfab6780704b4b85ca4e0ab56c6d912ab34079b1 Mon Sep 17 00:00:00 2001 From: Athou Date: Wed, 9 Apr 2025 20:02:21 +0200 Subject: [PATCH] remove unused imports --- commafeed-client/biome.json | 7 +++++++ commafeed-client/src/components/content/Content.test.tsx | 1 - commafeed-client/src/pages/app/DonatePage.tsx | 1 - commafeed-client/vite.config.ts | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/commafeed-client/biome.json b/commafeed-client/biome.json index e904522d..c0f73273 100644 --- a/commafeed-client/biome.json +++ b/commafeed-client/biome.json @@ -13,6 +13,13 @@ "arrowParentheses": "asNeeded" } }, + "linter": { + "rules": { + "correctness": { + "noUnusedImports": "error" + } + } + }, "files": { "ignore": ["dist", "node_modules", "target", "target-ide"] } diff --git a/commafeed-client/src/components/content/Content.test.tsx b/commafeed-client/src/components/content/Content.test.tsx index 7337949b..3fe2913e 100644 --- a/commafeed-client/src/components/content/Content.test.tsx +++ b/commafeed-client/src/components/content/Content.test.tsx @@ -1,7 +1,6 @@ import { MantineProvider } from "@mantine/core" import { render } from "@testing-library/react" import { Content } from "components/content/Content" -import React from "react" import { describe, expect, it } from "vitest" describe("Content component", () => { diff --git a/commafeed-client/src/pages/app/DonatePage.tsx b/commafeed-client/src/pages/app/DonatePage.tsx index 3841056d..f41d06b1 100644 --- a/commafeed-client/src/pages/app/DonatePage.tsx +++ b/commafeed-client/src/pages/app/DonatePage.tsx @@ -1,7 +1,6 @@ import { Trans } from "@lingui/react/macro" import { Anchor, Box, Code, Container, Group, List, Title } from "@mantine/core" import { Constants } from "app/constants" -import React from "react" import { TbBrandGithub, TbBrandPaypal, TbCoinBitcoin, TbHeartFilled } from "react-icons/tb" const iconSize = 24 diff --git a/commafeed-client/vite.config.ts b/commafeed-client/vite.config.ts index ecc6bfce..22fc6c3f 100644 --- a/commafeed-client/vite.config.ts +++ b/commafeed-client/vite.config.ts @@ -1,7 +1,7 @@ import { lingui } from "@lingui/vite-plugin" import react from "@vitejs/plugin-react" import { visualizer } from "rollup-plugin-visualizer" -import { type PluginOption, defineConfig } from "vite" +import { defineConfig } from "vite" import checker from "vite-plugin-checker" import tsconfigPaths from "vite-tsconfig-paths"