Enforce front project structure through ESLINT (#7863)

Fixes: https://github.com/twentyhq/twenty/issues/7329
This commit is contained in:
Charles Bochet
2024-10-20 20:20:19 +02:00
committed by GitHub
parent f801f3aa9f
commit eccf0bf8ba
260 changed files with 500 additions and 290 deletions

View File

@ -5,8 +5,8 @@ import { useTheme } from '@emotion/react';
import styled from '@emotion/styled';
import { ClipboardEvent } from 'react';
import { blockSchema } from '@/activities/blocks/schema';
import { getSlashMenu } from '@/activities/blocks/slashMenu';
import { BLOCK_SCHEMA } from '@/activities/blocks/constants/Schema';
import { getSlashMenu } from '@/activities/blocks/utils/getSlashMenu';
import { CustomSideMenu } from '@/ui/input/editor/components/CustomSideMenu';
import {
CustomSlashMenu,
@ -14,7 +14,7 @@ import {
} from '@/ui/input/editor/components/CustomSlashMenu';
interface BlockEditorProps {
editor: typeof blockSchema.BlockNoteEditor;
editor: typeof BLOCK_SCHEMA.BlockNoteEditor;
onFocus?: () => void;
onBlur?: () => void;
onPaste?: (event: ClipboardEvent) => void;

View File

@ -1,9 +1,9 @@
import { blockSchema } from '@/activities/blocks/schema';
import { BLOCK_SCHEMA } from '@/activities/blocks/constants/Schema';
import { useComponentsContext } from '@blocknote/react';
type CustomAddBlockItemProps = {
editor: typeof blockSchema.BlockNoteEditor;
editor: typeof BLOCK_SCHEMA.BlockNoteEditor;
children: React.ReactNode; // Adding the children prop
};

View File

@ -1,4 +1,4 @@
import { blockSchema } from '@/activities/blocks/schema';
import { BLOCK_SCHEMA } from '@/activities/blocks/constants/Schema';
import { CustomAddBlockItem } from '@/ui/input/editor/components/CustomAddBlockItem';
import { CustomSideMenuOptions } from '@/ui/input/editor/components/CustomSideMenuOptions';
import {
@ -13,7 +13,7 @@ import styled from '@emotion/styled';
import { IconColorSwatch, IconPlus, IconTrash } from 'twenty-ui';
type CustomSideMenuProps = {
editor: typeof blockSchema.BlockNoteEditor;
editor: typeof BLOCK_SCHEMA.BlockNoteEditor;
};
const StyledDivToCreateGap = styled.div`