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:
Félix Malfait
2025-08-08 01:27:05 +02:00
committed by GitHub
parent 525c8bfe3c
commit 8b4b9ef8da
2050 changed files with 5124 additions and 4912 deletions
@@ -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<