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:
@@ -1,7 +1,6 @@
|
|||||||
import type {
|
import type {
|
||||||
FontshareFont,
|
FontshareFont,
|
||||||
GoogleFontItem,
|
GoogleFontItem,
|
||||||
UnifiedFont,
|
|
||||||
} from '$entities/Font/model/types';
|
} from '$entities/Font/model/types';
|
||||||
import {
|
import {
|
||||||
describe,
|
describe,
|
||||||
|
|||||||
@@ -7,9 +7,6 @@
|
|||||||
|
|
||||||
import type {
|
import type {
|
||||||
FontCategory,
|
FontCategory,
|
||||||
FontFeatures,
|
|
||||||
FontMetadata,
|
|
||||||
FontProvider,
|
|
||||||
FontStyleUrls,
|
FontStyleUrls,
|
||||||
FontSubset,
|
FontSubset,
|
||||||
} from '$entities/Font/model/types';
|
} from '$entities/Font/model/types';
|
||||||
|
|||||||
@@ -57,4 +57,4 @@ export type {
|
|||||||
// Normalization types
|
// Normalization types
|
||||||
UnifiedFont,
|
UnifiedFont,
|
||||||
UnifiedFontVariant,
|
UnifiedFontVariant,
|
||||||
} from './model/types/index';
|
} from './model/types';
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
import type {
|
import type {
|
||||||
FontCategory,
|
FontCategory,
|
||||||
FontProvider,
|
FontProvider,
|
||||||
FontSubset,
|
|
||||||
} from './common';
|
} from './common';
|
||||||
import type { UnifiedFont } from './normalize';
|
import type { UnifiedFont } from './normalize';
|
||||||
|
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ export const fetchFontshareFontsQuery: QueryFunction<
|
|||||||
export function useFontshareFontsQuery(
|
export function useFontshareFontsQuery(
|
||||||
params: FontshareQueryParams = {},
|
params: FontshareQueryParams = {},
|
||||||
) {
|
) {
|
||||||
const queryClient = useQueryClient();
|
useQueryClient();
|
||||||
|
|
||||||
const query = createQuery(() => ({
|
const query = createQuery(() => ({
|
||||||
queryKey: getFontshareQueryKey(params),
|
queryKey: getFontshareQueryKey(params),
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ export const fetchGoogleFontsQuery: QueryFunction<
|
|||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
export function useGoogleFontsQuery(params: GoogleFontsQueryParams = {}) {
|
export function useGoogleFontsQuery(params: GoogleFontsQueryParams = {}) {
|
||||||
const queryClient = useQueryClient();
|
useQueryClient();
|
||||||
|
|
||||||
const query = createQuery(() => ({
|
const query = createQuery(() => ({
|
||||||
queryKey: getGoogleFontsQueryKey(params),
|
queryKey: getGoogleFontsQueryKey(params),
|
||||||
|
|||||||
Reference in New Issue
Block a user