Change type import rule (#13751)
Forcing "type" to be explicit, works best will rollup on the frontend to exclude depdendencies
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import styled from '@emotion/styled';
|
||||
import { isNumber, isString } from '@sniptt/guards';
|
||||
import { Decorator } from '@storybook/react';
|
||||
import { ComponentProps, JSX } from 'react';
|
||||
import { type Decorator } from '@storybook/react';
|
||||
import { type ComponentProps, type JSX } from 'react';
|
||||
|
||||
const StyledColumnTitle = styled.h1`
|
||||
font-size: ${({ theme }) => theme.font.size.lg};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Decorator } from '@storybook/react';
|
||||
import { type Decorator } from '@storybook/react';
|
||||
|
||||
import { GRAY_SCALE, MAIN_COLORS } from '@ui/theme';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Decorator } from '@storybook/react';
|
||||
import { type Decorator } from '@storybook/react';
|
||||
import {
|
||||
createMemoryRouter,
|
||||
createRoutesFromElements,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Decorator } from '@storybook/react';
|
||||
import { type Decorator } from '@storybook/react';
|
||||
|
||||
import { RecoilRoot } from 'recoil';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { MemoryRouter } from 'react-router-dom';
|
||||
import { Decorator } from '@storybook/react';
|
||||
import { type Decorator } from '@storybook/react';
|
||||
|
||||
export const RouterDecorator: Decorator = (Story) => (
|
||||
<MemoryRouter>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { ElementType } from 'react';
|
||||
import { StoryObj } from '@storybook/react';
|
||||
import { type ElementType } from 'react';
|
||||
import { type StoryObj } from '@storybook/react';
|
||||
|
||||
import {
|
||||
CatalogDimension,
|
||||
CatalogOptions,
|
||||
type CatalogDimension,
|
||||
type CatalogOptions,
|
||||
} from '../decorators/CatalogDecorator';
|
||||
|
||||
export type CatalogStory<
|
||||
|
||||
Reference in New Issue
Block a user