From a118ccc3490b5f5294e6f511e46980264e2174e4 Mon Sep 17 00:00:00 2001 From: zhom <2717306+zhom@users.noreply.github.com> Date: Mon, 1 Dec 2025 12:29:21 +0400 Subject: [PATCH] chore: linting --- biome.json | 3 ++ src-tauri/src/api_client.rs | 1 - src-tauri/src/browser_runner.rs | 36 +++++++++++------------- src-tauri/src/browser_version_manager.rs | 1 - src-tauri/src/profile_importer.rs | 1 - src/components/multiple-selector.tsx | 1 - 6 files changed, 19 insertions(+), 24 deletions(-) diff --git a/biome.json b/biome.json index ceddc2b..083e13b 100644 --- a/biome.json +++ b/biome.json @@ -29,6 +29,9 @@ } }, "css": { + "parser": { + "tailwindDirectives": true + }, "formatter": { "quoteStyle": "double" } diff --git a/src-tauri/src/api_client.rs b/src-tauri/src/api_client.rs index b9a7f3c..2927b77 100644 --- a/src-tauri/src/api_client.rs +++ b/src-tauri/src/api_client.rs @@ -443,7 +443,6 @@ impl ApiClient { firefox_dev_api_base, github_api_base, chromium_api_base, - tor_archive_base, } } diff --git a/src-tauri/src/browser_runner.rs b/src-tauri/src/browser_runner.rs index daeeefb..ac89ec7 100644 --- a/src-tauri/src/browser_runner.rs +++ b/src-tauri/src/browser_runner.rs @@ -649,7 +649,7 @@ impl BrowserRunner { } BrowserType::Camoufox => { // Camoufox uses nodecar for launching, URL opening is handled differently - return Err("URL opening in existing Camoufox instance is not supported".into()); + Err("URL opening in existing Camoufox instance is not supported".into()) } BrowserType::Chromium | BrowserType::Brave => { #[cfg(target_os = "macos")] @@ -856,25 +856,21 @@ impl BrowserRunner { log::info!("Failed to open URL in existing browser: {e}"); // Fall back to launching a new instance - match final_profile.browser.as_str() { - _ => { - log::info!( - "Falling back to new instance for browser: {}", - final_profile.browser - ); - // Fallback to launching a new instance for other browsers - self - .launch_browser_internal( - app_handle.clone(), - &final_profile, - url, - internal_proxy_settings, - None, - false, - ) - .await - } - } + log::info!( + "Falling back to new instance for browser: {}", + final_profile.browser + ); + // Fallback to launching a new instance for other browsers + self + .launch_browser_internal( + app_handle.clone(), + &final_profile, + url, + internal_proxy_settings, + None, + false, + ) + .await } } } else { diff --git a/src-tauri/src/browser_version_manager.rs b/src-tauri/src/browser_version_manager.rs index 85a0b31..b04da14 100644 --- a/src-tauri/src/browser_version_manager.rs +++ b/src-tauri/src/browser_version_manager.rs @@ -850,7 +850,6 @@ mod tests { base_url.clone(), // firefox_dev_api_base base_url.clone(), // github_api_base base_url.clone(), // chromium_api_base - base_url.clone(), // tor_archive_base ) } diff --git a/src-tauri/src/profile_importer.rs b/src-tauri/src/profile_importer.rs index 19e72ae..2768f0e 100644 --- a/src-tauri/src/profile_importer.rs +++ b/src-tauri/src/profile_importer.rs @@ -59,7 +59,6 @@ impl ProfileImporter { // Detect Zen Browser profiles detected_profiles.extend(self.detect_zen_browser_profiles()?); - // Remove duplicates based on path let mut seen_paths = HashSet::new(); let unique_profiles: Vec = detected_profiles diff --git a/src/components/multiple-selector.tsx b/src/components/multiple-selector.tsx index e49654e..0fc1296 100644 --- a/src/components/multiple-selector.tsx +++ b/src/components/multiple-selector.tsx @@ -287,7 +287,6 @@ const MultipleSelector = React.forwardRef< // eslint-disable-next-line react-hooks/exhaustive-deps }, [debouncedSearchTerm, groupBy, open, triggerSearchOnFocus, onSearch]); - // biome-ignore lint/correctness/noNestedComponentDefinitions: public code, TODO: fix const CreatableItem = () => { if (!creatable) return undefined; if (