fix: remove unused imports and variables (part 1 — packages & non-web-core) (#8751)

* fix: remove unused imports and variables (part 1)

Resolve oxlint no-unused-vars warnings in packages/*, apps/admin,
apps/space, apps/live, and apps/web (non-core).

* fix: resolve CI check failures

* fix: resolve check:types failures

* fix: resolve check:types and check:format failures

- Use destructuring alias for activeCycleResolvedPath
- Format propel tab-navigation file

* fix: format propel button helper with oxfmt

Reorder Tailwind classes to match oxfmt canonical ordering.
This commit is contained in:
darkingtail 2026-03-25 04:17:03 +08:00 committed by sriram veeraghanta
parent c3c7c72aff
commit d9695afcdc
95 changed files with 71 additions and 145 deletions

View file

@ -6,7 +6,7 @@
import type { HocuspocusProvider } from "@hocuspocus/provider";
import type { Editor } from "@tiptap/react";
import type { FC, ReactNode } from "react";
import type { ReactNode } from "react";
import { useCallback, useEffect, useRef } from "react";
// plane utils
import { cn } from "@plane/utils";

View file

@ -7,7 +7,6 @@
import { autoUpdate, flip, hide, shift, useDismiss, useFloating, useInteractions } from "@floating-ui/react";
import type { Editor } from "@tiptap/react";
import { useEditorState } from "@tiptap/react";
import type { FC } from "react";
import { useCallback, useEffect, useRef, useState } from "react";
// components

View file

@ -42,7 +42,7 @@ export type BlockMenuOption = {
};
export function BlockMenu(props: Props) {
const { editor, workItemIdentifier } = props;
const { editor } = props;
const [isOpen, setIsOpen] = useState(false);
const [isAnimatedIn, setIsAnimatedIn] = useState(false);
const menuRef = useRef<HTMLDivElement | null>(null);

View file

@ -7,7 +7,6 @@
import type { Editor } from "@tiptap/react";
import { ALargeSmall, Ban } from "lucide-react";
import { useMemo } from "react";
import type { FC } from "react";
// plane utils
import { cn } from "@plane/utils";
// constants

View file

@ -6,7 +6,6 @@
import type { Editor } from "@tiptap/core";
import type { FC } from "react";
import { useCallback, useRef, useState } from "react";
import { LinkIcon, TrashIcon, CheckIcon } from "@plane/propel/icons";
// plane imports

View file

@ -6,7 +6,6 @@
import type { Editor } from "@tiptap/react";
import type { FC } from "react";
import { CheckIcon, ChevronDownIcon } from "@plane/propel/icons";
// plane utils
import { cn } from "@plane/utils";

View file

@ -8,7 +8,6 @@ import { isNodeSelection } from "@tiptap/core";
import type { Editor } from "@tiptap/core";
import { BubbleMenu, useEditorState } from "@tiptap/react";
import type { BubbleMenuProps } from "@tiptap/react";
import type { FC } from "react";
import { useEffect, useState, useRef } from "react";
// plane utils
import { cn } from "@plane/utils";

View file

@ -252,7 +252,7 @@ export function CustomImageBlock(props: CustomImageBlockProps) {
src={displayedImageSrc}
alt=""
onLoad={handleImageLoad}
onError={(e) =>
onError={(_e) =>
void (async () => {
// for old image extension this command doesn't exist or if the image failed to load for the first time
if (!extension.options.restoreImage || hasTriedRestoringImageOnce) {

View file

@ -65,7 +65,6 @@ export const useCollaborativeEditor = (props: UseCollaborativeEditorArgs) => {
titleRef,
updatePageProperties,
user,
actions,
} = props;
const { mainNavigationExtension, titleNavigationExtension, setMainEditor, setTitleEditor } = useEditorNavigation();

View file

@ -4,7 +4,6 @@
* See the LICENSE file for details.
*/
import { DOMParser } from "@tiptap/pm/model";
import type { EditorProps } from "@tiptap/pm/view";
// plane utils
import { cn } from "@plane/utils";

View file

@ -5,7 +5,6 @@
*/
// plane imports
import type { TWebhookConnectionQueryParams } from "@plane/types";
import type { TExtendedFileHandler } from "@/plane-editor/types/config";
export type TFileHandler = {