mirror of
https://github.com/makeplane/plane.git
synced 2025-12-21 22:29:36 +01:00
- Enhanced ESLint configuration by adding new rules for import consistency and type imports. - Refactored multiple files to replace regular imports with type imports for better clarity and performance. - Ensured consistent use of type imports across the application to align with TypeScript best practices. Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
36 lines
655 B
TypeScript
36 lines
655 B
TypeScript
// editor
|
|
import type { TExtensions } from "@plane/editor";
|
|
|
|
export type TEditorFlaggingHookReturnType = {
|
|
document: {
|
|
disabled: TExtensions[];
|
|
flagged: TExtensions[];
|
|
};
|
|
liteText: {
|
|
disabled: TExtensions[];
|
|
flagged: TExtensions[];
|
|
};
|
|
richText: {
|
|
disabled: TExtensions[];
|
|
flagged: TExtensions[];
|
|
};
|
|
};
|
|
|
|
/**
|
|
* @description extensions disabled in various editors
|
|
*/
|
|
export const useEditorFlagging = (anchor: string): TEditorFlaggingHookReturnType => ({
|
|
document: {
|
|
disabled: [],
|
|
flagged: [],
|
|
},
|
|
liteText: {
|
|
disabled: [],
|
|
flagged: [],
|
|
},
|
|
richText: {
|
|
disabled: [],
|
|
flagged: [],
|
|
},
|
|
});
|