From 502ac1e2ca182a37ce56046bdc3aca526171e7f0 Mon Sep 17 00:00:00 2001 From: Stas Guma Date: Tue, 19 Mar 2024 21:29:17 +0200 Subject: [PATCH] fix lint errors --- config/storybook/preview.ts | 2 -- src/pages/HomePage/ui/HomePage.tsx | 12 ++---------- .../ui/Typography/Paragraph/Paragraph.stories.tsx | 2 +- 3 files changed, 3 insertions(+), 13 deletions(-) diff --git a/config/storybook/preview.ts b/config/storybook/preview.ts index 7a9f628..1c614b5 100644 --- a/config/storybook/preview.ts +++ b/config/storybook/preview.ts @@ -2,12 +2,10 @@ import type { Preview } from '@storybook/react'; import '../../src/app/styles/index.scss'; -// import i18n from '../../src/shared/config/i18n/i18n'; import { withThemeDecorator } from '../../src/shared/config/storybook/decorators/withThemeDecorator'; import { withLangDecorator } from '../../src/shared/config/storybook/decorators/withLangDecorator'; import { withRouterDecorator } from '../../src/shared/config/storybook/decorators/withRouterDecorator'; import { withStoreDecorator } from '../../src/shared/config/storybook/decorators/withStoreDecorator'; -import { withThemeByDataAttribute } from '@storybook/addon-themes'; const preview: Preview = { parameters: { diff --git a/src/pages/HomePage/ui/HomePage.tsx b/src/pages/HomePage/ui/HomePage.tsx index f802588..052849f 100644 --- a/src/pages/HomePage/ui/HomePage.tsx +++ b/src/pages/HomePage/ui/HomePage.tsx @@ -1,27 +1,19 @@ import { type FC } from 'react'; -// import { useTranslation } from 'react-i18next'; import { Typography } from '@/shared/ui'; -// import { changeName } from '@/entities/User'; const HomePage: FC = () => { - // const { t } = useTranslation(); const { Title } = Typography; - // const changeNameHandler = () => { - // dispatch(changeName('SuperStas')); - // }; - return ( <> - { } - {/* */} -

{}

+ {/* eslint-disable */} Heading 1 Heading 3 as H1 Heading 2 Heading 3 Heading 4 + {/* eslint-enable */} ); }; diff --git a/src/shared/ui/Typography/Paragraph/Paragraph.stories.tsx b/src/shared/ui/Typography/Paragraph/Paragraph.stories.tsx index 96682fc..624434e 100644 --- a/src/shared/ui/Typography/Paragraph/Paragraph.stories.tsx +++ b/src/shared/ui/Typography/Paragraph/Paragraph.stories.tsx @@ -25,4 +25,4 @@ export const ParagraphSizes: Story = { Lorem, ipsum dolor sit amet consectetur adipisicing elit. Facere, impedit non. Libero explicabo blanditiis mollitia quae quod similique ad vitae autem voluptatibus labore doloremque totam, voluptatum repellendus nam rem delectus suscipit fugit doloribus! Adipisci corporis et reiciendis! Nihil sed earum aperiam debitis veritatis, natus dicta quasi cum beatae est quia! ), -}; \ No newline at end of file +};