From 7f4340ae3c0bcc9490f8338d5b2a532aaa611c5f Mon Sep 17 00:00:00 2001 From: Javi Aguilar <122741+itsjavi@users.noreply.github.com> Date: Sun, 24 Sep 2023 23:01:48 +0200 Subject: [PATCH] style: enforce the use of top-level import type qualifier --- package.json | 2 +- packages/docs/.storylite/config.tsx | 2 +- packages/docs/stories/buttons.stories.tsx | 2 +- packages/examples/react/.storylite/config.tsx | 2 +- .../react/stories/buttons.stories.tsx | 2 +- .../react/stories/forwardref.stories.tsx | 2 +- .../examples/react/stories/index.stories.tsx | 2 +- packages/storylite/package.json | 4 +- packages/storylite/src/app/index.tsx | 2 +- packages/storylite/src/app/renderApp.tsx | 2 +- packages/storylite/src/app/routes.ts | 2 +- packages/storylite/src/app/stores/global.ts | 10 +- .../storylite/src/app/stores/global.types.ts | 2 +- packages/storylite/src/components/Btn.tsx | 2 +- .../storylite/src/components/InlineHtml.tsx | 2 +- .../components/addons/getToolbarAddons.tsx | 12 +- .../src/components/canvas/CanvasIframe.tsx | 2 +- .../components/canvas/CanvasIframeBody.tsx | 2 +- .../src/components/sidebar/Sidebar.tsx | 2 +- .../src/components/toolbar/Toolbar.tsx | 2 +- .../src/components/toolbar/ToolbarAddon.tsx | 4 +- .../storylite/src/hooks/useDetectTheme.ts | 2 +- packages/storylite/src/pages/404.tsx | 2 +- .../storylite/src/pages/preview/story.tsx | 2 +- .../storylite/src/pages/stories/story.tsx | 2 +- .../src/services/csf-api/navigation.tsx | 2 +- .../services/messenger/useWindowMessenger.ts | 2 +- .../src/services/messenger/windowMessaging.ts | 2 +- .../messenger/windowMessaging.types.ts | 2 +- .../storylite/src/services/renderer/react.tsx | 2 +- .../services/router/createStoryLiteRouter.tsx | 2 +- .../src/services/router/router.class.ts | 4 +- .../src/services/router/router.component.tsx | 4 +- .../src/services/router/router.parser.ts | 2 +- .../src/services/router/router.store.tsx | 2 +- .../src/services/router/router.types.ts | 2 +- packages/storylite/src/types/components.ts | 4 +- packages/storylite/src/types/config.ts | 4 +- packages/storylite/src/types/parameters.ts | 4 +- packages/storylite/src/types/story.ts | 4 +- packages/storylite/src/types/ui.ts | 8 +- .../src/utility/parametersToDataProps.ts | 2 +- packages/vite-plugin/package.json | 2 +- packages/vite-plugin/src/plugin.ts | 2 +- packages/vite-plugin/src/story-collector.ts | 2 +- pnpm-lock.yaml | 156 +++++++++--------- 46 files changed, 146 insertions(+), 140 deletions(-) diff --git a/package.json b/package.json index f3700f3..cd98b3b 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "devDependencies": { "@commitlint/cli": "^17.7.1", "@commitlint/config-conventional": "^17.7.0", - "@r1stack/coding-style": "^0.4.5", + "@r1stack/coding-style": "^0.5.0", "@swc/core": "^1.3.85", "@swc/jest": "^0.2.29", "@testing-library/jest-dom": "^6.1.3", diff --git a/packages/docs/.storylite/config.tsx b/packages/docs/.storylite/config.tsx index 895fd55..5a23429 100644 --- a/packages/docs/.storylite/config.tsx +++ b/packages/docs/.storylite/config.tsx @@ -1,4 +1,4 @@ -import { SLAddonPropsWithoutId, SLAppComponentProps } from '@storylite/storylite' +import type { SLAddonPropsWithoutId, SLAppComponentProps } from '@storylite/storylite' import { BoxIcon, GithubIcon, ZapIcon } from 'lucide-react' const config: Partial = { diff --git a/packages/docs/stories/buttons.stories.tsx b/packages/docs/stories/buttons.stories.tsx index bd78d48..e60d0f9 100644 --- a/packages/docs/stories/buttons.stories.tsx +++ b/packages/docs/stories/buttons.stories.tsx @@ -1,4 +1,4 @@ -import { SLCoreAddon, Story } from '@storylite/storylite' +import { SLCoreAddon, type Story } from '@storylite/storylite' import { LinkableBtn } from '../src/components/LinkableBtn' diff --git a/packages/examples/react/.storylite/config.tsx b/packages/examples/react/.storylite/config.tsx index 520753f..7119f3f 100644 --- a/packages/examples/react/.storylite/config.tsx +++ b/packages/examples/react/.storylite/config.tsx @@ -1,4 +1,4 @@ -import { SLAddonPropsWithoutId, SLAppComponentProps } from '@storylite/storylite' +import type { SLAddonPropsWithoutId, SLAppComponentProps } from '@storylite/storylite' const config: Partial = { title: ' ⚡️ StoryLite React', diff --git a/packages/examples/react/stories/buttons.stories.tsx b/packages/examples/react/stories/buttons.stories.tsx index bd78d48..e60d0f9 100644 --- a/packages/examples/react/stories/buttons.stories.tsx +++ b/packages/examples/react/stories/buttons.stories.tsx @@ -1,4 +1,4 @@ -import { SLCoreAddon, Story } from '@storylite/storylite' +import { SLCoreAddon, type Story } from '@storylite/storylite' import { LinkableBtn } from '../src/components/LinkableBtn' diff --git a/packages/examples/react/stories/forwardref.stories.tsx b/packages/examples/react/stories/forwardref.stories.tsx index 2b1f5ee..f7fd99c 100644 --- a/packages/examples/react/stories/forwardref.stories.tsx +++ b/packages/examples/react/stories/forwardref.stories.tsx @@ -1,4 +1,4 @@ -import { Story } from '@storylite/storylite' +import type { Story } from '@storylite/storylite' import { ForwardRefButton } from '../src/components/ForwardRefButton' diff --git a/packages/examples/react/stories/index.stories.tsx b/packages/examples/react/stories/index.stories.tsx index aa3c742..db7f584 100644 --- a/packages/examples/react/stories/index.stories.tsx +++ b/packages/examples/react/stories/index.stories.tsx @@ -1,4 +1,4 @@ -import { Story } from '@storylite/storylite' +import type { Story } from '@storylite/storylite' import '../src/styles/components.css' diff --git a/packages/storylite/package.json b/packages/storylite/package.json index 0105ab0..48b29e3 100644 --- a/packages/storylite/package.json +++ b/packages/storylite/package.json @@ -29,11 +29,11 @@ "type-check": "tsc --noEmit" }, "dependencies": { - "@r1stack/cn": "^0.4.5", + "@r1stack/cn": "^0.5.0", "zustand": "^4.4.1" }, "devDependencies": { - "@r1stack/coding-style": "^0.4.5", + "@r1stack/coding-style": "^0.5.0", "@types/node": "^20.6.1", "@types/react": "^18.2.21", "@types/react-dom": "^18.2.7", diff --git a/packages/storylite/src/app/index.tsx b/packages/storylite/src/app/index.tsx index 45fca9e..7b6ece0 100644 --- a/packages/storylite/src/app/index.tsx +++ b/packages/storylite/src/app/index.tsx @@ -1,7 +1,7 @@ import { useEffect } from 'react' import { RouteRenderer, useRouterStore } from '..' -import { SLAppComponentProps, StoryModuleMap } from '../types' +import type { SLAppComponentProps, StoryModuleMap } from '../types' import { useStoryLiteStore } from './stores/global' export type StoryLiteAppProps = { diff --git a/packages/storylite/src/app/renderApp.tsx b/packages/storylite/src/app/renderApp.tsx index 21fb269..65ae566 100644 --- a/packages/storylite/src/app/renderApp.tsx +++ b/packages/storylite/src/app/renderApp.tsx @@ -1,7 +1,7 @@ import React from 'react' import ReactDOM from 'react-dom/client' -import { SLAppComponentProps, StoryModuleMap } from '@/types' +import type { SLAppComponentProps, StoryModuleMap } from '@/types' import { StoryLiteApp } from '.' diff --git a/packages/storylite/src/app/routes.ts b/packages/storylite/src/app/routes.ts index 30a71e4..0373853 100644 --- a/packages/storylite/src/app/routes.ts +++ b/packages/storylite/src/app/routes.ts @@ -7,7 +7,7 @@ import * as IndexPage from '@/pages/index' import * as SandboxIndexPage from '@/pages/preview/index' import * as SandboxStoryPage from '@/pages/preview/story' import * as StoryPage from '@/pages/stories/story' -import { RouterPage } from '@/services/router/router.types' +import type { RouterPage } from '@/services/router/router.types' const appRoutes: Record = { '/': IndexPage, diff --git a/packages/storylite/src/app/stores/global.ts b/packages/storylite/src/app/stores/global.ts index ec1e62e..d346a10 100644 --- a/packages/storylite/src/app/stores/global.ts +++ b/packages/storylite/src/app/stores/global.ts @@ -6,10 +6,16 @@ import { getToolbarAddonsAsParameters, resolveToolbarAddons, } from '@/components/addons/getToolbarAddons' -import { SLAddonsMap, SLParameters, SLUserDefinedAddons, StoryMap, StoryModuleMap } from '@/types' +import type { + SLAddonsMap, + SLParameters, + SLUserDefinedAddons, + StoryMap, + StoryModuleMap, +} from '@/types' import { getDefaultTitle } from './DefaultTitle' -import { StoryLiteActions, StoryLiteState } from './global.types' +import type { StoryLiteActions, StoryLiteState } from './global.types' const builtinAddons: SLAddonsMap = new Map( Array.from(getDefaultToolbarAddons().entries()).map(([id, addon]) => [id, { ...addon, id }]), diff --git a/packages/storylite/src/app/stores/global.types.ts b/packages/storylite/src/app/stores/global.types.ts index c41b781..f8ff47b 100644 --- a/packages/storylite/src/app/stores/global.types.ts +++ b/packages/storylite/src/app/stores/global.types.ts @@ -1,4 +1,4 @@ -import { +import type { SLAddonsMap, SLAppComponentProps, SLParameters, diff --git a/packages/storylite/src/components/Btn.tsx b/packages/storylite/src/components/Btn.tsx index aa22cd3..8e22c4e 100644 --- a/packages/storylite/src/components/Btn.tsx +++ b/packages/storylite/src/components/Btn.tsx @@ -1,4 +1,4 @@ -import { HTMLAttributes } from 'react' +import type { HTMLAttributes } from 'react' import { cn } from '@r1stack/cn' export type BtnProps = { diff --git a/packages/storylite/src/components/InlineHtml.tsx b/packages/storylite/src/components/InlineHtml.tsx index fa159b5..42380d9 100644 --- a/packages/storylite/src/components/InlineHtml.tsx +++ b/packages/storylite/src/components/InlineHtml.tsx @@ -1,4 +1,4 @@ -import { HTMLProps } from 'react' +import type { HTMLProps } from 'react' import { cn } from '@r1stack/cn' type InlineHtmlProps = { diff --git a/packages/storylite/src/components/addons/getToolbarAddons.tsx b/packages/storylite/src/components/addons/getToolbarAddons.tsx index 0f0a2d8..5d249c5 100644 --- a/packages/storylite/src/components/addons/getToolbarAddons.tsx +++ b/packages/storylite/src/components/addons/getToolbarAddons.tsx @@ -11,14 +11,14 @@ import { InlineHtml } from '@/components/InlineHtml' import { getStoryUrl } from '@/services/csf-api/navigation' import { - SLAddonProps, - SLAddonPropsWithoutId, - SLAddonsMap, - SLAddonsMapWithoutId, SLColorScheme, SLCoreAddon, - SLParameters, - SLUserDefinedAddons, + type SLAddonProps, + type SLAddonPropsWithoutId, + type SLAddonsMap, + type SLAddonsMapWithoutId, + type SLParameters, + type SLUserDefinedAddons, } from '../..' import { isTruthy } from '../../utility' diff --git a/packages/storylite/src/components/canvas/CanvasIframe.tsx b/packages/storylite/src/components/canvas/CanvasIframe.tsx index 95ede0d..b5b89a4 100644 --- a/packages/storylite/src/components/canvas/CanvasIframe.tsx +++ b/packages/storylite/src/components/canvas/CanvasIframe.tsx @@ -1,4 +1,4 @@ -import { HTMLProps, useEffect } from 'react' +import { useEffect, type HTMLProps } from 'react' import { cn } from '@r1stack/cn' import { useStoryLiteIframe, useStoryLiteStore } from '@/app/stores/global' diff --git a/packages/storylite/src/components/canvas/CanvasIframeBody.tsx b/packages/storylite/src/components/canvas/CanvasIframeBody.tsx index 7617c19..9292262 100644 --- a/packages/storylite/src/components/canvas/CanvasIframeBody.tsx +++ b/packages/storylite/src/components/canvas/CanvasIframeBody.tsx @@ -1,4 +1,4 @@ -import { HTMLProps } from 'react' +import type { HTMLProps } from 'react' import { cn } from '@r1stack/cn' import { useRouterQuery } from '@/services/router' diff --git a/packages/storylite/src/components/sidebar/Sidebar.tsx b/packages/storylite/src/components/sidebar/Sidebar.tsx index b3ea78e..a52b167 100644 --- a/packages/storylite/src/components/sidebar/Sidebar.tsx +++ b/packages/storylite/src/components/sidebar/Sidebar.tsx @@ -6,7 +6,7 @@ import bookmarkIcon from '@/assets/lucide/svg/bookmark.svg' import minusSquareIcon from '@/assets/lucide/svg/minus-square.svg' import plusSquareIcon from '@/assets/lucide/svg/plus-square.svg' import { InlineHtml } from '@/components/InlineHtml' -import { getStoryNavigationTree, SLNavigationNode } from '@/services/csf-api/navigation' +import { getStoryNavigationTree, type SLNavigationNode } from '@/services/csf-api/navigation' import { Link, useRouterParams } from '@/services/router' type SidebarProps = { diff --git a/packages/storylite/src/components/toolbar/Toolbar.tsx b/packages/storylite/src/components/toolbar/Toolbar.tsx index 00f52c0..990c0c8 100644 --- a/packages/storylite/src/components/toolbar/Toolbar.tsx +++ b/packages/storylite/src/components/toolbar/Toolbar.tsx @@ -1,5 +1,5 @@ import { useStoryLiteStore } from '@/app/stores/global' -import { SLAddonProps } from '@/types' +import type { SLAddonProps } from '@/types' import { ToolbarAddon, ToolbarStatefulAddon } from './ToolbarAddon' diff --git a/packages/storylite/src/components/toolbar/ToolbarAddon.tsx b/packages/storylite/src/components/toolbar/ToolbarAddon.tsx index db0caf8..fce6fcf 100644 --- a/packages/storylite/src/components/toolbar/ToolbarAddon.tsx +++ b/packages/storylite/src/components/toolbar/ToolbarAddon.tsx @@ -1,8 +1,8 @@ import { useEffect, useState } from 'react' import { useStoryLiteStore } from '@/app/stores/global' -import { StoryLiteParamValue, StoryLiteStore } from '@/app/stores/global.types' -import { SLAddonContext, SLAddonProps, SLAddonState } from '@/types' +import type { StoryLiteParamValue, StoryLiteStore } from '@/app/stores/global.types' +import type { SLAddonContext, SLAddonProps, SLAddonState } from '@/types' import { Btn } from '../Btn' diff --git a/packages/storylite/src/hooks/useDetectTheme.ts b/packages/storylite/src/hooks/useDetectTheme.ts index 1677b58..2784eea 100644 --- a/packages/storylite/src/hooks/useDetectTheme.ts +++ b/packages/storylite/src/hooks/useDetectTheme.ts @@ -1,7 +1,7 @@ import React, { useEffect } from 'react' import { useStoryLiteStore } from '@/app/stores/global' -import { SLColorScheme } from '@/types' +import type { SLColorScheme } from '@/types' export function useDetectTheme(): string { const [userConfig, params] = useStoryLiteStore(state => [state.config, state.parameters]) diff --git a/packages/storylite/src/pages/404.tsx b/packages/storylite/src/pages/404.tsx index 3db350e..dba8e75 100644 --- a/packages/storylite/src/pages/404.tsx +++ b/packages/storylite/src/pages/404.tsx @@ -1,6 +1,6 @@ import ErrorLayout from '@/components/layouts/ErrorLayout' -import { SLStoryPageProps } from '..' +import type { SLStoryPageProps } from '..' export default function Error404(props: SLStoryPageProps) { return ( diff --git a/packages/storylite/src/pages/preview/story.tsx b/packages/storylite/src/pages/preview/story.tsx index c0fef80..0215b86 100644 --- a/packages/storylite/src/pages/preview/story.tsx +++ b/packages/storylite/src/pages/preview/story.tsx @@ -1,6 +1,6 @@ import { CanvasIframeBody } from '@/components/canvas/CanvasIframeBody' import IframeLayout from '@/components/layouts/IframeLayout' -import { SLStoryPageProps } from '@/types' +import type { SLStoryPageProps } from '@/types' export default function StoryPage({ storyId }: SLStoryPageProps) { return diff --git a/packages/storylite/src/pages/stories/story.tsx b/packages/storylite/src/pages/stories/story.tsx index 64e4af1..4b81145 100644 --- a/packages/storylite/src/pages/stories/story.tsx +++ b/packages/storylite/src/pages/stories/story.tsx @@ -1,6 +1,6 @@ import { CanvasRoot } from '@/components/canvas/CanvasRoot' import TopFrameLayout from '@/components/layouts/TopFrameLayout' -import { SLStoryPageProps } from '@/types' +import type { SLStoryPageProps } from '@/types' export default function StoryPage({ storyId }: SLStoryPageProps) { return diff --git a/packages/storylite/src/services/csf-api/navigation.tsx b/packages/storylite/src/services/csf-api/navigation.tsx index d91f749..945da3b 100644 --- a/packages/storylite/src/services/csf-api/navigation.tsx +++ b/packages/storylite/src/services/csf-api/navigation.tsx @@ -1,4 +1,4 @@ -import { SLNode, StoryModuleMap } from '@/types' +import type { SLNode, StoryModuleMap } from '@/types' import { isTruthy } from '@/utility' import { getStoryLiteBasePath } from '../router/getStoryLiteBasePath' diff --git a/packages/storylite/src/services/messenger/useWindowMessenger.ts b/packages/storylite/src/services/messenger/useWindowMessenger.ts index 590cde2..a96adc1 100644 --- a/packages/storylite/src/services/messenger/useWindowMessenger.ts +++ b/packages/storylite/src/services/messenger/useWindowMessenger.ts @@ -4,9 +4,9 @@ import { useStoryLiteStore } from '@/app/stores/global' import { registerWindowMessageListener, sendWindowMessage } from './windowMessaging' import { - CrossDocumentMessage, CrossDocumentMessageSource, CrossDocumentMessageType, + type CrossDocumentMessage, } from './windowMessaging.types' export function useWindowMessenger() { diff --git a/packages/storylite/src/services/messenger/windowMessaging.ts b/packages/storylite/src/services/messenger/windowMessaging.ts index f367211..6e54086 100644 --- a/packages/storylite/src/services/messenger/windowMessaging.ts +++ b/packages/storylite/src/services/messenger/windowMessaging.ts @@ -1,7 +1,7 @@ import { - CrossDocumentMessage, CrossDocumentMessageSource, WindowMessageOrigin, + type CrossDocumentMessage, } from './windowMessaging.types' export const sendWindowMessageToRoot = (message: CrossDocumentMessage) => { diff --git a/packages/storylite/src/services/messenger/windowMessaging.types.ts b/packages/storylite/src/services/messenger/windowMessaging.types.ts index 103036c..575dd58 100644 --- a/packages/storylite/src/services/messenger/windowMessaging.types.ts +++ b/packages/storylite/src/services/messenger/windowMessaging.types.ts @@ -1,4 +1,4 @@ -import { SLParameters } from '@/types' +import type { SLParameters } from '@/types' export enum WindowMessageOrigin { Same = '/', diff --git a/packages/storylite/src/services/renderer/react.tsx b/packages/storylite/src/services/renderer/react.tsx index fbaf7a2..a14dbcf 100644 --- a/packages/storylite/src/services/renderer/react.tsx +++ b/packages/storylite/src/services/renderer/react.tsx @@ -1,4 +1,4 @@ -import { SLDecorator, SLDecoratorContext, SLFunctionComponent, StoryWithId } from '@/types' +import type { SLDecorator, SLDecoratorContext, SLFunctionComponent, StoryWithId } from '@/types' const defaultDecorator: SLDecorator = (Story, context) => { // apply args diff --git a/packages/storylite/src/services/router/createStoryLiteRouter.tsx b/packages/storylite/src/services/router/createStoryLiteRouter.tsx index 2e1761d..71c1d2d 100644 --- a/packages/storylite/src/services/router/createStoryLiteRouter.tsx +++ b/packages/storylite/src/services/router/createStoryLiteRouter.tsx @@ -1,5 +1,5 @@ import { Router } from './router.class' -import { RouterPage } from './router.types' +import type { RouterPage } from './router.types' export function createStoryLiteRouter( appRoutes: Record, diff --git a/packages/storylite/src/services/router/router.class.ts b/packages/storylite/src/services/router/router.class.ts index 8a10146..7491bfa 100644 --- a/packages/storylite/src/services/router/router.class.ts +++ b/packages/storylite/src/services/router/router.class.ts @@ -1,7 +1,7 @@ -import React from 'react' +import type React from 'react' import { createPatternRegex, getWindowHash, parsePathParams, parseUri } from './router.parser' -import { CurrentRoute, Route } from './router.types' +import type { CurrentRoute, Route } from './router.types' export class Router implements Iterable { [Symbol.iterator](): Iterator { diff --git a/packages/storylite/src/services/router/router.component.tsx b/packages/storylite/src/services/router/router.component.tsx index e75e3dc..8f4ff7b 100644 --- a/packages/storylite/src/services/router/router.component.tsx +++ b/packages/storylite/src/services/router/router.component.tsx @@ -1,7 +1,7 @@ -import { HTMLAttributes, ReactNode } from 'react' +import type { HTMLAttributes, ReactNode } from 'react' import { useRouterStore } from './router.store' -import { CurrentRoute } from './router.types' +import type { CurrentRoute } from './router.types' export type RouteRendererProps = { route?: CurrentRoute diff --git a/packages/storylite/src/services/router/router.parser.ts b/packages/storylite/src/services/router/router.parser.ts index b79a96f..0e6100b 100644 --- a/packages/storylite/src/services/router/router.parser.ts +++ b/packages/storylite/src/services/router/router.parser.ts @@ -1,4 +1,4 @@ -import { ParsedUri } from './router.types' +import type { ParsedUri } from './router.types' export function parseUri(uri: string): ParsedUri { const parsedUri = new URL(uri ?? '', window.location.origin) diff --git a/packages/storylite/src/services/router/router.store.tsx b/packages/storylite/src/services/router/router.store.tsx index 566e406..28462d9 100644 --- a/packages/storylite/src/services/router/router.store.tsx +++ b/packages/storylite/src/services/router/router.store.tsx @@ -6,7 +6,7 @@ import TopFrameLayout from '@/components/layouts/TopFrameLayout' import * as Error404 from '@/pages/404' import { createStoryLiteRouter } from './createStoryLiteRouter' -import { CurrentRoute } from './router.types' +import type { CurrentRoute } from './router.types' type State = { route?: CurrentRoute diff --git a/packages/storylite/src/services/router/router.types.ts b/packages/storylite/src/services/router/router.types.ts index 7dafaf3..5c10b34 100644 --- a/packages/storylite/src/services/router/router.types.ts +++ b/packages/storylite/src/services/router/router.types.ts @@ -1,4 +1,4 @@ -import { Router } from './router.class' +import type { Router } from './router.class' export type Route = { pattern: string diff --git a/packages/storylite/src/types/components.ts b/packages/storylite/src/types/components.ts index 355aeb3..a1ec5d6 100644 --- a/packages/storylite/src/types/components.ts +++ b/packages/storylite/src/types/components.ts @@ -1,6 +1,6 @@ -import { ComponentProps } from 'react' +import type { ComponentProps } from 'react' -import { SLObject } from './core' +import type { SLObject } from './core' // Framework-agnostic component types for StoryLite diff --git a/packages/storylite/src/types/config.ts b/packages/storylite/src/types/config.ts index b7a3ada..f3dc3da 100644 --- a/packages/storylite/src/types/config.ts +++ b/packages/storylite/src/types/config.ts @@ -1,5 +1,5 @@ -import { SLNode } from './components' -import { SLUserDefinedAddons } from './ui' +import type { SLNode } from './components' +import type { SLUserDefinedAddons } from './ui' // TODO: move to vite-plugin // export type SLVitePluginConfig = { diff --git a/packages/storylite/src/types/parameters.ts b/packages/storylite/src/types/parameters.ts index 07e06de..78de8f0 100644 --- a/packages/storylite/src/types/parameters.ts +++ b/packages/storylite/src/types/parameters.ts @@ -1,5 +1,5 @@ -import { SLNativeType } from './core' -import { SLCoreAddon } from './ui' +import type { SLNativeType } from './core' +import type { SLCoreAddon } from './ui' export type SLParametersConfig = { [key: SLCoreAddon | `${SLCoreAddon}` | string]: { diff --git a/packages/storylite/src/types/story.ts b/packages/storylite/src/types/story.ts index 7784d10..e4bf5b0 100644 --- a/packages/storylite/src/types/story.ts +++ b/packages/storylite/src/types/story.ts @@ -1,5 +1,5 @@ -import { SLComponentProps, SLFunctionComponent, SLNode } from './components' -import { SLParametersConfig } from './parameters' +import type { SLComponentProps, SLFunctionComponent, SLNode } from './components' +import type { SLParametersConfig } from './parameters' export type SLStoryContext

> = { /** diff --git a/packages/storylite/src/types/ui.ts b/packages/storylite/src/types/ui.ts index 6ba7fac..ebb3a28 100644 --- a/packages/storylite/src/types/ui.ts +++ b/packages/storylite/src/types/ui.ts @@ -1,8 +1,8 @@ -import { StoryLiteParamValue, StoryLiteStore } from '@/app/stores/global.types' -import { BtnProps } from '@/components/Btn' +import type { StoryLiteParamValue, StoryLiteStore } from '@/app/stores/global.types' +import type { BtnProps } from '@/components/Btn' -import { SLNode } from './components' -import { SLNativeScalarType } from './core' +import type { SLNode } from './components' +import type { SLNativeScalarType } from './core' export enum SLCoreAddon { Grid = 'grid', diff --git a/packages/storylite/src/utility/parametersToDataProps.ts b/packages/storylite/src/utility/parametersToDataProps.ts index a3c1076..924e99a 100644 --- a/packages/storylite/src/utility/parametersToDataProps.ts +++ b/packages/storylite/src/utility/parametersToDataProps.ts @@ -1,4 +1,4 @@ -import { SLParameters } from '@/types' +import type { SLParameters } from '@/types' export function parametersToDataProps(parameters: SLParameters | undefined): { [key: `data-sl-${string}`]: any diff --git a/packages/vite-plugin/package.json b/packages/vite-plugin/package.json index da4e482..f49c055 100644 --- a/packages/vite-plugin/package.json +++ b/packages/vite-plugin/package.json @@ -44,7 +44,7 @@ "vite": "^4.4.9" }, "devDependencies": { - "@r1stack/coding-style": "^0.4.5", + "@r1stack/coding-style": "^0.5.0", "@types/node": "^20.6.1", "publint": "^0.2.2", "tsup": "^7.2.0", diff --git a/packages/vite-plugin/src/plugin.ts b/packages/vite-plugin/src/plugin.ts index 75a9991..ea5642d 100644 --- a/packages/vite-plugin/src/plugin.ts +++ b/packages/vite-plugin/src/plugin.ts @@ -1,4 +1,4 @@ -import { Plugin } from 'vite' +import type { Plugin } from 'vite' export type StoryLitePluginConfig = { stories: string diff --git a/packages/vite-plugin/src/story-collector.ts b/packages/vite-plugin/src/story-collector.ts index 8319c5d..dc7e51f 100644 --- a/packages/vite-plugin/src/story-collector.ts +++ b/packages/vite-plugin/src/story-collector.ts @@ -1,4 +1,4 @@ -import { BaseStory, BaseStoryWithId, StoryFiles, StoryFilesMap } from './types' +import type { BaseStory, BaseStoryWithId, StoryFiles, StoryFilesMap } from './types' function filenameToId(filename: string) { return ( diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 530058a..ede8aba 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -15,8 +15,8 @@ importers: specifier: ^17.7.0 version: 17.7.0 '@r1stack/coding-style': - specifier: ^0.4.5 - version: 0.4.5(@swc/core@1.3.85)(@swc/jest@0.2.29)(eslint@8.49.0)(jest@29.7.0)(prettier@3.0.3)(typescript@5.2.2) + specifier: ^0.5.0 + version: 0.5.0(@swc/core@1.3.85)(@swc/jest@0.2.29)(eslint@8.49.0)(jest@29.7.0)(prettier@3.0.3)(typescript@5.2.2) '@swc/core': specifier: ^1.3.85 version: 1.3.85 @@ -154,15 +154,15 @@ importers: packages/storylite: dependencies: '@r1stack/cn': - specifier: ^0.4.5 - version: 0.4.5 + specifier: ^0.5.0 + version: 0.5.0 zustand: specifier: ^4.4.1 version: 4.4.1(@types/react@18.2.21)(react@18.2.0) devDependencies: '@r1stack/coding-style': - specifier: ^0.4.5 - version: 0.4.5(@swc/core@1.3.85)(@swc/jest@0.2.29)(eslint@8.49.0)(jest@29.7.0)(prettier@3.0.3)(typescript@5.2.2) + specifier: ^0.5.0 + version: 0.5.0(@swc/core@1.3.85)(@swc/jest@0.2.29)(eslint@8.49.0)(jest@29.7.0)(prettier@3.0.3)(typescript@5.2.2) '@types/node': specifier: ^20.6.1 version: 20.6.1 @@ -195,8 +195,8 @@ importers: version: 4.4.9(@types/node@20.6.1) devDependencies: '@r1stack/coding-style': - specifier: ^0.4.5 - version: 0.4.5(@swc/core@1.3.85)(@swc/jest@0.2.29)(eslint@8.49.0)(jest@29.7.0)(prettier@3.0.3)(typescript@5.2.2) + specifier: ^0.5.0 + version: 0.5.0(@swc/core@1.3.85)(@swc/jest@0.2.29)(eslint@8.49.0)(jest@29.7.0)(prettier@3.0.3)(typescript@5.2.2) '@types/node': specifier: ^20.6.1 version: 20.6.1 @@ -1362,12 +1362,12 @@ packages: tslib: 2.6.2 dev: true - /@r1stack/cn@0.4.5: - resolution: {integrity: sha512-y5lxFSpHrsQ2nGsMmu4hhS75x3968g8VRhsE9Rph0F9csO7nLSocemHL1sqa5HN8BXxS7L/xU4GCQb/R6Ctj5Q==} + /@r1stack/cn@0.5.0: + resolution: {integrity: sha512-pwy8+Jh0+m3yJEx7/HoDID87E+7/ryPp2C9g9H1r5bV00dq5vGiyjIYmbErnIMe5Kszlzpl9jzWw6VHlhh7mTQ==} dev: false - /@r1stack/coding-style@0.4.5(@swc/core@1.3.85)(@swc/jest@0.2.29)(eslint@8.49.0)(jest@29.7.0)(prettier@3.0.3)(typescript@5.2.2): - resolution: {integrity: sha512-JOfz5osuM1gY5cHIRnC4Ev4wZpBK+fFE/wv6RU6z3zRN+ap82ys1iiW4Jj54IALaMImJ5bIZj36bRAz93Xjy9Q==} + /@r1stack/coding-style@0.5.0(@swc/core@1.3.85)(@swc/jest@0.2.29)(eslint@8.49.0)(jest@29.7.0)(prettier@3.0.3)(typescript@5.2.2): + resolution: {integrity: sha512-RG9CpThIWMiUrKBw44n0Ri9zYXCnN9h6u4hKbjG8kj8VnHlKH7iPVFM0bimvPuG4LYOxlGaVsmfSJbZBMbcSDQ==} peerDependencies: '@swc/core': ^1.3.74 '@swc/jest': ^0.2.28 @@ -1392,23 +1392,23 @@ packages: '@ianvs/prettier-plugin-sort-imports': 4.1.0(prettier@3.0.3) '@swc/core': 1.3.85 '@swc/jest': 0.2.29(@swc/core@1.3.85) - '@typescript-eslint/eslint-plugin': 6.7.0(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.2.2) - '@typescript-eslint/parser': 6.7.0(eslint@8.49.0)(typescript@5.2.2) + '@typescript-eslint/eslint-plugin': 6.7.2(@typescript-eslint/parser@6.7.2)(eslint@8.49.0)(typescript@5.2.2) + '@typescript-eslint/parser': 6.7.2(eslint@8.49.0)(typescript@5.2.2) eslint: 8.49.0 eslint-config-prettier: 9.0.0(eslint@8.49.0) eslint-config-react-hooks: 1.0.0 - eslint-config-turbo: 1.10.13(eslint@8.49.0) + eslint-config-turbo: 1.10.14(eslint@8.49.0) eslint-import-resolver-alias: 1.1.2(eslint-plugin-import@2.28.1) - eslint-import-resolver-typescript: 3.6.0(@typescript-eslint/parser@6.7.0)(eslint-plugin-import@2.28.1)(eslint@8.49.0) + eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/parser@6.7.2)(eslint-plugin-import@2.28.1)(eslint@8.49.0) eslint-plugin-eslint-comments: 3.2.0(eslint@8.49.0) - eslint-plugin-import: 2.28.1(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-typescript@3.6.0)(eslint@8.49.0) - eslint-plugin-jest: 27.2.3(@typescript-eslint/eslint-plugin@6.7.0)(eslint@8.49.0)(jest@29.7.0)(typescript@5.2.2) + eslint-plugin-import: 2.28.1(@typescript-eslint/parser@6.7.2)(eslint-import-resolver-typescript@3.6.1)(eslint@8.49.0) + eslint-plugin-jest: 27.4.0(@typescript-eslint/eslint-plugin@6.7.2)(eslint@8.49.0)(jest@29.7.0)(typescript@5.2.2) eslint-plugin-jsx-a11y: 6.7.1(eslint@8.49.0) - eslint-plugin-playwright: 0.16.0(eslint-plugin-jest@27.2.3)(eslint@8.49.0) + eslint-plugin-playwright: 0.16.0(eslint-plugin-jest@27.4.0)(eslint@8.49.0) eslint-plugin-prettier: 5.0.0(eslint-config-prettier@9.0.0)(eslint@8.49.0)(prettier@3.0.3) eslint-plugin-react: 7.33.2(eslint@8.49.0) eslint-plugin-react-hooks: 4.6.0(eslint@8.49.0) - eslint-plugin-testing-library: 6.0.1(eslint@8.49.0)(typescript@5.2.2) + eslint-plugin-testing-library: 6.0.2(eslint@8.49.0)(typescript@5.2.2) eslint-plugin-tsdoc: 0.2.17 eslint-plugin-unicorn: 48.0.1(eslint@8.49.0) jest: 29.7.0(@types/node@20.6.1)(ts-node@10.9.1) @@ -1852,8 +1852,8 @@ packages: '@types/yargs-parser': 21.0.0 dev: true - /@typescript-eslint/eslint-plugin@6.7.0(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.2.2): - resolution: {integrity: sha512-gUqtknHm0TDs1LhY12K2NA3Rmlmp88jK9Tx8vGZMfHeNMLE3GH2e9TRub+y+SOjuYgtOmok+wt1AyDPZqxbNag==} + /@typescript-eslint/eslint-plugin@6.7.2(@typescript-eslint/parser@6.7.2)(eslint@8.49.0)(typescript@5.2.2): + resolution: {integrity: sha512-ooaHxlmSgZTM6CHYAFRlifqh1OAr3PAQEwi7lhYhaegbnXrnh7CDcHmc3+ihhbQC7H0i4JF0psI5ehzkF6Yl6Q==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: '@typescript-eslint/parser': ^6.0.0 || ^6.0.0-alpha @@ -1864,11 +1864,11 @@ packages: optional: true dependencies: '@eslint-community/regexpp': 4.8.1 - '@typescript-eslint/parser': 6.7.0(eslint@8.49.0)(typescript@5.2.2) - '@typescript-eslint/scope-manager': 6.7.0 - '@typescript-eslint/type-utils': 6.7.0(eslint@8.49.0)(typescript@5.2.2) - '@typescript-eslint/utils': 6.7.0(eslint@8.49.0)(typescript@5.2.2) - '@typescript-eslint/visitor-keys': 6.7.0 + '@typescript-eslint/parser': 6.7.2(eslint@8.49.0)(typescript@5.2.2) + '@typescript-eslint/scope-manager': 6.7.2 + '@typescript-eslint/type-utils': 6.7.2(eslint@8.49.0)(typescript@5.2.2) + '@typescript-eslint/utils': 6.7.2(eslint@8.49.0)(typescript@5.2.2) + '@typescript-eslint/visitor-keys': 6.7.2 debug: 4.3.4 eslint: 8.49.0 graphemer: 1.4.0 @@ -1881,8 +1881,8 @@ packages: - supports-color dev: true - /@typescript-eslint/parser@6.7.0(eslint@8.49.0)(typescript@5.2.2): - resolution: {integrity: sha512-jZKYwqNpNm5kzPVP5z1JXAuxjtl2uG+5NpaMocFPTNC2EdYIgbXIPImObOkhbONxtFTTdoZstLZefbaK+wXZng==} + /@typescript-eslint/parser@6.7.2(eslint@8.49.0)(typescript@5.2.2): + resolution: {integrity: sha512-KA3E4ox0ws+SPyxQf9iSI25R6b4Ne78ORhNHeVKrPQnoYsb9UhieoiRoJgrzgEeKGOXhcY1i8YtOeCHHTDa6Fw==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1891,10 +1891,10 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/scope-manager': 6.7.0 - '@typescript-eslint/types': 6.7.0 - '@typescript-eslint/typescript-estree': 6.7.0(typescript@5.2.2) - '@typescript-eslint/visitor-keys': 6.7.0 + '@typescript-eslint/scope-manager': 6.7.2 + '@typescript-eslint/types': 6.7.2 + '@typescript-eslint/typescript-estree': 6.7.2(typescript@5.2.2) + '@typescript-eslint/visitor-keys': 6.7.2 debug: 4.3.4 eslint: 8.49.0 typescript: 5.2.2 @@ -1910,16 +1910,16 @@ packages: '@typescript-eslint/visitor-keys': 5.62.0 dev: true - /@typescript-eslint/scope-manager@6.7.0: - resolution: {integrity: sha512-lAT1Uau20lQyjoLUQ5FUMSX/dS07qux9rYd5FGzKz/Kf8W8ccuvMyldb8hadHdK/qOI7aikvQWqulnEq2nCEYA==} + /@typescript-eslint/scope-manager@6.7.2: + resolution: {integrity: sha512-bgi6plgyZjEqapr7u2mhxGR6E8WCzKNUFWNh6fkpVe9+yzRZeYtDTbsIBzKbcxI+r1qVWt6VIoMSNZ4r2A+6Yw==} engines: {node: ^16.0.0 || >=18.0.0} dependencies: - '@typescript-eslint/types': 6.7.0 - '@typescript-eslint/visitor-keys': 6.7.0 + '@typescript-eslint/types': 6.7.2 + '@typescript-eslint/visitor-keys': 6.7.2 dev: true - /@typescript-eslint/type-utils@6.7.0(eslint@8.49.0)(typescript@5.2.2): - resolution: {integrity: sha512-f/QabJgDAlpSz3qduCyQT0Fw7hHpmhOzY/Rv6zO3yO+HVIdPfIWhrQoAyG+uZVtWAIS85zAyzgAFfyEr+MgBpg==} + /@typescript-eslint/type-utils@6.7.2(eslint@8.49.0)(typescript@5.2.2): + resolution: {integrity: sha512-36F4fOYIROYRl0qj95dYKx6kybddLtsbmPIYNK0OBeXv2j9L5nZ17j9jmfy+bIDHKQgn2EZX+cofsqi8NPATBQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1928,8 +1928,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': 6.7.0(typescript@5.2.2) - '@typescript-eslint/utils': 6.7.0(eslint@8.49.0)(typescript@5.2.2) + '@typescript-eslint/typescript-estree': 6.7.2(typescript@5.2.2) + '@typescript-eslint/utils': 6.7.2(eslint@8.49.0)(typescript@5.2.2) debug: 4.3.4 eslint: 8.49.0 ts-api-utils: 1.0.3(typescript@5.2.2) @@ -1943,8 +1943,8 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /@typescript-eslint/types@6.7.0: - resolution: {integrity: sha512-ihPfvOp7pOcN/ysoj0RpBPOx3HQTJTrIN8UZK+WFd3/iDeFHHqeyYxa4hQk4rMhsz9H9mXpR61IzwlBVGXtl9Q==} + /@typescript-eslint/types@6.7.2: + resolution: {integrity: sha512-flJYwMYgnUNDAN9/GAI3l8+wTmvTYdv64fcH8aoJK76Y+1FCZ08RtI5zDerM/FYT5DMkAc+19E4aLmd5KqdFyg==} engines: {node: ^16.0.0 || >=18.0.0} dev: true @@ -1969,8 +1969,8 @@ packages: - supports-color dev: true - /@typescript-eslint/typescript-estree@6.7.0(typescript@5.2.2): - resolution: {integrity: sha512-dPvkXj3n6e9yd/0LfojNU8VMUGHWiLuBZvbM6V6QYD+2qxqInE7J+J/ieY2iGwR9ivf/R/haWGkIj04WVUeiSQ==} + /@typescript-eslint/typescript-estree@6.7.2(typescript@5.2.2): + resolution: {integrity: sha512-kiJKVMLkoSciGyFU0TOY0fRxnp9qq1AzVOHNeN1+B9erKFCJ4Z8WdjAkKQPP+b1pWStGFqezMLltxO+308dJTQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: typescript: '*' @@ -1978,8 +1978,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/types': 6.7.0 - '@typescript-eslint/visitor-keys': 6.7.0 + '@typescript-eslint/types': 6.7.2 + '@typescript-eslint/visitor-keys': 6.7.2 debug: 4.3.4 globby: 11.1.0 is-glob: 4.0.3 @@ -2010,8 +2010,8 @@ packages: - typescript dev: true - /@typescript-eslint/utils@6.7.0(eslint@8.49.0)(typescript@5.2.2): - resolution: {integrity: sha512-MfCq3cM0vh2slSikQYqK2Gq52gvOhe57vD2RM3V4gQRZYX4rDPnKLu5p6cm89+LJiGlwEXU8hkYxhqqEC/V3qA==} + /@typescript-eslint/utils@6.7.2(eslint@8.49.0)(typescript@5.2.2): + resolution: {integrity: sha512-ZCcBJug/TS6fXRTsoTkgnsvyWSiXwMNiPzBUani7hDidBdj1779qwM1FIAmpH4lvlOZNF3EScsxxuGifjpLSWQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -2019,9 +2019,9 @@ packages: '@eslint-community/eslint-utils': 4.4.0(eslint@8.49.0) '@types/json-schema': 7.0.12 '@types/semver': 7.5.2 - '@typescript-eslint/scope-manager': 6.7.0 - '@typescript-eslint/types': 6.7.0 - '@typescript-eslint/typescript-estree': 6.7.0(typescript@5.2.2) + '@typescript-eslint/scope-manager': 6.7.2 + '@typescript-eslint/types': 6.7.2 + '@typescript-eslint/typescript-estree': 6.7.2(typescript@5.2.2) eslint: 8.49.0 semver: 7.5.4 transitivePeerDependencies: @@ -2037,11 +2037,11 @@ packages: eslint-visitor-keys: 3.4.3 dev: true - /@typescript-eslint/visitor-keys@6.7.0: - resolution: {integrity: sha512-/C1RVgKFDmGMcVGeD8HjKv2bd72oI1KxQDeY8uc66gw9R0OK0eMq48cA+jv9/2Ag6cdrsUGySm1yzYmfz0hxwQ==} + /@typescript-eslint/visitor-keys@6.7.2: + resolution: {integrity: sha512-uVw9VIMFBUTz8rIeaUT3fFe8xIUx8r4ywAdlQv1ifH+6acn/XF8Y6rwJ7XNmkNMDrTW+7+vxFFPIF40nJCVsMQ==} engines: {node: ^16.0.0 || >=18.0.0} dependencies: - '@typescript-eslint/types': 6.7.0 + '@typescript-eslint/types': 6.7.2 eslint-visitor-keys: 3.4.3 dev: true @@ -3371,13 +3371,13 @@ packages: resolution: {integrity: sha512-M4hotJLA7bZUxq7alpmcNNdJnVAgLjZAI8qT/Wj6/9gEmJgjE1xmsy2+fsuxCLkQ6PKczpt6i1ihM4YYQ78pPQ==} dev: true - /eslint-config-turbo@1.10.13(eslint@8.49.0): - resolution: {integrity: sha512-Ffa0SxkRCPMtfUX/HDanEqsWoLwZTQTAXO9W4IsOtycb2MzJDrVcLmoFW5sMwCrg7gjqbrC4ZJoD+1SPPzIVqg==} + /eslint-config-turbo@1.10.14(eslint@8.49.0): + resolution: {integrity: sha512-ZeB+IcuFXy1OICkLuAplVa0euoYbhK+bMEQd0nH9+Lns18lgZRm33mVz/iSoH9VdUzl/1ZmFmoK+RpZc+8R80A==} peerDependencies: eslint: '>6.6.0' dependencies: eslint: 8.49.0 - eslint-plugin-turbo: 1.10.13(eslint@8.49.0) + eslint-plugin-turbo: 1.10.14(eslint@8.49.0) dev: true /eslint-import-resolver-alias@1.1.2(eslint-plugin-import@2.28.1): @@ -3386,7 +3386,7 @@ packages: peerDependencies: eslint-plugin-import: '>=1.4.0' dependencies: - eslint-plugin-import: 2.28.1(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-typescript@3.6.0)(eslint@8.49.0) + eslint-plugin-import: 2.28.1(@typescript-eslint/parser@6.7.2)(eslint-import-resolver-typescript@3.6.1)(eslint@8.49.0) dev: true /eslint-import-resolver-node@0.3.9: @@ -3399,8 +3399,8 @@ packages: - supports-color dev: true - /eslint-import-resolver-typescript@3.6.0(@typescript-eslint/parser@6.7.0)(eslint-plugin-import@2.28.1)(eslint@8.49.0): - resolution: {integrity: sha512-QTHR9ddNnn35RTxlaEnx2gCxqFlF2SEN0SE2d17SqwyM7YOSI2GHWRYp5BiRkObTUNYPupC/3Fq2a0PpT+EKpg==} + /eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@6.7.2)(eslint-plugin-import@2.28.1)(eslint@8.49.0): + resolution: {integrity: sha512-xgdptdoi5W3niYeuQxKmzVDTATvLYqhpwmykwsh7f6HIOStGWEIL9iqZgQDF9u9OEzrRwR8no5q2VT+bjAujTg==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: eslint: '*' @@ -3409,8 +3409,8 @@ packages: debug: 4.3.4 enhanced-resolve: 5.15.0 eslint: 8.49.0 - eslint-module-utils: 2.8.0(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.0)(eslint@8.49.0) - eslint-plugin-import: 2.28.1(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-typescript@3.6.0)(eslint@8.49.0) + eslint-module-utils: 2.8.0(@typescript-eslint/parser@6.7.2)(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1)(eslint@8.49.0) + eslint-plugin-import: 2.28.1(@typescript-eslint/parser@6.7.2)(eslint-import-resolver-typescript@3.6.1)(eslint@8.49.0) fast-glob: 3.3.1 get-tsconfig: 4.7.0 is-core-module: 2.13.0 @@ -3422,7 +3422,7 @@ packages: - supports-color dev: true - /eslint-module-utils@2.8.0(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.0)(eslint@8.49.0): + /eslint-module-utils@2.8.0(@typescript-eslint/parser@6.7.2)(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1)(eslint@8.49.0): resolution: {integrity: sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==} engines: {node: '>=4'} peerDependencies: @@ -3443,11 +3443,11 @@ packages: eslint-import-resolver-webpack: optional: true dependencies: - '@typescript-eslint/parser': 6.7.0(eslint@8.49.0)(typescript@5.2.2) + '@typescript-eslint/parser': 6.7.2(eslint@8.49.0)(typescript@5.2.2) debug: 3.2.7 eslint: 8.49.0 eslint-import-resolver-node: 0.3.9 - eslint-import-resolver-typescript: 3.6.0(@typescript-eslint/parser@6.7.0)(eslint-plugin-import@2.28.1)(eslint@8.49.0) + eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/parser@6.7.2)(eslint-plugin-import@2.28.1)(eslint@8.49.0) transitivePeerDependencies: - supports-color dev: true @@ -3463,7 +3463,7 @@ packages: ignore: 5.2.4 dev: true - /eslint-plugin-import@2.28.1(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-typescript@3.6.0)(eslint@8.49.0): + /eslint-plugin-import@2.28.1(@typescript-eslint/parser@6.7.2)(eslint-import-resolver-typescript@3.6.1)(eslint@8.49.0): resolution: {integrity: sha512-9I9hFlITvOV55alzoKBI+K9q74kv0iKMeY6av5+umsNwayt59fz692daGyjR+oStBQgx6nwR9rXldDev3Clw+A==} engines: {node: '>=4'} peerDependencies: @@ -3473,7 +3473,7 @@ packages: '@typescript-eslint/parser': optional: true dependencies: - '@typescript-eslint/parser': 6.7.0(eslint@8.49.0)(typescript@5.2.2) + '@typescript-eslint/parser': 6.7.2(eslint@8.49.0)(typescript@5.2.2) array-includes: 3.1.7 array.prototype.findlastindex: 1.2.3 array.prototype.flat: 1.3.2 @@ -3482,7 +3482,7 @@ packages: doctrine: 2.1.0 eslint: 8.49.0 eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.8.0(@typescript-eslint/parser@6.7.0)(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.0)(eslint@8.49.0) + eslint-module-utils: 2.8.0(@typescript-eslint/parser@6.7.2)(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1)(eslint@8.49.0) has: 1.0.3 is-core-module: 2.13.0 is-glob: 4.0.3 @@ -3498,8 +3498,8 @@ packages: - supports-color dev: true - /eslint-plugin-jest@27.2.3(@typescript-eslint/eslint-plugin@6.7.0)(eslint@8.49.0)(jest@29.7.0)(typescript@5.2.2): - resolution: {integrity: sha512-sRLlSCpICzWuje66Gl9zvdF6mwD5X86I4u55hJyFBsxYOsBCmT5+kSUjf+fkFWVMMgpzNEupjW8WzUqi83hJAQ==} + /eslint-plugin-jest@27.4.0(@typescript-eslint/eslint-plugin@6.7.2)(eslint@8.49.0)(jest@29.7.0)(typescript@5.2.2): + resolution: {integrity: sha512-ukVeKmMPAUA5SWjHenvyyXnirKfHKMdOsTZdn5tZx5EW05HGVQwBohigjFZGGj3zuv1cV6hc82FvWv6LdIbkgg==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: '@typescript-eslint/eslint-plugin': ^5.0.0 || ^6.0.0 @@ -3511,7 +3511,7 @@ packages: jest: optional: true dependencies: - '@typescript-eslint/eslint-plugin': 6.7.0(@typescript-eslint/parser@6.7.0)(eslint@8.49.0)(typescript@5.2.2) + '@typescript-eslint/eslint-plugin': 6.7.2(@typescript-eslint/parser@6.7.2)(eslint@8.49.0)(typescript@5.2.2) '@typescript-eslint/utils': 5.62.0(eslint@8.49.0)(typescript@5.2.2) eslint: 8.49.0 jest: 29.7.0(@types/node@20.6.1)(ts-node@10.9.1) @@ -3545,7 +3545,7 @@ packages: semver: 6.3.1 dev: true - /eslint-plugin-playwright@0.16.0(eslint-plugin-jest@27.2.3)(eslint@8.49.0): + /eslint-plugin-playwright@0.16.0(eslint-plugin-jest@27.4.0)(eslint@8.49.0): resolution: {integrity: sha512-DcHpF0SLbNeh9MT4pMzUGuUSnJ7q5MWbP8sSEFIMS6j7Ggnduq8ghNlfhURgty4c1YFny7Ge9xYTO1FSAoV2Vw==} peerDependencies: eslint: '>=7' @@ -3555,7 +3555,7 @@ packages: optional: true dependencies: eslint: 8.49.0 - eslint-plugin-jest: 27.2.3(@typescript-eslint/eslint-plugin@6.7.0)(eslint@8.49.0)(jest@29.7.0)(typescript@5.2.2) + eslint-plugin-jest: 27.4.0(@typescript-eslint/eslint-plugin@6.7.2)(eslint@8.49.0)(jest@29.7.0)(typescript@5.2.2) dev: true /eslint-plugin-prettier@5.0.0(eslint-config-prettier@9.0.0)(eslint@8.49.0)(prettier@3.0.3): @@ -3613,8 +3613,8 @@ packages: string.prototype.matchall: 4.0.10 dev: true - /eslint-plugin-testing-library@6.0.1(eslint@8.49.0)(typescript@5.2.2): - resolution: {integrity: sha512-CEYtjpcF3hAaQtYsTZqciR7s5z+T0LCMTwJeW+pz6kBnGtc866wAKmhaiK2Gsjc2jWNP7Gt6zhNr2DE1ZW4e+g==} + /eslint-plugin-testing-library@6.0.2(eslint@8.49.0)(typescript@5.2.2): + resolution: {integrity: sha512-3BV6FWtLbpKFb4Y1obSdt8PC9xSqz6T+7EHB/6pSCXqVjKPoS67ck903feKMKQphd5VhrX+N51yHuVaPa7elsw==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0, npm: '>=6'} peerDependencies: eslint: ^7.5.0 || ^8.0.0 @@ -3633,8 +3633,8 @@ packages: '@microsoft/tsdoc-config': 0.16.2 dev: true - /eslint-plugin-turbo@1.10.13(eslint@8.49.0): - resolution: {integrity: sha512-el4AAmn0zXmvHEyp1h0IQMfse10Vy8g5Vbg4IU3+vD9CSj5sDbX07iFVt8sCKg7og9Q5FAa9mXzlCf7t4vYgzg==} + /eslint-plugin-turbo@1.10.14(eslint@8.49.0): + resolution: {integrity: sha512-sBdBDnYr9AjT1g4lR3PBkZDonTrMnR4TvuGv5W0OiF7z9az1rI68yj2UHJZvjkwwcGu5mazWA1AfB0oaagpmfg==} peerDependencies: eslint: '>6.6.0' dependencies: