Update lint rules
This commit is contained in:
@@ -6,9 +6,9 @@
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
import { MessageDescriptor } from '@lingui/core';
|
||||
import type { MessageDescriptor } from '@lingui/core';
|
||||
import { msg } from '@lingui/core/macro';
|
||||
import { SxProps, Theme } from '@mui/material/styles';
|
||||
import type { SxProps, Theme } from '@mui/material/styles';
|
||||
import { PublishingStatus, PublishingType } from '@/features/tracker/Tracker.types.ts';
|
||||
|
||||
export const DIALOG_PADDING: number = 2;
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
import {
|
||||
import type {
|
||||
TrackerType,
|
||||
TrackRecordSearchFieldsFragment,
|
||||
TrackRecordType,
|
||||
|
||||
@@ -17,10 +17,10 @@ import { Trackers } from '@/features/tracker/services/Trackers.ts';
|
||||
import { TrackerCard, TrackerMode } from '@/features/tracker/components/cards/TrackerCard.tsx';
|
||||
import { makeToast } from '@/base/utils/Toast.ts';
|
||||
import { defaultPromiseErrorHandler } from '@/lib/DefaultPromiseErrorHandler.ts';
|
||||
import { GetMangaTrackRecordsQuery, GetTrackersBindQuery, MangaType } from '@/lib/graphql/generated/graphql.ts';
|
||||
import type { GetMangaTrackRecordsQuery, GetTrackersBindQuery, MangaType } from '@/lib/graphql/generated/graphql.ts';
|
||||
import { GET_TRACKERS_BIND } from '@/lib/graphql/tracker/TrackerQuery.ts';
|
||||
import { GET_MANGA_TRACK_RECORDS } from '@/lib/graphql/manga/MangaQuery.ts';
|
||||
import { MangaIdInfo } from '@/features/manga/Manga.types.ts';
|
||||
import type { MangaIdInfo } from '@/features/manga/Manga.types.ts';
|
||||
import { AppRoutes } from '@/base/AppRoute.constants.ts';
|
||||
import { getErrorMessage } from '@/lib/HelperFunctions.ts';
|
||||
import { EmptyView } from '@/base/components/feedback/EmptyView.tsx';
|
||||
|
||||
@@ -31,12 +31,13 @@ import { TrackerMangaCard } from '@/features/tracker/components/cards/TrackerMan
|
||||
import { DIALOG_PADDING } from '@/features/tracker/Tracker.constants.ts';
|
||||
import { useGetOptionForDirection } from '@/features/theme/services/ThemeCreator.ts';
|
||||
import { defaultPromiseErrorHandler } from '@/lib/DefaultPromiseErrorHandler.ts';
|
||||
import { MangaType } from '@/lib/graphql/generated/graphql.ts';
|
||||
import { MangaIdInfo } from '@/features/manga/Manga.types.ts';
|
||||
import type { MangaType } from '@/lib/graphql/generated/graphql.ts';
|
||||
import type { MangaIdInfo } from '@/features/manga/Manga.types.ts';
|
||||
|
||||
import { getErrorMessage } from '@/lib/HelperFunctions.ts';
|
||||
import { applyStyles } from '@/base/utils/ApplyStyles.ts';
|
||||
import { Tracker, TrackerIdInfo, TTrackerBind } from '@/features/tracker/Tracker.types.ts';
|
||||
import type { TrackerIdInfo, TTrackerBind } from '@/features/tracker/Tracker.types.ts';
|
||||
import { Tracker } from '@/features/tracker/Tracker.types.ts';
|
||||
import { CustomButtonIcon } from '@/base/components/buttons/CustomButtonIcon.tsx';
|
||||
import { CustomTooltip } from '@/base/components/CustomTooltip.tsx';
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ import { makeToast } from '@/base/utils/Toast.ts';
|
||||
import { requestManager } from '@/lib/requests/RequestManager.ts';
|
||||
import { Trackers } from '@/features/tracker/services/Trackers.ts';
|
||||
import { getErrorMessage, noOp } from '@/lib/HelperFunctions.ts';
|
||||
import { TTrackerSearch } from '@/features/tracker/Tracker.types.ts';
|
||||
import type { TTrackerSearch } from '@/features/tracker/Tracker.types.ts';
|
||||
import { AvatarSpinner } from '@/base/components/AvatarSpinner.tsx';
|
||||
import { CredentialsLogin } from '@/base/components/modals/LoginDialog.tsx';
|
||||
|
||||
|
||||
@@ -38,11 +38,12 @@ import { makeToast } from '@/base/utils/Toast.ts';
|
||||
import { Menu } from '@/base/components/menu/Menu.tsx';
|
||||
import { CARD_STYLING, UNSET_DATE } from '@/features/tracker/Tracker.constants.ts';
|
||||
import { TypographyMaxLines } from '@/base/components/texts/TypographyMaxLines.tsx';
|
||||
import { SelectSetting, SelectSettingValue } from '@/base/components/settings/SelectSetting.tsx';
|
||||
import type { SelectSettingValue } from '@/base/components/settings/SelectSetting.tsx';
|
||||
import { SelectSetting } from '@/base/components/settings/SelectSetting.tsx';
|
||||
import { CheckboxInput } from '@/base/components/inputs/CheckboxInput.tsx';
|
||||
import { TrackRecordType } from '@/lib/graphql/generated/graphql.ts';
|
||||
import type { TrackRecordType } from '@/lib/graphql/generated/graphql.ts';
|
||||
import { getErrorMessage } from '@/lib/HelperFunctions.ts';
|
||||
import { TTrackerBind, TTrackRecordBind } from '@/features/tracker/Tracker.types.ts';
|
||||
import type { TTrackerBind, TTrackRecordBind } from '@/features/tracker/Tracker.types.ts';
|
||||
import { AvatarSpinner } from '@/base/components/AvatarSpinner.tsx';
|
||||
|
||||
const TrackerActiveLink = ({ children, url }: { children: React.ReactNode; url: string }) => (
|
||||
|
||||
@@ -9,10 +9,10 @@
|
||||
import { TrackerUntrackedCard } from '@/features/tracker/components/cards/TrackerUntrackedCard.tsx';
|
||||
import { TrackerSearch } from '@/features/tracker/components/TrackerSearch.tsx';
|
||||
import { TrackerActiveCard } from '@/features/tracker/components/cards/TrackerActiveCard.tsx';
|
||||
import { MangaType } from '@/lib/graphql/generated/graphql.ts';
|
||||
import type { MangaType } from '@/lib/graphql/generated/graphql.ts';
|
||||
|
||||
import { MangaIdInfo } from '@/features/manga/Manga.types.ts';
|
||||
import { TTrackerBind, TTrackRecordBind } from '@/features/tracker/Tracker.types.ts';
|
||||
import type { MangaIdInfo } from '@/features/manga/Manga.types.ts';
|
||||
import type { TTrackerBind, TTrackRecordBind } from '@/features/tracker/Tracker.types.ts';
|
||||
|
||||
export enum TrackerMode {
|
||||
UNTRACKED,
|
||||
|
||||
@@ -31,7 +31,7 @@ import {
|
||||
PUBLISHING_STATUS_TO_TRANSLATION,
|
||||
PUBLISHING_TYPE_TO_TRANSLATION,
|
||||
} from '@/features/tracker/Tracker.constants.ts';
|
||||
import { TTrackerManga } from '@/features/tracker/Tracker.types.ts';
|
||||
import type { TTrackerManga } from '@/features/tracker/Tracker.types.ts';
|
||||
|
||||
const TrackerMangaCardTitle = ({ title, selected }: { title: string; selected: boolean }) => (
|
||||
<Stack
|
||||
|
||||
@@ -13,7 +13,7 @@ import Stack from '@mui/material/Stack';
|
||||
import { useLingui } from '@lingui/react/macro';
|
||||
import { requestManager } from '@/lib/requests/RequestManager.ts';
|
||||
import { CARD_STYLING } from '@/features/tracker/Tracker.constants.ts';
|
||||
import { TTrackerBase } from '@/features/tracker/Tracker.types.ts';
|
||||
import type { TTrackerBase } from '@/features/tracker/Tracker.types.ts';
|
||||
|
||||
import { AvatarSpinner } from '@/base/components/AvatarSpinner.tsx';
|
||||
|
||||
|
||||
@@ -23,8 +23,8 @@ import {
|
||||
import { makeToast } from '@/base/utils/Toast.ts';
|
||||
import { defaultPromiseErrorHandler } from '@/lib/DefaultPromiseErrorHandler.ts';
|
||||
import { GET_TRACKERS_SETTINGS } from '@/lib/graphql/tracker/TrackerQuery.ts';
|
||||
import { GetTrackersSettingsQuery } from '@/lib/graphql/generated/graphql.ts';
|
||||
import { MetadataTrackingSettings } from '@/features/tracker/Tracker.types.ts';
|
||||
import type { GetTrackersSettingsQuery } from '@/lib/graphql/generated/graphql.ts';
|
||||
import type { MetadataTrackingSettings } from '@/features/tracker/Tracker.types.ts';
|
||||
import { getErrorMessage } from '@/lib/HelperFunctions.ts';
|
||||
import { useAppTitle } from '@/features/navigation-bar/hooks/useAppTitle.ts';
|
||||
|
||||
|
||||
@@ -6,15 +6,14 @@
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
import {
|
||||
import type {
|
||||
LoggedInInfo,
|
||||
PublishingStatus,
|
||||
PublishingType,
|
||||
TrackerIdInfo,
|
||||
TrackRecordTrackerInfo,
|
||||
TrackSearchPublishingStatusInfo,
|
||||
TrackSearchPublishingTypeInfo,
|
||||
} from '@/features/tracker/Tracker.types.ts';
|
||||
import { PublishingStatus, PublishingType } from '@/features/tracker/Tracker.types.ts';
|
||||
import { UNSET_DATE } from '@/features/tracker/Tracker.constants.ts';
|
||||
|
||||
export class Trackers {
|
||||
|
||||
Reference in New Issue
Block a user