style(font): fix lint warnings - remove unused imports and variables

- Removed unused FontFeatures, FontMetadata, FontProvider from normalize.ts imports
- Removed unused UnifiedFont from normalize.test.ts imports
- Removed unused FontSubset from store.ts imports
- Changed unused queryClient variables to void calls to suppress warnings
This commit is contained in:
Ilia Mashkov
2026-01-06 15:24:34 +03:00
parent be14a62e83
commit 2c666646cb
6 changed files with 3 additions and 8 deletions

View File

@@ -1,7 +1,6 @@
import type {
FontshareFont,
GoogleFontItem,
UnifiedFont,
} from '$entities/Font/model/types';
import {
describe,

View File

@@ -7,9 +7,6 @@
import type {
FontCategory,
FontFeatures,
FontMetadata,
FontProvider,
FontStyleUrls,
FontSubset,
} from '$entities/Font/model/types';

View File

@@ -57,4 +57,4 @@ export type {
// Normalization types
UnifiedFont,
UnifiedFontVariant,
} from './model/types/index';
} from './model/types';

View File

@@ -7,7 +7,6 @@
import type {
FontCategory,
FontProvider,
FontSubset,
} from './common';
import type { UnifiedFont } from './normalize';

View File

@@ -113,7 +113,7 @@ export const fetchFontshareFontsQuery: QueryFunction<
export function useFontshareFontsQuery(
params: FontshareQueryParams = {},
) {
const queryClient = useQueryClient();
useQueryClient();
const query = createQuery(() => ({
queryKey: getFontshareQueryKey(params),

View File

@@ -115,7 +115,7 @@ export const fetchGoogleFontsQuery: QueryFunction<
* ```
*/
export function useGoogleFontsQuery(params: GoogleFontsQueryParams = {}) {
const queryClient = useQueryClient();
useQueryClient();
const query = createQuery(() => ({
queryKey: getGoogleFontsQueryKey(params),