From e3b0918dd9b476b351b5e0b58feac0e5af22047f Mon Sep 17 00:00:00 2001 From: yyh <92089059+lyzno1@users.noreply.github.com> Date: Sat, 17 Jan 2026 17:29:13 +0800 Subject: [PATCH 01/62] test(web): add global zustand mock for tests (#31149) --- web/__mocks__/zustand.ts | 56 +++++++++++++++++++ .../access-control.spec.tsx | 21 ------- .../filter-management/index.spec.tsx | 11 ---- .../plugins/readme-panel/index.spec.tsx | 18 ------ web/tsconfig.json | 2 +- web/vitest.setup.ts | 4 ++ 6 files changed, 61 insertions(+), 51 deletions(-) create mode 100644 web/__mocks__/zustand.ts diff --git a/web/__mocks__/zustand.ts b/web/__mocks__/zustand.ts new file mode 100644 index 0000000000..7255e5ef86 --- /dev/null +++ b/web/__mocks__/zustand.ts @@ -0,0 +1,56 @@ +import type * as ZustandExportedTypes from 'zustand' +import { act } from '@testing-library/react' + +export * from 'zustand' + +const { create: actualCreate, createStore: actualCreateStore } + // eslint-disable-next-line antfu/no-top-level-await + = await vi.importActual('zustand') + +export const storeResetFns = new Set<() => void>() + +const createUncurried = ( + stateCreator: ZustandExportedTypes.StateCreator, +) => { + const store = actualCreate(stateCreator) + const initialState = store.getInitialState() + storeResetFns.add(() => { + store.setState(initialState, true) + }) + return store +} + +export const create = (( + stateCreator: ZustandExportedTypes.StateCreator, +) => { + return typeof stateCreator === 'function' + ? createUncurried(stateCreator) + : createUncurried +}) as typeof ZustandExportedTypes.create + +const createStoreUncurried = ( + stateCreator: ZustandExportedTypes.StateCreator, +) => { + const store = actualCreateStore(stateCreator) + const initialState = store.getInitialState() + storeResetFns.add(() => { + store.setState(initialState, true) + }) + return store +} + +export const createStore = (( + stateCreator: ZustandExportedTypes.StateCreator, +) => { + return typeof stateCreator === 'function' + ? createStoreUncurried(stateCreator) + : createStoreUncurried +}) as typeof ZustandExportedTypes.createStore + +afterEach(() => { + act(() => { + storeResetFns.forEach((resetFn) => { + resetFn() + }) + }) +}) diff --git a/web/app/components/app/app-access-control/access-control.spec.tsx b/web/app/components/app/app-access-control/access-control.spec.tsx index b73ed5c266..3950bdf7ee 100644 --- a/web/app/components/app/app-access-control/access-control.spec.tsx +++ b/web/app/components/app/app-access-control/access-control.spec.tsx @@ -3,9 +3,7 @@ import type { App } from '@/types/app' import { fireEvent, render, screen, waitFor } from '@testing-library/react' import userEvent from '@testing-library/user-event' import useAccessControlStore from '@/context/access-control-store' -import { useGlobalPublicStore } from '@/context/global-public-context' import { AccessMode, SubjectType } from '@/models/access-control' -import { defaultSystemFeatures } from '@/types/feature' import Toast from '../../base/toast' import AccessControlDialog from './access-control-dialog' import AccessControlItem from './access-control-item' @@ -105,22 +103,6 @@ const memberSubject: Subject = { accountData: baseMember, } as Subject -const resetAccessControlStore = () => { - useAccessControlStore.setState({ - appId: '', - specificGroups: [], - specificMembers: [], - currentMenu: AccessMode.SPECIFIC_GROUPS_MEMBERS, - selectedGroupsForBreadcrumb: [], - }) -} - -const resetGlobalStore = () => { - useGlobalPublicStore.setState({ - systemFeatures: defaultSystemFeatures, - }) -} - beforeAll(() => { class MockIntersectionObserver { observe = vi.fn(() => undefined) @@ -132,9 +114,6 @@ beforeAll(() => { }) beforeEach(() => { - vi.clearAllMocks() - resetAccessControlStore() - resetGlobalStore() mockMutateAsync.mockResolvedValue(undefined) mockUseUpdateAccessMode.mockReturnValue({ isPending: false, diff --git a/web/app/components/plugins/plugin-page/filter-management/index.spec.tsx b/web/app/components/plugins/plugin-page/filter-management/index.spec.tsx index 58474b4723..b942a360b0 100644 --- a/web/app/components/plugins/plugin-page/filter-management/index.spec.tsx +++ b/web/app/components/plugins/plugin-page/filter-management/index.spec.tsx @@ -144,17 +144,6 @@ describe('constant.ts - Type Definitions', () => { // ==================== store.ts Tests ==================== describe('store.ts - Zustand Store', () => { - beforeEach(() => { - // Reset store to initial state - const { setState } = useStore - setState({ - tagList: [], - categoryList: [], - showTagManagementModal: false, - showCategoryManagementModal: false, - }) - }) - describe('Initial State', () => { it('should have empty tagList initially', () => { const { result } = renderHook(() => useStore(state => state.tagList)) diff --git a/web/app/components/plugins/readme-panel/index.spec.tsx b/web/app/components/plugins/readme-panel/index.spec.tsx index 8d795eac10..5de18c2ed9 100644 --- a/web/app/components/plugins/readme-panel/index.spec.tsx +++ b/web/app/components/plugins/readme-panel/index.spec.tsx @@ -134,13 +134,6 @@ describe('BUILTIN_TOOLS_ARRAY', () => { // Store Tests // ================================ describe('useReadmePanelStore', () => { - beforeEach(() => { - vi.clearAllMocks() - // Reset store state before each test - const { setCurrentPluginDetail } = useReadmePanelStore.getState() - setCurrentPluginDetail() - }) - describe('Initial State', () => { it('should have undefined currentPluginDetail initially', () => { const { currentPluginDetail } = useReadmePanelStore.getState() @@ -228,12 +221,6 @@ describe('useReadmePanelStore', () => { // ReadmeEntrance Component Tests // ================================ describe('ReadmeEntrance', () => { - beforeEach(() => { - vi.clearAllMocks() - // Reset store state - const { setCurrentPluginDetail } = useReadmePanelStore.getState() - setCurrentPluginDetail() - }) // ================================ // Rendering Tests @@ -417,11 +404,6 @@ describe('ReadmeEntrance', () => { // ================================ describe('ReadmePanel', () => { beforeEach(() => { - vi.clearAllMocks() - // Reset store state - const { setCurrentPluginDetail } = useReadmePanelStore.getState() - setCurrentPluginDetail() - // Reset mock mockUsePluginReadme.mockReturnValue({ data: null, isLoading: false, diff --git a/web/tsconfig.json b/web/tsconfig.json index 78c5930aa2..c7aa998644 100644 --- a/web/tsconfig.json +++ b/web/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "incremental": true, - "target": "es2015", + "target": "es2022", "jsx": "preserve", "lib": [ "dom", diff --git a/web/vitest.setup.ts b/web/vitest.setup.ts index 26dc25bbcf..597ded9559 100644 --- a/web/vitest.setup.ts +++ b/web/vitest.setup.ts @@ -85,6 +85,10 @@ afterEach(() => { // mock next/image to avoid width/height requirements for data URLs vi.mock('next/image') +// mock zustand - auto-resets all stores after each test +// Based on official Zustand testing guide: https://zustand.docs.pmnd.rs/guides/testing +vi.mock('zustand') + // mock react-i18next vi.mock('react-i18next', async () => { const actual = await vi.importActual('react-i18next') From 77366f33a4be9a23fcc3e246653bdcb2de11074c Mon Sep 17 00:00:00 2001 From: Pegasus <42954461+leonace924@users.noreply.github.com> Date: Sat, 17 Jan 2026 04:36:07 -0500 Subject: [PATCH 02/62] feat(web): add loading indicators for infinite scroll pagination (#31110) Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Co-authored-by: Stephen Zhou <38493346+hyoban@users.noreply.github.com> --- .../dataset-config/select-dataset/index.tsx | 1 + web/app/components/apps/app-card-skeleton.tsx | 10 +++++----- web/app/components/apps/list.tsx | 3 +++ web/app/components/base/loading/index.tsx | 17 +++++++++++------ web/app/components/datasets/list/datasets.tsx | 3 +++ web/app/components/header/app-nav/index.tsx | 2 ++ web/app/components/header/dataset-nav/index.tsx | 2 ++ web/app/components/header/nav/index.tsx | 2 ++ .../header/nav/nav-selector/index.tsx | 9 ++++++++- .../plugins/marketplace/list/list-wrapper.tsx | 6 ++++++ web/app/components/plugins/marketplace/state.ts | 3 ++- .../plugins/plugin-page/plugins-panel.tsx | 17 +++++++++++------ 12 files changed, 56 insertions(+), 19 deletions(-) diff --git a/web/app/components/app/configuration/dataset-config/select-dataset/index.tsx b/web/app/components/app/configuration/dataset-config/select-dataset/index.tsx index b60f6797bf..36d78920fa 100644 --- a/web/app/components/app/configuration/dataset-config/select-dataset/index.tsx +++ b/web/app/components/app/configuration/dataset-config/select-dataset/index.tsx @@ -189,6 +189,7 @@ const SelectDataSet: FC = ({ } ))} + {isFetchingNextPage && } )} diff --git a/web/app/components/apps/app-card-skeleton.tsx b/web/app/components/apps/app-card-skeleton.tsx index 806f19973a..5fc41f76ab 100644 --- a/web/app/components/apps/app-card-skeleton.tsx +++ b/web/app/components/apps/app-card-skeleton.tsx @@ -21,15 +21,15 @@ export const AppCardSkeleton = React.memo(({ count = 6 }: AppCardSkeletonProps) > - +
- - + +
- - + +
diff --git a/web/app/components/apps/list.tsx b/web/app/components/apps/list.tsx index 84150ad480..8a236fe260 100644 --- a/web/app/components/apps/list.tsx +++ b/web/app/components/apps/list.tsx @@ -248,6 +248,9 @@ const List = () => { // No apps - show empty state return })()} + {isFetchingNextPage && ( + + )} {isCurrentWorkspaceEditor && ( diff --git a/web/app/components/base/loading/index.tsx b/web/app/components/base/loading/index.tsx index 0f0cc9f24e..a946edf36c 100644 --- a/web/app/components/base/loading/index.tsx +++ b/web/app/components/base/loading/index.tsx @@ -1,21 +1,25 @@ 'use client' -import * as React from 'react' import { useTranslation } from 'react-i18next' - +import { cn } from '@/utils/classnames' import './style.css' type ILoadingProps = { type?: 'area' | 'app' + className?: string } -const Loading = ( - { type = 'area' }: ILoadingProps = { type: 'area' }, -) => { + +const Loading = (props?: ILoadingProps) => { + const { type = 'area', className } = props || {} const { t } = useTranslation() return (
) } + export default Loading diff --git a/web/app/components/datasets/list/datasets.tsx b/web/app/components/datasets/list/datasets.tsx index 44b6553750..817b927e6b 100644 --- a/web/app/components/datasets/list/datasets.tsx +++ b/web/app/components/datasets/list/datasets.tsx @@ -2,6 +2,7 @@ import { useEffect, useRef } from 'react' import { useTranslation } from 'react-i18next' +import Loading from '@/app/components/base/loading' import { useSelector as useAppContextWithSelector } from '@/context/app-context' import { useDatasetList, useInvalidDatasetList } from '@/service/knowledge/use-dataset' import DatasetCard from './dataset-card' @@ -25,6 +26,7 @@ const Datasets = ({ fetchNextPage, hasNextPage, isFetching, + isFetchingNextPage, } = useDatasetList({ initialPage: 1, tag_ids: tags, @@ -60,6 +62,7 @@ const Datasets = ({ {datasetList?.pages.map(({ data: datasets }) => datasets.map(dataset => ( ), ))} + {isFetchingNextPage && }
diff --git a/web/app/components/header/app-nav/index.tsx b/web/app/components/header/app-nav/index.tsx index cc4f32a7ca..737dd96bab 100644 --- a/web/app/components/header/app-nav/index.tsx +++ b/web/app/components/header/app-nav/index.tsx @@ -33,6 +33,7 @@ const AppNav = () => { data: appsData, fetchNextPage, hasNextPage, + isFetchingNextPage, refetch, } = useInfiniteAppList({ page: 1, @@ -111,6 +112,7 @@ const AppNav = () => { createText={t('menus.newApp', { ns: 'common' })} onCreate={openModal} onLoadMore={handleLoadMore} + isLoadingMore={isFetchingNextPage} /> { data: datasetList, fetchNextPage, hasNextPage, + isFetchingNextPage, } = useDatasetList({ initialPage: 1, limit: 30, @@ -93,6 +94,7 @@ const DatasetNav = () => { createText={t('menus.newDataset', { ns: 'common' })} onCreate={() => router.push(createRoute)} onLoadMore={handleLoadMore} + isLoadingMore={isFetchingNextPage} /> ) } diff --git a/web/app/components/header/nav/index.tsx b/web/app/components/header/nav/index.tsx index 2edc64486e..ca4498e4fb 100644 --- a/web/app/components/header/nav/index.tsx +++ b/web/app/components/header/nav/index.tsx @@ -30,6 +30,7 @@ const Nav = ({ createText, onCreate, onLoadMore, + isLoadingMore, isApp, }: INavProps) => { const setAppDetail = useAppStore(state => state.setAppDetail) @@ -81,6 +82,7 @@ const Nav = ({ createText={createText} onCreate={onCreate} onLoadMore={onLoadMore} + isLoadingMore={isLoadingMore} /> ) diff --git a/web/app/components/header/nav/nav-selector/index.tsx b/web/app/components/header/nav/nav-selector/index.tsx index 178cba2f28..e66837c06c 100644 --- a/web/app/components/header/nav/nav-selector/index.tsx +++ b/web/app/components/header/nav/nav-selector/index.tsx @@ -14,6 +14,7 @@ import { useStore as useAppStore } from '@/app/components/app/store' import { AppTypeIcon } from '@/app/components/app/type-selector' import AppIcon from '@/app/components/base/app-icon' import { FileArrow01, FilePlus01, FilePlus02 } from '@/app/components/base/icons/src/vender/line/files' +import Loading from '@/app/components/base/loading' import { useAppContext } from '@/context/app-context' import { cn } from '@/utils/classnames' @@ -34,9 +35,10 @@ export type INavSelectorProps = { isApp?: boolean onCreate: (state: string) => void onLoadMore?: () => void + isLoadingMore?: boolean } -const NavSelector = ({ curNav, navigationItems, createText, isApp, onCreate, onLoadMore }: INavSelectorProps) => { +const NavSelector = ({ curNav, navigationItems, createText, isApp, onCreate, onLoadMore, isLoadingMore }: INavSelectorProps) => { const { t } = useTranslation() const router = useRouter() const { isCurrentWorkspaceEditor } = useAppContext() @@ -106,6 +108,11 @@ const NavSelector = ({ curNav, navigationItems, createText, isApp, onCreate, onL )) } + {isLoadingMore && ( +
+ +
+ )}
{!isApp && isCurrentWorkspaceEditor && ( diff --git a/web/app/components/plugins/marketplace/list/list-wrapper.tsx b/web/app/components/plugins/marketplace/list/list-wrapper.tsx index a1b0c2529a..950b73ddbd 100644 --- a/web/app/components/plugins/marketplace/list/list-wrapper.tsx +++ b/web/app/components/plugins/marketplace/list/list-wrapper.tsx @@ -19,6 +19,7 @@ const ListWrapper = ({ marketplaceCollections, marketplaceCollectionPluginsMap, isLoading, + isFetchingNextPage, page, } = useMarketplaceData() @@ -53,6 +54,11 @@ const ListWrapper = ({ /> ) } + { + isFetchingNextPage && ( + + ) + }
) } diff --git a/web/app/components/plugins/marketplace/state.ts b/web/app/components/plugins/marketplace/state.ts index 9c76a21e92..4954acd60c 100644 --- a/web/app/components/plugins/marketplace/state.ts +++ b/web/app/components/plugins/marketplace/state.ts @@ -33,7 +33,7 @@ export function useMarketplaceData() { }, [isSearchMode, searchPluginText, activePluginType, filterPluginTags, sort]) const pluginsQuery = useMarketplacePlugins(queryParams) - const { hasNextPage, fetchNextPage, isFetching } = pluginsQuery + const { hasNextPage, fetchNextPage, isFetching, isFetchingNextPage } = pluginsQuery const handlePageChange = useCallback(() => { if (hasNextPage && !isFetching) @@ -50,5 +50,6 @@ export function useMarketplaceData() { pluginsTotal: pluginsQuery.data?.pages[0]?.total, page: pluginsQuery.data?.pages.length || 1, isLoading: collectionsQuery.isLoading || pluginsQuery.isLoading, + isFetchingNextPage, } } diff --git a/web/app/components/plugins/plugin-page/plugins-panel.tsx b/web/app/components/plugins/plugin-page/plugins-panel.tsx index ff765d39ab..d2ba8b2363 100644 --- a/web/app/components/plugins/plugin-page/plugins-panel.tsx +++ b/web/app/components/plugins/plugin-page/plugins-panel.tsx @@ -5,11 +5,11 @@ import { useDebounceFn } from 'ahooks' import { useMemo } from 'react' import { useTranslation } from 'react-i18next' import Button from '@/app/components/base/button' +import Loading from '@/app/components/base/loading' import PluginDetailPanel from '@/app/components/plugins/plugin-detail-panel' import { useGetLanguage } from '@/context/i18n' import { renderI18nObject } from '@/i18n-config' import { useInstalledLatestVersion, useInstalledPluginList, useInvalidateInstalledPluginList } from '@/service/use-plugins' -import Loading from '../../base/loading' import { PluginSource } from '../types' import { usePluginPageContext } from './context' import Empty from './empty' @@ -107,12 +107,17 @@ const PluginsPanel = () => {
- {!isLastPage && !isFetching && ( - + {!isLastPage && ( +
+ {isFetching + ? + : ( + + )} +
)} - {isFetching &&
{t('detail.loading', { ns: 'appLog' })}
} ) : ( From 7b66bbc35a6f3c29f0942c30ce583ae78dfcc6c2 Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Sat, 17 Jan 2026 19:51:56 +0800 Subject: [PATCH 03/62] chore: introduce bulk-suppressions and multithread linting (#31157) --- .github/workflows/style.yml | 10 +- .github/workflows/web-tests.yml | 45 + .../plugins/readme-panel/index.spec.tsx | 1 - web/eslint-suppressions.json | 5107 +++++++++++++++++ web/eslint.config.mjs | 78 +- web/package.json | 1 + 6 files changed, 5177 insertions(+), 65 deletions(-) create mode 100644 web/eslint-suppressions.json diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml index 86b66bf9df..debf4ba648 100644 --- a/.github/workflows/style.yml +++ b/.github/workflows/style.yml @@ -106,8 +106,9 @@ jobs: if: steps.changed-files.outputs.any_changed == 'true' working-directory: ./web run: | - pnpm run lint:report - continue-on-error: true + pnpm run lint:ci + # pnpm run lint:report + # continue-on-error: true # - name: Annotate Code # if: steps.changed-files.outputs.any_changed == 'true' && github.event_name == 'pull_request' @@ -126,11 +127,6 @@ jobs: working-directory: ./web run: pnpm run knip - - name: Web build check - if: steps.changed-files.outputs.any_changed == 'true' - working-directory: ./web - run: pnpm run build - superlinter: name: SuperLinter runs-on: ubuntu-latest diff --git a/.github/workflows/web-tests.yml b/.github/workflows/web-tests.yml index 65c958a453..191ce56aaa 100644 --- a/.github/workflows/web-tests.yml +++ b/.github/workflows/web-tests.yml @@ -366,3 +366,48 @@ jobs: path: web/coverage retention-days: 30 if-no-files-found: error + + web-build: + name: Web Build + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./web + + steps: + - name: Checkout code + uses: actions/checkout@v6 + with: + persist-credentials: false + + - name: Check changed files + id: changed-files + uses: tj-actions/changed-files@v47 + with: + files: | + web/** + .github/workflows/web-tests.yml + + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + package_json_file: web/package.json + run_install: false + + - name: Setup NodeJS + uses: actions/setup-node@v6 + if: steps.changed-files.outputs.any_changed == 'true' + with: + node-version: 24 + cache: pnpm + cache-dependency-path: ./web/pnpm-lock.yaml + + - name: Web dependencies + if: steps.changed-files.outputs.any_changed == 'true' + working-directory: ./web + run: pnpm install --frozen-lockfile + + - name: Web build check + if: steps.changed-files.outputs.any_changed == 'true' + working-directory: ./web + run: pnpm run build diff --git a/web/app/components/plugins/readme-panel/index.spec.tsx b/web/app/components/plugins/readme-panel/index.spec.tsx index 5de18c2ed9..d636b18d71 100644 --- a/web/app/components/plugins/readme-panel/index.spec.tsx +++ b/web/app/components/plugins/readme-panel/index.spec.tsx @@ -221,7 +221,6 @@ describe('useReadmePanelStore', () => { // ReadmeEntrance Component Tests // ================================ describe('ReadmeEntrance', () => { - // ================================ // Rendering Tests // ================================ diff --git a/web/eslint-suppressions.json b/web/eslint-suppressions.json new file mode 100644 index 0000000000..b043a2d951 --- /dev/null +++ b/web/eslint-suppressions.json @@ -0,0 +1,5107 @@ +{ + "__tests__/check-i18n.test.ts": { + "regexp/no-unused-capturing-group": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 2 + } + }, + "__tests__/document-detail-navigation-fix.test.tsx": { + "no-console": { + "count": 10 + } + }, + "__tests__/document-list-sorting.test.tsx": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "__tests__/embedded-user-id-auth.test.tsx": { + "ts/no-explicit-any": { + "count": 8 + } + }, + "__tests__/embedded-user-id-store.test.tsx": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "__tests__/goto-anything/command-selector.test.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "__tests__/goto-anything/slash-command-modes.test.tsx": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "__tests__/i18n-upload-features.test.ts": { + "no-console": { + "count": 3 + } + }, + "__tests__/navigation-utils.test.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "__tests__/plugin-tool-workflow-error.test.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "__tests__/real-browser-flicker.test.tsx": { + "no-console": { + "count": 16 + }, + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 4 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "__tests__/unified-tags-logic.test.ts": { + "ts/no-explicit-any": { + "count": 8 + } + }, + "__tests__/workflow-onboarding-integration.test.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/(commonLayout)/app/(appDetailLayout)/[appId]/layout-main.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/time-range-picker/range-selector.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + } + }, + "app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/__tests__/svg-attribute-error-reproduction.spec.tsx": { + "no-console": { + "count": 19 + }, + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/provider-panel.tsx": { + "react-hooks/static-components": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/(commonLayout)/datasets/(datasetDetailLayout)/[datasetId]/layout-main.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/(shareLayout)/components/splash.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/(shareLayout)/webapp-reset-password/layout.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/(shareLayout)/webapp-signin/components/mail-and-password-auth.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/account/(commonLayout)/account-page/email-change-modal.tsx": { + "ts/no-explicit-any": { + "count": 5 + } + }, + "app/account/(commonLayout)/account-page/index.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/account/(commonLayout)/delete-account/components/feed-back.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + } + }, + "app/account/(commonLayout)/delete-account/components/verify-email.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/account/oauth/authorize/layout.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/account/oauth/authorize/page.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/app-sidebar/app-info.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/app-sidebar/app-operations.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 4 + } + }, + "app/components/app-sidebar/dataset-info/dropdown.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/app-sidebar/index.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/app-sidebar/navLink.spec.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/app-sidebar/sidebar-animation-issues.spec.tsx": { + "no-console": { + "count": 26 + } + }, + "app/components/app-sidebar/text-squeeze-fix-verification.spec.tsx": { + "no-console": { + "count": 51 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/app/annotation/batch-add-annotation-modal/csv-downloader.spec.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/app/annotation/batch-add-annotation-modal/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/app/annotation/edit-annotation-modal/edit-item/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/app/annotation/edit-annotation-modal/index.spec.tsx": { + "test/prefer-hooks-in-order": { + "count": 1 + } + }, + "app/components/app/annotation/header-opts/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/app/annotation/header-opts/index.tsx": { + "react/no-nested-component-definitions": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/app/annotation/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 7 + } + }, + "app/components/app/annotation/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 5 + } + }, + "app/components/app/annotation/view-annotation-modal/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 5 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/app/app-access-control/access-control.spec.tsx": { + "ts/no-explicit-any": { + "count": 7 + } + }, + "app/components/app/app-publisher/features-wrapper.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 19 + }, + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/app/app-publisher/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 3 + }, + "ts/no-explicit-any": { + "count": 6 + } + }, + "app/components/app/configuration/config-prompt/advanced-prompt-input.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/app/configuration/config-prompt/conversation-history/edit-modal.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/app/configuration/config-prompt/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/app/configuration/config-prompt/prompt-editor-height-resize-wrap.tsx": { + "react-hooks/use-memo": { + "count": 1 + } + }, + "app/components/app/configuration/config-prompt/simple-prompt-input.tsx": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/app/configuration/config-var/config-modal/index.tsx": { + "ts/no-explicit-any": { + "count": 6 + } + }, + "app/components/app/configuration/config-var/select-var-type.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/app/configuration/config-vision/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/app/configuration/config/agent-setting-button.spec.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/app/configuration/config/agent/agent-setting/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/app/configuration/config/agent/agent-tools/index.spec.tsx": { + "react-hooks/globals": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 5 + } + }, + "app/components/app/configuration/config/agent/agent-tools/index.tsx": { + "ts/no-explicit-any": { + "count": 9 + } + }, + "app/components/app/configuration/config/agent/agent-tools/setting-built-in-tool.spec.tsx": { + "ts/no-explicit-any": { + "count": 5 + } + }, + "app/components/app/configuration/config/agent/agent-tools/setting-built-in-tool.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/app/configuration/config/assistant-type-picker/index.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/app/configuration/config/automatic/get-automatic-res.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 4 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/app/configuration/config/automatic/instruction-editor.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/app/configuration/config/automatic/prompt-res-in-workflow.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/app/configuration/config/automatic/prompt-res.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/app/configuration/config/automatic/version-selector.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + } + }, + "app/components/app/configuration/config/code-generator/get-code-generator-res.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 4 + }, + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/app/configuration/config/config-audio.spec.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/app/configuration/config/config-document.spec.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/app/configuration/config/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 6 + } + }, + "app/components/app/configuration/dataset-config/card-item/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/app/configuration/dataset-config/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 37 + } + }, + "app/components/app/configuration/dataset-config/index.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/app/configuration/dataset-config/params-config/config-content.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + } + }, + "app/components/app/configuration/dataset-config/params-config/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/app/configuration/dataset-config/select-dataset/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/app/configuration/dataset-config/select-dataset/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 2 + } + }, + "app/components/app/configuration/dataset-config/settings-modal/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/app/configuration/dataset-config/settings-modal/retrieval-section.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/app/configuration/debug/debug-with-multiple-model/chat-item.tsx": { + "ts/no-explicit-any": { + "count": 6 + } + }, + "app/components/app/configuration/debug/debug-with-multiple-model/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 5 + } + }, + "app/components/app/configuration/debug/debug-with-multiple-model/index.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/app/configuration/debug/debug-with-multiple-model/text-generation-item.tsx": { + "ts/no-explicit-any": { + "count": 8 + } + }, + "app/components/app/configuration/debug/debug-with-single-model/index.spec.tsx": { + "react/no-create-ref": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/app/configuration/debug/debug-with-single-model/index.tsx": { + "ts/no-explicit-any": { + "count": 5 + } + }, + "app/components/app/configuration/debug/hooks.tsx": { + "react-hooks/refs": { + "count": 7 + }, + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/app/configuration/debug/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 11 + } + }, + "app/components/app/configuration/debug/types.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/app/configuration/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + }, + "style/multiline-ternary": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 24 + } + }, + "app/components/app/configuration/prompt-value-panel/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/app/configuration/prompt-value-panel/utils.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/app/configuration/tools/external-data-tool-modal.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/app/create-app-dialog/app-card/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/app/create-app-dialog/app-list/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/app/create-app-modal/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 7 + } + }, + "app/components/app/create-app-modal/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/app/create-from-dsl-modal/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 2 + } + }, + "app/components/app/log/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/app/log/list.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 6 + }, + "react-hooks/refs": { + "count": 2 + }, + "style/multiline-ternary": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 14 + } + }, + "app/components/app/log/model-info.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/app/overview/__tests__/toggle-logic.test.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/app/overview/app-card.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 3 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/app/overview/app-chart.tsx": { + "ts/no-explicit-any": { + "count": 13 + } + }, + "app/components/app/overview/embedded/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/app/overview/settings/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 3 + }, + "regexp/no-unused-capturing-group": { + "count": 1 + } + }, + "app/components/app/overview/trigger-card.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/app/switch-app-modal/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/app/switch-app-modal/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/app/text-generate/item/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 3 + }, + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/app/text-generate/item/result-tab.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/app/workflow-log/list.spec.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/app/workflow-log/list.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 2 + } + }, + "app/components/app/workflow-log/trigger-by-display.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/apps/app-card.spec.tsx": { + "ts/no-explicit-any": { + "count": 22 + } + }, + "app/components/apps/app-card.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + }, + "react/no-nested-component-definitions": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/apps/list.spec.tsx": { + "ts/no-explicit-any": { + "count": 9 + } + }, + "app/components/apps/list.tsx": { + "unused-imports/no-unused-vars": { + "count": 1 + } + }, + "app/components/apps/new-app-card.spec.tsx": { + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/apps/new-app-card.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/agent-log-modal/detail.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/agent-log-modal/index.stories.tsx": { + "no-console": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/agent-log-modal/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/base/agent-log-modal/result.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/base/agent-log-modal/tool-call.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/base/amplitude/utils.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/base/app-icon-picker/ImageInput.tsx": { + "react/no-create-ref": { + "count": 1 + } + }, + "app/components/base/audio-btn/audio.ts": { + "node/prefer-global/buffer": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/base/audio-gallery/AudioPlayer.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/base/auto-height-textarea/index.stories.tsx": { + "no-console": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/avatar/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/base/block-input/index.stories.tsx": { + "no-console": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/block-input/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + }, + "react/no-nested-component-definitions": { + "count": 1 + } + }, + "app/components/base/button/add-button.stories.tsx": { + "no-console": { + "count": 1 + } + }, + "app/components/base/button/sync-button.stories.tsx": { + "no-console": { + "count": 1 + } + }, + "app/components/base/chat/chat-with-history/chat-wrapper.tsx": { + "react-hooks/refs": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 6 + } + }, + "app/components/base/chat/chat-with-history/context.tsx": { + "ts/no-explicit-any": { + "count": 7 + } + }, + "app/components/base/chat/chat-with-history/header-in-mobile.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/base/chat/chat-with-history/header/index.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/base/chat/chat-with-history/hooks.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 4 + }, + "ts/no-explicit-any": { + "count": 18 + } + }, + "app/components/base/chat/chat-with-history/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/base/chat/chat-with-history/inputs-form/content.tsx": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/base/chat/chat-with-history/sidebar/operation.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/base/chat/chat/answer/agent-content.tsx": { + "style/multiline-ternary": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/chat/chat/answer/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 2 + } + }, + "app/components/base/chat/chat/answer/workflow-process.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/base/chat/chat/chat-input-area/index.tsx": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/base/chat/chat/check-input-forms-hooks.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/chat/chat/citation/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 3 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/chat/chat/hooks.ts": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 2 + }, + "react-hooks/refs": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 15 + } + }, + "app/components/base/chat/chat/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/chat/chat/type.ts": { + "ts/no-explicit-any": { + "count": 5 + } + }, + "app/components/base/chat/chat/utils.ts": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/base/chat/embedded-chatbot/chat-wrapper.tsx": { + "react-hooks/refs": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 6 + } + }, + "app/components/base/chat/embedded-chatbot/context.tsx": { + "ts/no-explicit-any": { + "count": 7 + } + }, + "app/components/base/chat/embedded-chatbot/hooks.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 6 + }, + "react-hooks/refs": { + "count": 5 + }, + "ts/no-explicit-any": { + "count": 16 + } + }, + "app/components/base/chat/embedded-chatbot/inputs-form/content.tsx": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/base/chat/utils.ts": { + "ts/no-explicit-any": { + "count": 10 + } + }, + "app/components/base/checkbox/index.stories.tsx": { + "no-console": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/chip/index.tsx": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/base/confirm/index.stories.tsx": { + "no-console": { + "count": 4 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/confirm/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 2 + } + }, + "app/components/base/content-dialog/index.stories.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/base/date-and-time-picker/date-picker/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 4 + }, + "react-hooks/refs": { + "count": 5 + } + }, + "app/components/base/date-and-time-picker/time-picker/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 2 + }, + "react-hooks/preserve-manual-memoization": { + "count": 3 + } + }, + "app/components/base/dialog/index.stories.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/base/emoji-picker/Inner.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/base/error-boundary/index.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/base/features/context.tsx": { + "react-hooks/refs": { + "count": 2 + } + }, + "app/components/base/features/new-feature-panel/annotation-reply/index.tsx": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/base/features/new-feature-panel/annotation-reply/score-slider/base-slider/index.tsx": { + "unicorn/prefer-number-properties": { + "count": 1 + } + }, + "app/components/base/features/new-feature-panel/annotation-reply/use-annotation-config.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/base/features/new-feature-panel/conversation-opener/index.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + } + }, + "app/components/base/features/new-feature-panel/conversation-opener/modal.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/base/features/new-feature-panel/feature-card.tsx": { + "ts/no-explicit-any": { + "count": 5 + } + }, + "app/components/base/features/new-feature-panel/file-upload/setting-modal.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/features/new-feature-panel/moderation/index.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/features/new-feature-panel/moderation/moderation-setting-modal.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/base/features/new-feature-panel/text-to-speech/voice-settings.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/features/types.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/file-uploader/dynamic-pdf-preview.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/file-uploader/file-list-in-log.tsx": { + "react/no-missing-key": { + "count": 1 + } + }, + "app/components/base/file-uploader/hooks.ts": { + "react-hooks/use-memo": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/base/file-uploader/store.tsx": { + "react-hooks/refs": { + "count": 2 + } + }, + "app/components/base/file-uploader/utils.spec.ts": { + "test/no-identical-title": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/base/file-uploader/utils.ts": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/base/form/components/base/base-field.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/base/form/components/base/base-form.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 6 + } + }, + "app/components/base/form/components/field/mixed-variable-text-input/placeholder.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/form/components/field/variable-or-constant-input.tsx": { + "no-console": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/base/form/components/field/variable-selector.tsx": { + "no-console": { + "count": 1 + } + }, + "app/components/base/form/form-scenarios/base/field.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/form/form-scenarios/base/types.ts": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/base/form/form-scenarios/demo/index.tsx": { + "no-console": { + "count": 2 + } + }, + "app/components/base/form/form-scenarios/input-field/field.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/form/form-scenarios/input-field/types.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/base/form/form-scenarios/node-panel/field.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/form/form-scenarios/node-panel/types.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/base/form/hooks/use-check-validated.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/base/form/hooks/use-get-validators.ts": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/base/form/types.ts": { + "ts/no-explicit-any": { + "count": 16 + } + }, + "app/components/base/form/utils/secret-input/index.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/base/icons/icon-gallery.stories.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/icons/utils.ts": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/base/image-uploader/hooks.ts": { + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/base/image-uploader/image-link-input.tsx": { + "regexp/no-unused-capturing-group": { + "count": 1 + } + }, + "app/components/base/image-uploader/image-preview.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/image-uploader/utils.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/base/inline-delete-confirm/index.stories.tsx": { + "no-console": { + "count": 2 + } + }, + "app/components/base/input-number/index.stories.tsx": { + "no-console": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/input-with-copy/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/input/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/input/index.stories.tsx": { + "no-console": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/markdown-blocks/audio-block.tsx": { + "ts/no-explicit-any": { + "count": 5 + } + }, + "app/components/base/markdown-blocks/button.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/markdown-blocks/code-block.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 10 + }, + "react-hooks/refs": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 9 + } + }, + "app/components/base/markdown-blocks/form.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 11 + } + }, + "app/components/base/markdown-blocks/img.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/markdown-blocks/link.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/markdown-blocks/paragraph.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/base/markdown-blocks/plugin-img.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 2 + } + }, + "app/components/base/markdown-blocks/plugin-paragraph.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/base/markdown-blocks/pre-code.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/markdown-blocks/script-block.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/markdown-blocks/think-block.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/base/markdown-blocks/video-block.tsx": { + "ts/no-explicit-any": { + "count": 5 + } + }, + "app/components/base/markdown/error-boundary.tsx": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/base/markdown/markdown-utils.ts": { + "regexp/no-unused-capturing-group": { + "count": 1 + } + }, + "app/components/base/markdown/react-markdown-wrapper.tsx": { + "ts/no-explicit-any": { + "count": 8 + } + }, + "app/components/base/mermaid/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 7 + }, + "react-hooks/purity": { + "count": 1 + }, + "regexp/no-super-linear-backtracking": { + "count": 3 + }, + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/base/mermaid/utils.ts": { + "regexp/no-unused-capturing-group": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/base/message-log-modal/index.stories.tsx": { + "no-console": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/message-log-modal/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/modal-like-wrap/index.stories.tsx": { + "no-console": { + "count": 3 + } + }, + "app/components/base/modal/index.stories.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/base/modal/modal.stories.tsx": { + "no-console": { + "count": 4 + }, + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/base/new-audio-button/index.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/notion-connector/index.stories.tsx": { + "no-console": { + "count": 1 + } + }, + "app/components/base/notion-page-selector/base.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 2 + } + }, + "app/components/base/notion-page-selector/page-selector/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + }, + "react-hooks/immutability": { + "count": 1 + } + }, + "app/components/base/pagination/index.tsx": { + "react-hooks/refs": { + "count": 2 + }, + "unicorn/prefer-number-properties": { + "count": 1 + } + }, + "app/components/base/pagination/type.ts": { + "ts/no-empty-object-type": { + "count": 1 + } + }, + "app/components/base/param-item/top-k-item.tsx": { + "unicorn/prefer-number-properties": { + "count": 1 + } + }, + "app/components/base/portal-to-follow-elem/index.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 2 + }, + "react-hooks/refs": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/prompt-editor/index.stories.tsx": { + "no-console": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/base/prompt-editor/index.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/base/prompt-editor/plugins/component-picker-block/hooks.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 2 + } + }, + "app/components/base/prompt-editor/plugins/component-picker-block/index.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/prompt-editor/plugins/context-block/component.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/prompt-editor/plugins/history-block/component.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/prompt-editor/plugins/on-blur-or-focus-block.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/prompt-editor/plugins/update-block.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/base/prompt-editor/plugins/workflow-variable-block/node.tsx": { + "ts/no-explicit-any": { + "count": 5 + } + }, + "app/components/base/prompt-editor/plugins/workflow-variable-block/workflow-variable-block-replacement-block.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/prompt-log-modal/index.stories.tsx": { + "no-console": { + "count": 1 + } + }, + "app/components/base/prompt-log-modal/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/base/radio-card/index.stories.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/radio/component/group/index.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/base/radio/context/index.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/radio/index.stories.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/search-input/index.stories.tsx": { + "no-console": { + "count": 3 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/search-input/index.tsx": { + "react-hooks/refs": { + "count": 1 + } + }, + "app/components/base/select/index.stories.tsx": { + "no-console": { + "count": 4 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/select/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 2 + }, + "style/multiline-ternary": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/select/pure.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 2 + } + }, + "app/components/base/slider/index.stories.tsx": { + "no-console": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/sort/index.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/base/svg-gallery/index.tsx": { + "node/prefer-global/buffer": { + "count": 1 + } + }, + "app/components/base/switch/index.stories.tsx": { + "no-console": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/switch/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/base/tab-slider/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 2 + } + }, + "app/components/base/tag-input/index.stories.tsx": { + "no-console": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/text-generation/hooks.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/textarea/index.stories.tsx": { + "no-console": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/video-gallery/VideoPlayer.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/base/voice-input/index.stories.tsx": { + "no-console": { + "count": 2 + }, + "react-hooks/purity": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/voice-input/index.tsx": { + "react-hooks/immutability": { + "count": 1 + } + }, + "app/components/base/voice-input/utils.ts": { + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/base/with-input-validation/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/base/with-input-validation/index.stories.tsx": { + "no-console": { + "count": 1 + } + }, + "app/components/base/with-input-validation/index.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/base/zendesk/utils.ts": { + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/billing/plan/index.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/billing/pricing/plans/cloud-plan-item/index.spec.tsx": { + "test/prefer-hooks-in-order": { + "count": 1 + } + }, + "app/components/billing/pricing/plans/self-hosted-plan-item/index.spec.tsx": { + "test/prefer-hooks-in-order": { + "count": 1 + } + }, + "app/components/billing/upgrade-btn/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 9 + } + }, + "app/components/billing/upgrade-btn/index.tsx": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/billing/usage-info/index.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/custom/custom-web-app-brand/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 7 + } + }, + "app/components/custom/custom-web-app-brand/index.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/datasets/common/document-picker/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/datasets/common/document-picker/preview-document-picker.spec.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/datasets/common/document-status-with-action/auto-disabled-document.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 5 + } + }, + "app/components/datasets/common/image-previewer/index.tsx": { + "no-irregular-whitespace": { + "count": 1 + } + }, + "app/components/datasets/common/image-uploader/hooks/use-upload.ts": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/datasets/common/image-uploader/store.tsx": { + "react-hooks/refs": { + "count": 2 + } + }, + "app/components/datasets/common/image-uploader/utils.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/datasets/common/retrieval-method-config/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/datasets/common/retrieval-param-config/index.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + } + }, + "app/components/datasets/create/file-preview/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/datasets/create/file-uploader/index.tsx": { + "react-hooks/immutability": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/datasets/create/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 16 + } + }, + "app/components/datasets/create/notion-page-preview/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/datasets/create/step-three/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 7 + } + }, + "app/components/datasets/create/step-two/hooks/use-indexing-config.ts": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 3 + } + }, + "app/components/datasets/create/stop-embedding-modal/index.spec.tsx": { + "test/prefer-hooks-in-order": { + "count": 1 + } + }, + "app/components/datasets/create/website/firecrawl/index.tsx": { + "no-console": { + "count": 1 + }, + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 5 + } + }, + "app/components/datasets/create/website/firecrawl/options.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/datasets/create/website/jina-reader/index.tsx": { + "no-console": { + "count": 1 + }, + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/datasets/create/website/jina-reader/options.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/datasets/create/website/watercrawl/index.tsx": { + "no-console": { + "count": 1 + }, + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 5 + } + }, + "app/components/datasets/create/website/watercrawl/options.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/datasets/documents/components/list.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/datasets/documents/create-from-pipeline/data-source/base/credential-selector/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/datasets/documents/create-from-pipeline/data-source/base/header.spec.tsx": { + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/datasets/documents/create-from-pipeline/data-source/online-documents/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 10 + } + }, + "app/components/datasets/documents/create-from-pipeline/data-source/online-documents/index.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/datasets/documents/create-from-pipeline/data-source/online-documents/page-selector/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 5 + } + }, + "app/components/datasets/documents/create-from-pipeline/data-source/online-documents/page-selector/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + }, + "react-hooks/immutability": { + "count": 1 + } + }, + "app/components/datasets/documents/create-from-pipeline/data-source/online-drive/connect/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/datasets/documents/create-from-pipeline/data-source/online-drive/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 11 + } + }, + "app/components/datasets/documents/create-from-pipeline/data-source/online-drive/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 5 + } + }, + "app/components/datasets/documents/create-from-pipeline/data-source/online-drive/utils.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/datasets/documents/create-from-pipeline/data-source/store/provider.tsx": { + "react-hooks/refs": { + "count": 2 + } + }, + "app/components/datasets/documents/create-from-pipeline/data-source/store/slices/online-drive.ts": { + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/options/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 9 + } + }, + "app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/options/index.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 11 + } + }, + "app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/index.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/datasets/documents/create-from-pipeline/process-documents/form.tsx": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/datasets/documents/create-from-pipeline/process-documents/index.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/datasets/documents/detail/batch-modal/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/datasets/documents/detail/completed/child-segment-list.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 2 + } + }, + "app/components/datasets/documents/detail/completed/common/chunk-content.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/datasets/documents/detail/completed/common/regeneration-modal.tsx": { + "react-hooks/purity": { + "count": 1 + } + }, + "app/components/datasets/documents/detail/completed/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 6 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/datasets/documents/detail/completed/new-child-segment.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/datasets/documents/detail/context.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/datasets/documents/detail/embedding/index.tsx": { + "react-hooks/immutability": { + "count": 1 + }, + "react-hooks/preserve-manual-memoization": { + "count": 2 + } + }, + "app/components/datasets/documents/detail/index.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/datasets/documents/detail/metadata/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 4 + }, + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/datasets/documents/detail/new-segment.tsx": { + "react-hooks/purity": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/datasets/documents/detail/settings/document-settings.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + } + }, + "app/components/datasets/documents/detail/settings/pipeline-settings/index.tsx": { + "react-hooks/refs": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 6 + } + }, + "app/components/datasets/documents/detail/settings/pipeline-settings/process-documents/index.tsx": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/datasets/documents/hooks/use-documents-page-state.ts": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 12 + } + }, + "app/components/datasets/documents/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 2 + } + }, + "app/components/datasets/external-api/external-api-modal/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/datasets/external-knowledge-base/create/ExternalApiSelect.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/datasets/external-knowledge-base/create/ExternalApiSelection.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/datasets/extra-info/service-api/card.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + } + }, + "app/components/datasets/formatted-text/flavours/edit-slice.tsx": { + "react-hooks/refs": { + "count": 1 + } + }, + "app/components/datasets/formatted-text/flavours/preview-slice.tsx": { + "react-hooks/refs": { + "count": 1 + } + }, + "app/components/datasets/formatted-text/flavours/type.ts": { + "ts/no-empty-object-type": { + "count": 1 + } + }, + "app/components/datasets/hit-testing/components/score.tsx": { + "unicorn/prefer-number-properties": { + "count": 1 + } + }, + "app/components/datasets/hit-testing/index.tsx": { + "react-hooks/purity": { + "count": 1 + } + }, + "app/components/datasets/list/dataset-card/hooks/use-dataset-card-state.ts": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/datasets/metadata/base/date-picker.tsx": { + "react-hooks/purity": { + "count": 1 + } + }, + "app/components/datasets/metadata/edit-metadata-batch/input-combined.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/datasets/metadata/hooks/use-edit-dataset-metadata.ts": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/datasets/metadata/hooks/use-metadata-document.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/datasets/metadata/metadata-dataset/create-content.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/datasets/metadata/metadata-dataset/create-metadata-modal.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/datasets/metadata/metadata-dataset/dataset-metadata-drawer.tsx": { + "react-hooks/static-components": { + "count": 1 + } + }, + "app/components/datasets/settings/form/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/datasets/settings/permission-selector/index.tsx": { + "react/no-missing-key": { + "count": 1 + } + }, + "app/components/develop/code.tsx": { + "ts/no-empty-object-type": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 9 + } + }, + "app/components/develop/doc.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/develop/md.tsx": { + "ts/no-empty-object-type": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/explore/app-card/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/explore/create-app-modal/index.tsx": { + "ts/no-explicit-any": { + "count": 1 + }, + "unicorn/prefer-number-properties": { + "count": 1 + } + }, + "app/components/explore/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/explore/item-operation/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/explore/sidebar/index.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/goto-anything/actions/commands/command-bus.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/goto-anything/actions/commands/registry.ts": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/goto-anything/actions/commands/slash.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/goto-anything/actions/commands/types.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/goto-anything/actions/types.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/goto-anything/context.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 4 + } + }, + "app/components/goto-anything/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 5 + } + }, + "app/components/goto-anything/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + }, + "react-hooks/preserve-manual-memoization": { + "count": 9 + } + }, + "app/components/header/account-setting/data-source-page-new/card.tsx": { + "react-hooks/immutability": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/header/account-setting/data-source-page-new/hooks/use-marketplace-all-plugins.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/header/account-setting/data-source-page-new/install-from-marketplace.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/header/account-setting/data-source-page-new/item.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/header/account-setting/data-source-page-new/operator.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + } + }, + "app/components/header/account-setting/data-source-page-new/types.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/header/account-setting/data-source-page/data-source-website/index.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/header/account-setting/data-source-page/panel/config-item.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/header/account-setting/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/header/account-setting/key-validator/declarations.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/header/account-setting/members-page/invite-modal/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 3 + }, + "react-hooks/preserve-manual-memoization": { + "count": 3 + } + }, + "app/components/header/account-setting/members-page/transfer-ownership-modal/index.tsx": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/header/account-setting/members-page/transfer-ownership-modal/member-selector.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/header/account-setting/model-provider-page/declarations.ts": { + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/header/account-setting/model-provider-page/hooks.spec.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/header/account-setting/model-provider-page/hooks.ts": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/header/account-setting/model-provider-page/model-auth/add-credential-in-load-balancing.tsx": { + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/header/account-setting/model-provider-page/model-auth/authorized/index.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/header/account-setting/model-provider-page/model-auth/hooks/use-auth.ts": { + "ts/no-explicit-any": { + "count": 6 + } + }, + "app/components/header/account-setting/model-provider-page/model-auth/hooks/use-model-form-schemas.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/header/account-setting/model-provider-page/model-auth/switch-credential-in-load-balancing.tsx": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/header/account-setting/model-provider-page/model-modal/Form.tsx": { + "ts/no-explicit-any": { + "count": 6 + } + }, + "app/components/header/account-setting/model-provider-page/model-modal/Input.tsx": { + "unicorn/prefer-number-properties": { + "count": 2 + } + }, + "app/components/header/account-setting/model-provider-page/model-modal/index.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 5 + } + }, + "app/components/header/account-setting/model-provider-page/model-parameter-modal/configuration-button.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/header/account-setting/model-provider-page/model-parameter-modal/model-display.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/header/account-setting/model-provider-page/model-parameter-modal/status-indicators.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/header/account-setting/model-provider-page/provider-added-card/cooldown-timer.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 2 + }, + "react-hooks/immutability": { + "count": 1 + }, + "react-hooks/purity": { + "count": 1 + } + }, + "app/components/header/account-setting/model-provider-page/provider-added-card/credential-panel.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/header/account-setting/model-provider-page/provider-added-card/index.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/header/account-setting/model-provider-page/provider-added-card/model-load-balancing-configs.tsx": { + "ts/no-explicit-any": { + "count": 5 + } + }, + "app/components/header/account-setting/model-provider-page/provider-added-card/model-load-balancing-modal.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/header/account-setting/model-provider-page/utils.ts": { + "ts/no-explicit-any": { + "count": 5 + } + }, + "app/components/header/account-setting/plugin-page/utils.ts": { + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/header/app-nav/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/header/dataset-nav/index.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 6 + } + }, + "app/components/header/header-wrapper.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/header/nav/nav-selector/index.tsx": { + "react-hooks/use-memo": { + "count": 1 + } + }, + "app/components/plugins/install-plugin/hooks.ts": { + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/plugins/install-plugin/install-bundle/item/github-item.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/plugins/install-plugin/install-bundle/steps/install-multi.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 5 + }, + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/plugins/install-plugin/install-bundle/steps/install.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + } + }, + "app/components/plugins/install-plugin/install-from-github/index.tsx": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/plugins/install-plugin/install-from-github/steps/selectPackage.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/plugins/install-plugin/install-from-local-package/steps/uploading.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/plugins/install-plugin/install-from-marketplace/steps/install.spec.tsx": { + "ts/no-explicit-any": { + "count": 3 + }, + "unused-imports/no-unused-vars": { + "count": 2 + } + }, + "app/components/plugins/marketplace/sort-dropdown/index.spec.tsx": { + "unused-imports/no-unused-vars": { + "count": 1 + } + }, + "app/components/plugins/plugin-auth/authorize/add-oauth-button.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/plugins/plugin-auth/authorize/api-key-modal.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/plugins/plugin-auth/authorize/oauth-client-settings.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/plugins/plugin-auth/authorized-in-node.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/plugins/plugin-auth/authorized/index.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/plugins/plugin-auth/authorized/item.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/plugins/plugin-auth/hooks/use-plugin-auth-action.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/plugins/plugin-auth/plugin-auth-in-agent.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/plugins/plugin-auth/types.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/plugins/plugin-auth/utils.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/plugins/plugin-detail-panel/agent-strategy-list.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/plugins/plugin-detail-panel/app-selector/app-inputs-form.tsx": { + "ts/no-explicit-any": { + "count": 8 + } + }, + "app/components/plugins/plugin-detail-panel/app-selector/app-inputs-panel.tsx": { + "ts/no-explicit-any": { + "count": 8 + } + }, + "app/components/plugins/plugin-detail-panel/app-selector/index.tsx": { + "ts/no-explicit-any": { + "count": 5 + } + }, + "app/components/plugins/plugin-detail-panel/datasource-action-list.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/plugins/plugin-detail-panel/detail-header.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + } + }, + "app/components/plugins/plugin-detail-panel/endpoint-card.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/plugins/plugin-detail-panel/endpoint-list.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/plugins/plugin-detail-panel/endpoint-modal.tsx": { + "ts/no-explicit-any": { + "count": 7 + } + }, + "app/components/plugins/plugin-detail-panel/model-list.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/plugins/plugin-detail-panel/model-selector/index.tsx": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/plugins/plugin-detail-panel/model-selector/tts-params-panel.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/plugins/plugin-detail-panel/multiple-tool-selector/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 5 + }, + "unused-imports/no-unused-vars": { + "count": 2 + } + }, + "app/components/plugins/plugin-detail-panel/multiple-tool-selector/index.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/plugins/plugin-detail-panel/strategy-detail.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/plugins/plugin-detail-panel/subscription-list/create/common-modal.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + } + }, + "app/components/plugins/plugin-detail-panel/subscription-list/create/index.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/plugins/plugin-detail-panel/subscription-list/create/oauth-client.tsx": { + "react-hooks/immutability": { + "count": 1 + } + }, + "app/components/plugins/plugin-detail-panel/subscription-list/delete-confirm.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/plugins/plugin-detail-panel/subscription-list/log-viewer.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/plugins/plugin-detail-panel/tool-selector/index.tsx": { + "ts/no-explicit-any": { + "count": 15 + } + }, + "app/components/plugins/plugin-detail-panel/tool-selector/reasoning-config-form.tsx": { + "ts/no-explicit-any": { + "count": 24 + } + }, + "app/components/plugins/plugin-detail-panel/tool-selector/tool-credentials-form.tsx": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/plugins/plugin-detail-panel/tool-selector/tool-item.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/plugins/plugin-detail-panel/trigger/event-detail-drawer.tsx": { + "ts/no-explicit-any": { + "count": 5 + } + }, + "app/components/plugins/plugin-item/action.spec.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/plugins/plugin-item/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 10 + } + }, + "app/components/plugins/plugin-item/index.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/plugins/plugin-mutation-model/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/plugins/plugin-page/context.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/plugins/plugin-page/empty/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 7 + } + }, + "app/components/plugins/plugin-page/empty/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 2 + } + }, + "app/components/plugins/plugin-page/install-plugin-dropdown.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 2 + } + }, + "app/components/plugins/plugin-page/list/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/plugins/plugin-page/plugin-tasks/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/plugins/reference-setting-modal/auto-update-setting/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 7 + } + }, + "app/components/plugins/reference-setting-modal/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 7 + } + }, + "app/components/plugins/types.ts": { + "ts/no-explicit-any": { + "count": 30 + } + }, + "app/components/plugins/update-plugin/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 5 + } + }, + "app/components/rag-pipeline/components/panel/input-field/editor/form/hidden-fields.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/rag-pipeline/components/panel/input-field/editor/form/hooks.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/rag-pipeline/components/panel/input-field/editor/form/initial-fields.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/rag-pipeline/components/panel/input-field/editor/form/show-all-settings.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/rag-pipeline/components/panel/input-field/editor/form/types.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/rag-pipeline/components/panel/input-field/field-list/hooks.ts": { + "react-hooks/preserve-manual-memoization": { + "count": 3 + } + }, + "app/components/rag-pipeline/components/panel/input-field/field-list/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/rag-pipeline/components/panel/input-field/hooks.ts": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/rag-pipeline/components/panel/input-field/index.tsx": { + "react-hooks/refs": { + "count": 3 + } + }, + "app/components/rag-pipeline/components/panel/test-run/header.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + } + }, + "app/components/rag-pipeline/components/panel/test-run/preparation/document-processing/index.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/rag-pipeline/components/panel/test-run/preparation/document-processing/options.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/rag-pipeline/components/panel/test-run/preparation/index.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/rag-pipeline/components/panel/test-run/result/index.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/rag-pipeline/components/panel/test-run/result/result-preview/index.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/rag-pipeline/components/panel/test-run/result/result-preview/utils.ts": { + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/rag-pipeline/components/rag-pipeline-children.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/rag-pipeline/components/rag-pipeline-header/run-mode.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/rag-pipeline/components/rag-pipeline-main.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/rag-pipeline/components/update-dsl-modal.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/rag-pipeline/hooks/use-DSL.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/rag-pipeline/hooks/use-available-nodes-meta-data.ts": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + } + }, + "app/components/rag-pipeline/hooks/use-configs-map.ts": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + } + }, + "app/components/rag-pipeline/hooks/use-input-fields.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/rag-pipeline/hooks/use-nodes-sync-draft.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/rag-pipeline/hooks/use-pipeline-config.ts": { + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/rag-pipeline/hooks/use-pipeline-init.ts": { + "react-hooks/immutability": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/rag-pipeline/hooks/use-pipeline-run.ts": { + "react-hooks/preserve-manual-memoization": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/rag-pipeline/hooks/use-pipeline-start-run.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + } + }, + "app/components/rag-pipeline/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 8 + } + }, + "app/components/rag-pipeline/store/index.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/rag-pipeline/utils/nodes.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/share/text-generation/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 8 + } + }, + "app/components/share/text-generation/menu-dropdown.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/share/text-generation/no-data/index.tsx": { + "ts/no-empty-object-type": { + "count": 1 + } + }, + "app/components/share/text-generation/result/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 3 + }, + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/share/text-generation/run-batch/csv-download/index.spec.tsx": { + "react-hooks/globals": { + "count": 1 + } + }, + "app/components/share/text-generation/run-batch/csv-reader/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/share/text-generation/run-batch/csv-reader/index.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/share/text-generation/run-batch/res-download/index.spec.tsx": { + "react-hooks/globals": { + "count": 1 + } + }, + "app/components/share/text-generation/run-once/index.spec.tsx": { + "react-hooks/globals": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/share/text-generation/run-once/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 8 + } + }, + "app/components/share/utils.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/tools/edit-custom-collection-modal/get-schema.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/tools/edit-custom-collection-modal/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 4 + }, + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/tools/edit-custom-collection-modal/test-api.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/tools/mcp/create-card.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/tools/mcp/detail/content.tsx": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/tools/mcp/detail/operation-dropdown.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + } + }, + "app/components/tools/mcp/mcp-server-modal.tsx": { + "ts/no-explicit-any": { + "count": 5 + } + }, + "app/components/tools/mcp/mcp-server-param-item.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/tools/mcp/mcp-service-card.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/tools/mcp/modal.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 20 + } + }, + "app/components/tools/mcp/provider-card.tsx": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/tools/provider-list.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/tools/provider/custom-create-card.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + } + }, + "app/components/tools/provider/empty.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/tools/setting/build-in/config-credentials.tsx": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/tools/types.ts": { + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/tools/utils/to-form-schema.ts": { + "ts/no-explicit-any": { + "count": 15 + } + }, + "app/components/tools/workflow-tool/configure-button.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 2 + } + }, + "app/components/tools/workflow-tool/index.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow-app/components/workflow-children.tsx": { + "no-console": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/workflow-app/components/workflow-header/features-trigger.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + } + }, + "app/components/workflow-app/components/workflow-main.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow-app/components/workflow-onboarding-modal/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow-app/components/workflow-onboarding-modal/start-node-selection-panel.spec.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow-app/hooks/use-DSL.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow-app/hooks/use-configs-map.ts": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + } + }, + "app/components/workflow-app/hooks/use-nodes-sync-draft.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow-app/hooks/use-workflow-init.ts": { + "react-hooks/immutability": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/workflow-app/hooks/use-workflow-refresh-draft.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow-app/hooks/use-workflow-run.ts": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 13 + } + }, + "app/components/workflow-app/hooks/use-workflow-template.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow-app/index.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow-app/store/workflow/workflow-slice.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/__tests__/trigger-status-sync.test.tsx": { + "react-hooks/use-memo": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/block-selector/all-start-blocks.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/workflow/block-selector/data-sources.tsx": { + "react-hooks/refs": { + "count": 2 + } + }, + "app/components/workflow/block-selector/featured-tools.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/block-selector/featured-triggers.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/block-selector/hooks.ts": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/workflow/block-selector/market-place-plugin/action.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/workflow/block-selector/rag-tool-recommendations/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/workflow/block-selector/tool/tool-list-flat-view/list.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/block-selector/tool/tool.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 2 + }, + "react-hooks/preserve-manual-memoization": { + "count": 4 + } + }, + "app/components/workflow/block-selector/trigger-plugin/action-item.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/block-selector/trigger-plugin/item.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/block-selector/use-check-vertical-scrollbar.ts": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/workflow/candidate-node-main.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/context.tsx": { + "react-hooks/refs": { + "count": 2 + } + }, + "app/components/workflow/datasets-detail-store/provider.tsx": { + "react-hooks/refs": { + "count": 2 + } + }, + "app/components/workflow/header/header-in-normal.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + } + }, + "app/components/workflow/header/run-mode.tsx": { + "no-console": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/header/view-workflow-history.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/hooks-store/provider.tsx": { + "react-hooks/refs": { + "count": 2 + } + }, + "app/components/workflow/hooks-store/store.ts": { + "ts/no-explicit-any": { + "count": 6 + } + }, + "app/components/workflow/hooks/use-checklist.ts": { + "ts/no-empty-object-type": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/workflow/hooks/use-dynamic-test-run-options.tsx": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/workflow/hooks/use-helpline.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/hooks/use-inspect-vars-crud-common.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/hooks/use-node-data-update.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/hooks/use-nodes-interactions.ts": { + "react-hooks/immutability": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 8 + } + }, + "app/components/workflow/hooks/use-nodes-layout.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/hooks/use-serial-async-callback.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/hooks/use-workflow-interactions.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/hooks/use-workflow-run-event/use-workflow-agent-log.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/hooks/use-workflow-run-event/use-workflow-finished.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/hooks/use-workflow-search.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/hooks/use-workflow-variables.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/index.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/nodes/_base/components/add-variable-popup-with-position.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/nodes/_base/components/agent-strategy-selector.tsx": { + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/workflow/nodes/_base/components/agent-strategy.tsx": { + "ts/no-empty-object-type": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/workflow/nodes/_base/components/before-run-form/form-item.tsx": { + "ts/no-explicit-any": { + "count": 11 + } + }, + "app/components/workflow/nodes/_base/components/before-run-form/form.tsx": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/workflow/nodes/_base/components/before-run-form/index.tsx": { + "ts/no-explicit-any": { + "count": 8 + } + }, + "app/components/workflow/nodes/_base/components/editor/code-editor/editor-support-vars.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 6 + } + }, + "app/components/workflow/nodes/_base/components/editor/code-editor/index.tsx": { + "ts/no-explicit-any": { + "count": 6 + } + }, + "app/components/workflow/nodes/_base/components/error-handle/default-value.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/_base/components/error-handle/types.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/_base/components/form-input-item.tsx": { + "ts/no-explicit-any": { + "count": 33 + } + }, + "app/components/workflow/nodes/_base/components/input-support-select-var.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/_base/components/input-var-type-icon.tsx": { + "react-hooks/static-components": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/_base/components/memory-config.tsx": { + "unicorn/prefer-number-properties": { + "count": 1 + } + }, + "app/components/workflow/nodes/_base/components/mixed-variable-text-input/index.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/_base/components/mixed-variable-text-input/placeholder.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/_base/components/next-step/add.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 2 + } + }, + "app/components/workflow/nodes/_base/components/node-handle.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/workflow/nodes/_base/components/prompt/editor.tsx": { + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/workflow/nodes/_base/components/readonly-input-with-select-var.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/_base/components/selector.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/nodes/_base/components/setting-item.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/_base/components/toggle-expand-btn.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + } + }, + "app/components/workflow/nodes/_base/components/variable/match-schema-type.ts": { + "ts/no-explicit-any": { + "count": 8 + } + }, + "app/components/workflow/nodes/_base/components/variable/output-var-list.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + } + }, + "app/components/workflow/nodes/_base/components/variable/utils.ts": { + "ts/no-explicit-any": { + "count": 32 + } + }, + "app/components/workflow/nodes/_base/components/variable/var-list.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + } + }, + "app/components/workflow/nodes/_base/components/variable/var-reference-picker.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/workflow/nodes/_base/components/variable/variable-label/base/variable-icon.tsx": { + "react-hooks/static-components": { + "count": 1 + } + }, + "app/components/workflow/nodes/_base/components/variable/variable-label/hooks.ts": { + "react-hooks/use-memo": { + "count": 2 + } + }, + "app/components/workflow/nodes/_base/components/workflow-panel/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 3 + }, + "react-hooks/preserve-manual-memoization": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 6 + } + }, + "app/components/workflow/nodes/_base/components/workflow-panel/last-run/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 7 + }, + "ts/no-explicit-any": { + "count": 5 + } + }, + "app/components/workflow/nodes/_base/components/workflow-panel/last-run/use-last-run.ts": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + }, + "react-hooks/preserve-manual-memoization": { + "count": 3 + }, + "ts/no-explicit-any": { + "count": 7 + } + }, + "app/components/workflow/nodes/_base/components/workflow-panel/tab.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/_base/hooks/use-one-step-run.ts": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 22 + } + }, + "app/components/workflow/nodes/_base/hooks/use-output-var-list.ts": { + "ts/no-explicit-any": { + "count": 8 + } + }, + "app/components/workflow/nodes/_base/hooks/use-toggle-expend.ts": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + }, + "react-hooks/refs": { + "count": 2 + } + }, + "app/components/workflow/nodes/_base/hooks/use-var-list.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/nodes/_base/node.tsx": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/workflow/nodes/_base/types.ts": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/workflow/nodes/agent/components/model-bar.tsx": { + "ts/no-empty-object-type": { + "count": 1 + } + }, + "app/components/workflow/nodes/agent/default.ts": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/workflow/nodes/agent/node.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/nodes/agent/panel.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/agent/types.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/agent/use-config.ts": { + "ts/no-explicit-any": { + "count": 7 + } + }, + "app/components/workflow/nodes/agent/use-single-run-form-params.ts": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/workflow/nodes/answer/default.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/assigner/default.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/assigner/hooks.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/assigner/types.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/assigner/use-single-run-form-params.ts": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/workflow/nodes/assigner/utils.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/code/default.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/code/use-config.ts": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 2 + }, + "regexp/no-useless-assertions": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 6 + } + }, + "app/components/workflow/nodes/code/use-single-run-form-params.ts": { + "ts/no-explicit-any": { + "count": 5 + } + }, + "app/components/workflow/nodes/components.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/nodes/data-source-empty/hooks.ts": { + "react-hooks/preserve-manual-memoization": { + "count": 3 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/data-source-empty/index.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + } + }, + "app/components/workflow/nodes/data-source/default.ts": { + "ts/no-explicit-any": { + "count": 5 + } + }, + "app/components/workflow/nodes/data-source/hooks/use-before-run-form.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/data-source/hooks/use-config.ts": { + "ts/no-explicit-any": { + "count": 6 + } + }, + "app/components/workflow/nodes/data-source/panel.tsx": { + "style/multiline-ternary": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/workflow/nodes/data-source/types.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/data-source/utils.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/document-extractor/default.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/document-extractor/use-single-run-form-params.ts": { + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/workflow/nodes/end/default.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/end/node.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/http/components/key-value/key-value-edit/index.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/nodes/http/components/key-value/key-value-edit/item.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/http/default.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/http/use-config.ts": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/http/use-single-run-form-params.ts": { + "ts/no-explicit-any": { + "count": 5 + } + }, + "app/components/workflow/nodes/if-else/components/condition-list/condition-input.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/if-else/components/condition-list/condition-item.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + } + }, + "app/components/workflow/nodes/if-else/default.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/if-else/use-single-run-form-params.ts": { + "ts/no-explicit-any": { + "count": 5 + } + }, + "app/components/workflow/nodes/index.tsx": { + "react-hooks/static-components": { + "count": 1 + } + }, + "app/components/workflow/nodes/iteration/default.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/iteration/node.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/workflow/nodes/iteration/use-interactions.ts": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + } + }, + "app/components/workflow/nodes/iteration/use-single-run-form-params.ts": { + "ts/no-explicit-any": { + "count": 6 + } + }, + "app/components/workflow/nodes/knowledge-base/components/retrieval-setting/hooks.tsx": { + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/workflow/nodes/knowledge-base/components/retrieval-setting/top-k-and-score-threshold.tsx": { + "unicorn/prefer-number-properties": { + "count": 1 + } + }, + "app/components/workflow/nodes/knowledge-base/components/retrieval-setting/type.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/nodes/knowledge-base/use-single-run-form-params.ts": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/workflow/nodes/knowledge-retrieval/components/metadata/condition-list/condition-item.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/knowledge-retrieval/default.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/knowledge-retrieval/node.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 2 + } + }, + "app/components/workflow/nodes/knowledge-retrieval/types.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/knowledge-retrieval/use-config.ts": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/workflow/nodes/knowledge-retrieval/use-single-run-form-params.ts": { + "react-hooks/refs": { + "count": 3 + }, + "ts/no-explicit-any": { + "count": 5 + } + }, + "app/components/workflow/nodes/list-operator/components/filter-condition.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/list-operator/components/sub-variable-picker.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/list-operator/default.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/llm/components/config-prompt-item.tsx": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/workflow/nodes/llm/components/config-prompt.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/llm/components/json-schema-config-modal/code-editor.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/workflow/nodes/llm/components/json-schema-config-modal/json-importer.tsx": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/workflow/nodes/llm/components/json-schema-config-modal/json-schema-generator/generated-result.tsx": { + "style/multiline-ternary": { + "count": 2 + } + }, + "app/components/workflow/nodes/llm/components/json-schema-config-modal/json-schema-generator/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 2 + } + }, + "app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/context.tsx": { + "react-hooks/refs": { + "count": 2 + } + }, + "app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/edit-card/auto-width-input.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/workflow/nodes/llm/components/json-schema-config-modal/visual-editor/hooks.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/llm/components/structure-output.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/nodes/llm/default.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/llm/use-config.ts": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/nodes/llm/use-single-run-form-params.ts": { + "react-hooks/refs": { + "count": 3 + }, + "ts/no-explicit-any": { + "count": 9 + } + }, + "app/components/workflow/nodes/llm/utils.ts": { + "ts/no-explicit-any": { + "count": 10 + } + }, + "app/components/workflow/nodes/loop/components/condition-list/condition-input.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/loop/components/loop-variables/form-item.tsx": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/workflow/nodes/loop/components/loop-variables/item.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 3 + }, + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/workflow/nodes/loop/default.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/loop/types.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/loop/use-config.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/nodes/loop/use-single-run-form-params.ts": { + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/workflow/nodes/parameter-extractor/components/extract-parameter/update.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/parameter-extractor/default.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/parameter-extractor/use-config.ts": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/nodes/parameter-extractor/use-single-run-form-params.ts": { + "react-hooks/refs": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 9 + } + }, + "app/components/workflow/nodes/question-classifier/components/class-item.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/workflow/nodes/question-classifier/components/class-list.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/workflow/nodes/question-classifier/default.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/question-classifier/use-config.ts": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/nodes/question-classifier/use-single-run-form-params.ts": { + "react-hooks/refs": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 8 + } + }, + "app/components/workflow/nodes/start/components/var-list.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + } + }, + "app/components/workflow/nodes/start/panel.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/nodes/start/use-config.ts": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/start/use-single-run-form-params.ts": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/workflow/nodes/template-transform/default.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/template-transform/use-config.ts": { + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/workflow/nodes/template-transform/use-single-run-form-params.ts": { + "ts/no-explicit-any": { + "count": 5 + } + }, + "app/components/workflow/nodes/tool/__tests__/output-schema-utils.test.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/tool/components/input-var-list.tsx": { + "ts/no-explicit-any": { + "count": 7 + } + }, + "app/components/workflow/nodes/tool/components/mixed-variable-text-input/index.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/tool/components/mixed-variable-text-input/placeholder.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/tool/components/tool-form/index.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/tool/components/tool-form/item.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/tool/default.ts": { + "ts/no-explicit-any": { + "count": 7 + } + }, + "app/components/workflow/nodes/tool/output-schema-utils.ts": { + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/workflow/nodes/tool/panel.tsx": { + "style/multiline-ternary": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/nodes/tool/types.ts": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/workflow/nodes/tool/use-config.ts": { + "ts/no-explicit-any": { + "count": 6 + } + }, + "app/components/workflow/nodes/tool/use-single-run-form-params.ts": { + "ts/no-explicit-any": { + "count": 6 + } + }, + "app/components/workflow/nodes/trigger-plugin/components/trigger-form/index.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/trigger-plugin/components/trigger-form/item.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/trigger-plugin/default.ts": { + "ts/no-explicit-any": { + "count": 11 + } + }, + "app/components/workflow/nodes/trigger-plugin/node.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/nodes/trigger-plugin/panel.tsx": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/workflow/nodes/trigger-plugin/types.ts": { + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/workflow/nodes/trigger-plugin/use-config.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/trigger-plugin/utils/__tests__/form-helpers.test.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/nodes/trigger-plugin/utils/form-helpers.ts": { + "ts/no-explicit-any": { + "count": 7 + } + }, + "app/components/workflow/nodes/trigger-schedule/default.ts": { + "regexp/no-unused-capturing-group": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 10 + } + }, + "app/components/workflow/nodes/trigger-webhook/default.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/utils.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/variable-assigner/components/var-group-item.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/nodes/variable-assigner/default.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/nodes/variable-assigner/use-single-run-form-params.ts": { + "ts/no-explicit-any": { + "count": 5 + } + }, + "app/components/workflow/note-node/index.tsx": { + "react-hooks/refs": { + "count": 1 + } + }, + "app/components/workflow/note-node/note-editor/context.tsx": { + "react-hooks/refs": { + "count": 2 + } + }, + "app/components/workflow/note-node/note-editor/plugins/link-editor-plugin/component.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + }, + "react-hooks/refs": { + "count": 1 + } + }, + "app/components/workflow/note-node/note-editor/utils.ts": { + "regexp/no-useless-quantifier": { + "count": 1 + } + }, + "app/components/workflow/operator/add-block.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/operator/hooks.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/panel/chat-record/index.tsx": { + "ts/no-explicit-any": { + "count": 8 + } + }, + "app/components/workflow/panel/chat-record/user-input.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/panel/chat-variable-panel/components/array-bool-list.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/panel/chat-variable-panel/components/array-value-list.tsx": { + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/workflow/panel/chat-variable-panel/components/object-value-item.tsx": { + "ts/no-explicit-any": { + "count": 5 + }, + "unicorn/prefer-number-properties": { + "count": 2 + } + }, + "app/components/workflow/panel/chat-variable-panel/components/object-value-list.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/panel/chat-variable-panel/components/variable-modal.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 8 + }, + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/workflow/panel/chat-variable-panel/components/variable-type-select.tsx": { + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/workflow/panel/debug-and-preview/chat-wrapper.tsx": { + "ts/no-explicit-any": { + "count": 5 + } + }, + "app/components/workflow/panel/debug-and-preview/conversation-variable-modal.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/panel/debug-and-preview/hooks.ts": { + "react-hooks/purity": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 7 + } + }, + "app/components/workflow/panel/env-panel/variable-modal.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 4 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/panel/index.tsx": { + "react-hooks/use-memo": { + "count": 1 + } + }, + "app/components/workflow/panel/inputs-panel.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/workflow/panel/version-history-panel/context-menu/use-context-menu.ts": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + } + }, + "app/components/workflow/panel/version-history-panel/index.spec.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/panel/workflow-preview.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/run/hooks.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/run/index.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 2 + } + }, + "app/components/workflow/run/iteration-log/iteration-log-trigger.tsx": { + "ts/no-explicit-any": { + "count": 1 + }, + "unicorn/prefer-number-properties": { + "count": 1 + } + }, + "app/components/workflow/run/loop-log/loop-log-trigger.tsx": { + "unicorn/prefer-number-properties": { + "count": 1 + } + }, + "app/components/workflow/run/node.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/components/workflow/run/output-panel.tsx": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/workflow/run/result-panel.tsx": { + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/workflow/run/result-text.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/run/utils/format-log/agent/index.spec.ts": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/workflow/run/utils/format-log/agent/index.ts": { + "ts/no-explicit-any": { + "count": 11 + } + }, + "app/components/workflow/run/utils/format-log/graph-to-log-struct.ts": { + "ts/no-explicit-any": { + "count": 7 + } + }, + "app/components/workflow/run/utils/format-log/index.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/run/utils/format-log/iteration/index.spec.ts": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/workflow/run/utils/format-log/iteration/index.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/run/utils/format-log/loop/index.spec.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/run/utils/format-log/loop/index.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/run/utils/format-log/parallel/index.ts": { + "no-console": { + "count": 4 + }, + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/run/utils/format-log/retry/index.spec.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/selection-contextmenu.tsx": { + "ts/no-explicit-any": { + "count": 4 + } + }, + "app/components/workflow/store/workflow/debug/inspect-vars-slice.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/store/workflow/workflow-draft-slice.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/types.ts": { + "ts/no-empty-object-type": { + "count": 3 + }, + "ts/no-explicit-any": { + "count": 8 + } + }, + "app/components/workflow/update-dsl-modal.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/utils/data-source.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/utils/debug.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/utils/node-navigation.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/utils/node.ts": { + "regexp/no-super-linear-backtracking": { + "count": 1 + } + }, + "app/components/workflow/utils/tool.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/utils/workflow-init.ts": { + "ts/no-explicit-any": { + "count": 12 + } + }, + "app/components/workflow/utils/workflow.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/variable-inspect/display-content.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/variable-inspect/group.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/variable-inspect/left.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/variable-inspect/listening.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/variable-inspect/panel.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/variable-inspect/right.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 3 + } + }, + "app/components/workflow/variable-inspect/trigger.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/variable-inspect/utils.tsx": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "app/components/workflow/variable-inspect/value-content.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 5 + }, + "regexp/no-super-linear-backtracking": { + "count": 1 + }, + "regexp/no-unused-capturing-group": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 8 + } + }, + "app/components/workflow/workflow-preview/components/nodes/constants.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/components/workflow/workflow-preview/components/note-node/index.tsx": { + "react-hooks/refs": { + "count": 1 + } + }, + "app/education-apply/hooks.ts": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 5 + } + }, + "app/education-apply/search-input.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/education-apply/verify-state-modal.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + } + }, + "app/forgot-password/ForgotPasswordForm.spec.tsx": { + "ts/no-explicit-any": { + "count": 5 + } + }, + "app/init/InitPasswordPopup.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/install/installForm.spec.tsx": { + "ts/no-explicit-any": { + "count": 7 + } + }, + "app/reset-password/layout.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/signin/components/mail-and-password-auth.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/signin/invite-settings/page.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 1 + } + }, + "app/signin/layout.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/signin/one-more-step.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/signup/layout.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "app/signup/set-password/page.tsx": { + "react-hooks/preserve-manual-memoization": { + "count": 2 + } + }, + "context/app-context.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "context/hooks/use-trigger-events-limit-modal.ts": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 3 + } + }, + "context/modal-context.test.tsx": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "context/modal-context.tsx": { + "ts/no-explicit-any": { + "count": 5 + } + }, + "context/provider-context.tsx": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "hooks/use-async-window-open.spec.ts": { + "ts/no-explicit-any": { + "count": 6 + } + }, + "hooks/use-format-time-from-now.spec.ts": { + "regexp/no-dupe-disjunctions": { + "count": 5 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "hooks/use-metadata.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "hooks/use-mitt.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "hooks/use-moderate.ts": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + }, + "react-hooks/refs": { + "count": 1 + } + }, + "hooks/use-oauth.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "hooks/use-pay.tsx": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 4 + } + }, + "i18n-config/README.md": { + "no-irregular-whitespace": { + "count": 1 + } + }, + "i18n/de-DE/billing.json": { + "no-irregular-whitespace": { + "count": 1 + } + }, + "i18n/en-US/app-debug.json": { + "no-irregular-whitespace": { + "count": 1 + } + }, + "i18n/en-US/common.json": { + "no-irregular-whitespace": { + "count": 3 + } + }, + "i18n/fr-FR/app-debug.json": { + "no-irregular-whitespace": { + "count": 1 + } + }, + "i18n/fr-FR/app.json": { + "no-irregular-whitespace": { + "count": 1 + } + }, + "i18n/fr-FR/plugin-trigger.json": { + "no-irregular-whitespace": { + "count": 1 + } + }, + "i18n/fr-FR/tools.json": { + "no-irregular-whitespace": { + "count": 1 + } + }, + "i18n/fr-FR/workflow.json": { + "no-irregular-whitespace": { + "count": 2 + } + }, + "i18n/pt-BR/common.json": { + "no-irregular-whitespace": { + "count": 1 + } + }, + "i18n/ru-RU/common.json": { + "no-irregular-whitespace": { + "count": 2 + } + }, + "i18n/uk-UA/app-debug.json": { + "no-irregular-whitespace": { + "count": 1 + } + }, + "middleware.ts": { + "node/prefer-global/buffer": { + "count": 1 + } + }, + "models/common.ts": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "models/datasets.ts": { + "ts/no-explicit-any": { + "count": 5 + } + }, + "models/debug.ts": { + "ts/no-explicit-any": { + "count": 4 + } + }, + "models/log.ts": { + "ts/no-explicit-any": { + "count": 7 + } + }, + "models/pipeline.ts": { + "ts/no-explicit-any": { + "count": 6 + } + }, + "models/share.ts": { + "ts/no-empty-object-type": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 2 + } + }, + "scripts/analyze-component.js": { + "unused-imports/no-unused-vars": { + "count": 1 + } + }, + "scripts/component-analyzer.js": { + "regexp/no-unused-capturing-group": { + "count": 6 + } + }, + "scripts/optimize-standalone.js": { + "unused-imports/no-unused-vars": { + "count": 2 + } + }, + "service/annotation.ts": { + "ts/no-explicit-any": { + "count": 4 + } + }, + "service/apps.ts": { + "ts/no-explicit-any": { + "count": 17 + } + }, + "service/base.ts": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "service/common.ts": { + "ts/no-explicit-any": { + "count": 29 + } + }, + "service/datasets.ts": { + "ts/no-explicit-any": { + "count": 8 + } + }, + "service/debug.ts": { + "ts/no-explicit-any": { + "count": 7 + } + }, + "service/explore.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "service/fetch.ts": { + "regexp/no-unused-capturing-group": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 2 + } + }, + "service/share.ts": { + "ts/no-explicit-any": { + "count": 4 + } + }, + "service/tools.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "service/use-apps.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "service/use-common.ts": { + "ts/no-empty-object-type": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "service/use-endpoints.ts": { + "ts/no-explicit-any": { + "count": 7 + } + }, + "service/use-pipeline.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "service/use-plugins-auth.ts": { + "ts/no-explicit-any": { + "count": 4 + } + }, + "service/use-plugins.ts": { + "react-hooks-extra/no-direct-set-state-in-use-effect": { + "count": 1 + }, + "regexp/no-unused-capturing-group": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 3 + } + }, + "service/use-tools.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "service/use-workflow.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "service/utils.spec.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "service/workflow-payload.ts": { + "ts/no-explicit-any": { + "count": 10 + } + }, + "testing/testing.md": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "types/app.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "types/assets.d.ts": { + "ts/no-explicit-any": { + "count": 5 + } + }, + "types/lamejs.d.ts": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "types/pipeline.tsx": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "types/react-18-input-autosize.d.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "types/workflow.ts": { + "ts/no-explicit-any": { + "count": 15 + } + }, + "utils/clipboard.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "utils/completion-params.spec.ts": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "utils/completion-params.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "utils/error-parser.ts": { + "no-console": { + "count": 1 + }, + "ts/no-explicit-any": { + "count": 1 + } + }, + "utils/format.spec.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "utils/get-icon.spec.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "utils/gtag.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "utils/index.spec.ts": { + "test/no-identical-title": { + "count": 2 + }, + "ts/no-explicit-any": { + "count": 8 + } + }, + "utils/index.ts": { + "ts/no-explicit-any": { + "count": 3 + } + }, + "utils/mcp.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "utils/model-config.spec.ts": { + "ts/no-explicit-any": { + "count": 13 + } + }, + "utils/model-config.ts": { + "ts/no-explicit-any": { + "count": 6 + } + }, + "utils/navigation.spec.ts": { + "ts/no-explicit-any": { + "count": 4 + } + }, + "utils/tool-call.spec.ts": { + "ts/no-explicit-any": { + "count": 1 + } + }, + "utils/validators.ts": { + "ts/no-explicit-any": { + "count": 2 + } + }, + "vitest.config.ts": { + "ts/no-explicit-any": { + "count": 1 + } + } +} diff --git a/web/eslint.config.mjs b/web/eslint.config.mjs index fc9f6c16b9..05c7502612 100644 --- a/web/eslint.config.mjs +++ b/web/eslint.config.mjs @@ -9,30 +9,15 @@ import difyI18n from './eslint-rules/index.js' export default antfu( { react: { + reactCompiler: true, overrides: { 'react/no-context-provider': 'off', 'react/no-forward-ref': 'off', 'react/no-use-context': 'off', - 'react/prefer-namespace-import': 'error', - // React Compiler rules - // Set to warn for gradual adoption - 'react-hooks/config': 'warn', - 'react-hooks/error-boundaries': 'warn', - 'react-hooks/component-hook-factories': 'warn', - 'react-hooks/gating': 'warn', - 'react-hooks/globals': 'warn', - 'react-hooks/immutability': 'warn', - 'react-hooks/preserve-manual-memoization': 'warn', - 'react-hooks/purity': 'warn', - 'react-hooks/refs': 'warn', // prefer react-hooks-extra/no-direct-set-state-in-use-effect 'react-hooks/set-state-in-effect': 'off', - 'react-hooks/set-state-in-render': 'warn', - 'react-hooks/static-components': 'warn', - 'react-hooks/unsupported-syntax': 'warn', - 'react-hooks/use-memo': 'warn', - 'react-hooks/incompatible-library': 'warn', + 'react-hooks-extra/no-direct-set-state-in-use-effect': 'error', }, }, nextjs: true, @@ -40,7 +25,7 @@ export default antfu( typescript: { overrides: { 'ts/consistent-type-definitions': ['error', 'type'], - 'ts/no-explicit-any': 'warn', + 'ts/no-explicit-any': 'error', }, }, test: { @@ -54,6 +39,11 @@ export default antfu( }, }, }, + { + rules: { + 'node/prefer-global/process': 'off', + }, + }, { files: ['**/*.ts', '**/*.tsx'], settings: { @@ -62,32 +52,6 @@ export default antfu( }, }, }, - // downgrade some rules from error to warn for gradual adoption - // we should fix these in following pull requests - { - // @keep-sorted - rules: { - 'next/inline-script-id': 'warn', - 'no-console': 'warn', - 'no-irregular-whitespace': 'warn', - 'node/prefer-global/buffer': 'warn', - 'node/prefer-global/process': 'warn', - 'react/no-create-ref': 'warn', - 'react/no-missing-key': 'warn', - 'react/no-nested-component-definitions': 'warn', - 'regexp/no-dupe-disjunctions': 'warn', - 'regexp/no-super-linear-backtracking': 'warn', - 'regexp/no-unused-capturing-group': 'warn', - 'regexp/no-useless-assertions': 'warn', - 'regexp/no-useless-quantifier': 'warn', - 'style/multiline-ternary': 'warn', - 'test/no-identical-title': 'warn', - 'test/prefer-hooks-in-order': 'warn', - 'ts/no-empty-object-type': 'warn', - 'unicorn/prefer-number-properties': 'warn', - 'unused-imports/no-unused-vars': 'warn', - }, - }, storybook.configs['flat/recommended'], ...pluginQuery.configs['flat/recommended'], // sonar @@ -178,19 +142,19 @@ export default antfu( }, }, // dify i18n namespace migration - { - files: ['**/*.ts', '**/*.tsx'], - ignores: ['eslint-rules/**', 'i18n/**', 'i18n-config/**'], - plugins: { - 'dify-i18n': difyI18n, - }, - rules: { - // 'dify-i18n/no-as-any-in-t': ['error', { mode: 'all' }], - 'dify-i18n/no-as-any-in-t': 'error', - // 'dify-i18n/no-legacy-namespace-prefix': 'error', - // 'dify-i18n/require-ns-option': 'error', - }, - }, + // { + // files: ['**/*.ts', '**/*.tsx'], + // ignores: ['eslint-rules/**', 'i18n/**', 'i18n-config/**'], + // plugins: { + // 'dify-i18n': difyI18n, + // }, + // rules: { + // // 'dify-i18n/no-as-any-in-t': ['error', { mode: 'all' }], + // 'dify-i18n/no-as-any-in-t': 'error', + // // 'dify-i18n/no-legacy-namespace-prefix': 'error', + // // 'dify-i18n/require-ns-option': 'error', + // }, + // }, // i18n JSON validation rules { files: ['i18n/**/*.json'], diff --git a/web/package.json b/web/package.json index a4d6da1532..56475a8da5 100644 --- a/web/package.json +++ b/web/package.json @@ -28,6 +28,7 @@ "build:docker": "next build && node scripts/optimize-standalone.js", "start": "node ./scripts/copy-and-start.mjs", "lint": "eslint --cache --cache-location node_modules/.cache/eslint/.eslint-cache", + "lint:ci": "pnpm lint --concurrency 3", "lint:fix": "pnpm lint --fix", "lint:quiet": "pnpm lint --quiet", "lint:complexity": "pnpm lint --rule 'complexity: [error, {max: 15}]' --quiet", From 14f123802d4118422c3f27ce275c84b31b24cd5f Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Mon, 19 Jan 2026 10:28:06 +0800 Subject: [PATCH 04/62] chore: update vite related version (#31180) --- web/eslint-suppressions.json | 5 - web/package.json | 9 +- web/pnpm-lock.yaml | 524 +++++++++++------------------------ web/vitest.config.ts | 2 +- 4 files changed, 165 insertions(+), 375 deletions(-) diff --git a/web/eslint-suppressions.json b/web/eslint-suppressions.json index b043a2d951..5ffd2b8772 100644 --- a/web/eslint-suppressions.json +++ b/web/eslint-suppressions.json @@ -5098,10 +5098,5 @@ "ts/no-explicit-any": { "count": 2 } - }, - "vitest.config.ts": { - "ts/no-explicit-any": { - "count": 1 - } } } diff --git a/web/package.json b/web/package.json index 56475a8da5..8a3cf243d9 100644 --- a/web/package.json +++ b/web/package.json @@ -194,7 +194,7 @@ "@typescript-eslint/parser": "^8.53.0", "@typescript/native-preview": "^7.0.0-dev", "@vitejs/plugin-react": "^5.1.2", - "@vitest/coverage-v8": "4.0.16", + "@vitest/coverage-v8": "^4.0.17", "autoprefixer": "^10.4.21", "code-inspector-plugin": "1.2.9", "cross-env": "^10.1.0", @@ -220,9 +220,9 @@ "tsx": "^4.21.0", "typescript": "^5.9.3", "uglify-js": "^3.19.3", - "vite": "^7.3.0", - "vite-tsconfig-paths": "^6.0.3", - "vitest": "^4.0.16" + "vite": "^7.3.1", + "vite-tsconfig-paths": "^6.0.4", + "vitest": "^4.0.17" }, "pnpm": { "overrides": { @@ -262,7 +262,6 @@ "string.prototype.repeat": "npm:@nolyfill/string.prototype.repeat@^1", "string.prototype.trimend": "npm:@nolyfill/string.prototype.trimend@^1", "typed-array-buffer": "npm:@nolyfill/typed-array-buffer@^1", - "vite@<6.4.1": "6.4.1", "which-typed-array": "npm:@nolyfill/which-typed-array@^1" }, "ignoredBuiltDependencies": [ diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yaml index 50e2bd543a..a6c31f2f62 100644 --- a/web/pnpm-lock.yaml +++ b/web/pnpm-lock.yaml @@ -48,7 +48,6 @@ overrides: string.prototype.repeat: npm:@nolyfill/string.prototype.repeat@^1 string.prototype.trimend: npm:@nolyfill/string.prototype.trimend@^1 typed-array-buffer: npm:@nolyfill/typed-array-buffer@^1 - vite@<6.4.1: 6.4.1 which-typed-array: npm:@nolyfill/which-typed-array@^1 importers: @@ -361,10 +360,10 @@ importers: devDependencies: '@antfu/eslint-config': specifier: ^7.0.1 - version: 7.0.1(@eslint-react/eslint-plugin@2.7.0(eslint@9.39.2(jiti@1.21.7))(typescript@5.9.3))(@next/eslint-plugin-next@15.5.9)(@vue/compiler-sfc@3.5.25)(eslint-plugin-react-hooks@7.0.1(eslint@9.39.2(jiti@1.21.7)))(eslint-plugin-react-refresh@0.4.26(eslint@9.39.2(jiti@1.21.7)))(eslint@9.39.2(jiti@1.21.7))(typescript@5.9.3)(vitest@4.0.16(@types/node@18.15.0)(happy-dom@20.0.11)(jiti@1.21.7)(jsdom@27.3.0(canvas@3.2.0))(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) + version: 7.0.1(@eslint-react/eslint-plugin@2.7.0(eslint@9.39.2(jiti@1.21.7))(typescript@5.9.3))(@next/eslint-plugin-next@15.5.9)(@vue/compiler-sfc@3.5.25)(eslint-plugin-react-hooks@7.0.1(eslint@9.39.2(jiti@1.21.7)))(eslint-plugin-react-refresh@0.4.26(eslint@9.39.2(jiti@1.21.7)))(eslint@9.39.2(jiti@1.21.7))(typescript@5.9.3)(vitest@4.0.17(@types/node@18.15.0)(happy-dom@20.0.11)(jiti@1.21.7)(jsdom@27.3.0(canvas@3.2.0))(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) '@chromatic-com/storybook': specifier: ^4.1.1 - version: 4.1.3(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2))) + version: 4.1.3(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2))) '@eslint-react/eslint-plugin': specifier: ^2.7.0 version: 2.7.0(eslint@9.39.2(jiti@1.21.7))(typescript@5.9.3) @@ -391,22 +390,22 @@ importers: version: 9.5.0(@swc/helpers@0.5.17)(esbuild-wasm@0.27.2)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.95.0))(react@19.2.3)(typescript@5.9.3) '@storybook/addon-docs': specifier: 9.1.13 - version: 9.1.13(@types/react@19.2.7)(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2))) + version: 9.1.13(@types/react@19.2.7)(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2))) '@storybook/addon-links': specifier: 9.1.13 - version: 9.1.13(react@19.2.3)(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2))) + version: 9.1.13(react@19.2.3)(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2))) '@storybook/addon-onboarding': specifier: 9.1.13 - version: 9.1.13(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2))) + version: 9.1.13(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2))) '@storybook/addon-themes': specifier: 9.1.13 - version: 9.1.13(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2))) + version: 9.1.13(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2))) '@storybook/nextjs': specifier: 9.1.13 - version: 9.1.13(esbuild@0.27.2)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.95.0))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.95.0)(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))(type-fest@4.2.0)(typescript@5.9.3)(uglify-js@3.19.3)(webpack-hot-middleware@2.26.1)(webpack@5.103.0(esbuild@0.27.2)(uglify-js@3.19.3)) + version: 9.1.13(esbuild@0.27.2)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.95.0))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.95.0)(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))(type-fest@4.2.0)(typescript@5.9.3)(uglify-js@3.19.3)(webpack-hot-middleware@2.26.1)(webpack@5.103.0(esbuild@0.27.2)(uglify-js@3.19.3)) '@storybook/react': specifier: 9.1.17 - version: 9.1.17(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))(typescript@5.9.3) + version: 9.1.17(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))(typescript@5.9.3) '@tanstack/eslint-plugin-query': specifier: ^5.91.2 version: 5.91.2(eslint@9.39.2(jiti@1.21.7))(typescript@5.9.3) @@ -478,10 +477,10 @@ importers: version: 7.0.0-dev.20251209.1 '@vitejs/plugin-react': specifier: ^5.1.2 - version: 5.1.2(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) + version: 5.1.2(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) '@vitest/coverage-v8': - specifier: 4.0.16 - version: 4.0.16(vitest@4.0.16(@types/node@18.15.0)(happy-dom@20.0.11)(jiti@1.21.7)(jsdom@27.3.0(canvas@3.2.0))(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) + specifier: ^4.0.17 + version: 4.0.17(vitest@4.0.17(@types/node@18.15.0)(happy-dom@20.0.11)(jiti@1.21.7)(jsdom@27.3.0(canvas@3.2.0))(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) autoprefixer: specifier: ^10.4.21 version: 10.4.22(postcss@8.5.6) @@ -508,7 +507,7 @@ importers: version: 3.0.5(eslint@9.39.2(jiti@1.21.7)) eslint-plugin-storybook: specifier: ^10.1.11 - version: 10.1.11(eslint@9.39.2(jiti@1.21.7))(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))(typescript@5.9.3) + version: 10.1.11(eslint@9.39.2(jiti@1.21.7))(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))(typescript@5.9.3) eslint-plugin-tailwindcss: specifier: ^3.18.2 version: 3.18.2(tailwindcss@3.4.18(tsx@4.21.0)(yaml@2.8.2)) @@ -544,7 +543,7 @@ importers: version: 9.5.0(typescript@5.9.3) storybook: specifier: 9.1.17 - version: 9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) + version: 9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) tailwindcss: specifier: ^3.4.18 version: 3.4.18(tsx@4.21.0)(yaml@2.8.2) @@ -558,14 +557,14 @@ importers: specifier: ^3.19.3 version: 3.19.3 vite: - specifier: ^7.3.0 - version: 7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2) + specifier: ^7.3.1 + version: 7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2) vite-tsconfig-paths: - specifier: ^6.0.3 - version: 6.0.3(typescript@5.9.3)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) + specifier: ^6.0.4 + version: 6.0.4(typescript@5.9.3)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) vitest: - specifier: ^4.0.16 - version: 4.0.16(@types/node@18.15.0)(happy-dom@20.0.11)(jiti@1.21.7)(jsdom@27.3.0(canvas@3.2.0))(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2) + specifier: ^4.0.17 + version: 4.0.17(@types/node@18.15.0)(happy-dom@20.0.11)(jiti@1.21.7)(jsdom@27.3.0(canvas@3.2.0))(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2) packages: @@ -1583,12 +1582,6 @@ packages: peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 - '@eslint-community/eslint-utils@4.9.0': - resolution: {integrity: sha512-ayVFHdtZ+hsq1t2Dy24wCmGXGe4q9Gu3smhLYALJrr473ZH27MsnSL+LKUlimp4BWJqMDMLmPpx/Q9R3OAlL4g==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - peerDependencies: - eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 - '@eslint-community/eslint-utils@4.9.1': resolution: {integrity: sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -3646,9 +3639,6 @@ packages: '@types/node@18.15.0': resolution: {integrity: sha512-z6nr0TTEOBGkzLGmbypWOGnpSpSIBorEhC4L+4HeQ2iezKCi4f77kyslRwvHeNitymGQ+oFyIWGP96l/DPSV9w==} - '@types/node@20.19.26': - resolution: {integrity: sha512-0l6cjgF0XnihUpndDhk+nyD3exio3iKaYROSgvh/qSevPXax3L8p5DBRFjbvalnwatGgHEQn2R88y2fA3g4irg==} - '@types/node@20.19.28': resolution: {integrity: sha512-VyKBr25BuFDzBFCK5sUM6ZXiWfqgCTwTAOK8qzGV/m9FCirXYDlmczJ+d5dXBAQALGCdRRdbteKYfJ84NGEusw==} @@ -3725,32 +3715,16 @@ packages: eslint: ^8.57.0 || ^9.0.0 typescript: '>=4.8.4 <6.0.0' - '@typescript-eslint/project-service@8.50.1': - resolution: {integrity: sha512-E1ur1MCVf+YiP89+o4Les/oBAVzmSbeRB0MQLfSlYtbWU17HPxZ6Bhs5iYmKZRALvEuBoXIZMOIRRc/P++Ortg==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - typescript: '>=4.8.4 <6.0.0' - '@typescript-eslint/project-service@8.53.0': resolution: {integrity: sha512-Bl6Gdr7NqkqIP5yP9z1JU///Nmes4Eose6L1HwpuVHwScgDPPuEWbUVhvlZmb8hy0vX9syLk5EGNL700WcBlbg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: typescript: '>=4.8.4 <6.0.0' - '@typescript-eslint/scope-manager@8.50.1': - resolution: {integrity: sha512-mfRx06Myt3T4vuoHaKi8ZWNTPdzKPNBhiblze5N50//TSHOAQQevl/aolqA/BcqqbJ88GUnLqjjcBc8EWdBcVw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@typescript-eslint/scope-manager@8.53.0': resolution: {integrity: sha512-kWNj3l01eOGSdVBnfAF2K1BTh06WS0Yet6JUgb9Cmkqaz3Jlu0fdVUjj9UI8gPidBWSMqDIglmEXifSgDT/D0g==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@typescript-eslint/tsconfig-utils@8.50.1': - resolution: {integrity: sha512-ooHmotT/lCWLXi55G4mvaUF60aJa012QzvLK0Y+Mp4WdSt17QhMhWOaBWeGTFVkb2gDgBe19Cxy1elPXylslDw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - typescript: '>=4.8.4 <6.0.0' - '@typescript-eslint/tsconfig-utils@8.53.0': resolution: {integrity: sha512-K6Sc0R5GIG6dNoPdOooQ+KtvT5KCKAvTcY8h2rIuul19vxH5OTQk7ArKkd4yTzkw66WnNY0kPPzzcmWA+XRmiA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -3764,33 +3738,16 @@ packages: eslint: ^8.57.0 || ^9.0.0 typescript: '>=4.8.4 <6.0.0' - '@typescript-eslint/types@8.50.1': - resolution: {integrity: sha512-v5lFIS2feTkNyMhd7AucE/9j/4V9v5iIbpVRncjk/K0sQ6Sb+Np9fgYS/63n6nwqahHQvbmujeBL7mp07Q9mlA==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@typescript-eslint/types@8.53.0': resolution: {integrity: sha512-Bmh9KX31Vlxa13+PqPvt4RzKRN1XORYSLlAE+sO1i28NkisGbTtSLFVB3l7PWdHtR3E0mVMuC7JilWJ99m2HxQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@typescript-eslint/typescript-estree@8.50.1': - resolution: {integrity: sha512-woHPdW+0gj53aM+cxchymJCrh0cyS7BTIdcDxWUNsclr9VDkOSbqC13juHzxOmQ22dDkMZEpZB+3X1WpUvzgVQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - typescript: '>=4.8.4 <6.0.0' - '@typescript-eslint/typescript-estree@8.53.0': resolution: {integrity: sha512-pw0c0Gdo7Z4xOG987u3nJ8akL9093yEEKv8QTJ+Bhkghj1xyj8cgPaavlr9rq8h7+s6plUJ4QJYw2gCZodqmGw==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: typescript: '>=4.8.4 <6.0.0' - '@typescript-eslint/utils@8.50.1': - resolution: {integrity: sha512-lCLp8H1T9T7gPbEuJSnHwnSuO9mDf8mfK/Nion5mZmiEaQD9sWf9W4dfeFqRyqRjF06/kBuTmAqcs9sewM2NbQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - eslint: ^8.57.0 || ^9.0.0 - typescript: '>=4.8.4 <6.0.0' - '@typescript-eslint/utils@8.53.0': resolution: {integrity: sha512-XDY4mXTez3Z1iRDI5mbRhH4DFSt46oaIFsLg+Zn97+sYrXACziXSQcSelMybnVZ5pa1P6xYkPr5cMJyunM1ZDA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -3798,10 +3755,6 @@ packages: eslint: ^8.57.0 || ^9.0.0 typescript: '>=4.8.4 <6.0.0' - '@typescript-eslint/visitor-keys@8.50.1': - resolution: {integrity: sha512-IrDKrw7pCRUR94zeuCSUWQ+w8JEf5ZX5jl/e6AHGSLi1/zIr0lgutfn/7JpfCey+urpgQEdrZVYzCaVVKiTwhQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@typescript-eslint/visitor-keys@8.53.0': resolution: {integrity: sha512-LZ2NqIHFhvFwxG0qZeLL9DvdNAHPGCY5dIRwBhyYeU+LfLhcStE1ImjsuTG/WaVh3XysGaeLW8Rqq7cGkPCFvw==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -3852,13 +3805,13 @@ packages: resolution: {integrity: sha512-EcA07pHJouywpzsoTUqNh5NwGayl2PPVEJKUSinGGSxFGYn+shYbqMGBg6FXDqgXum9Ou/ecb+411ssw8HImJQ==} engines: {node: ^20.19.0 || >=22.12.0} peerDependencies: - vite: 6.4.1 + vite: ^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 - '@vitest/coverage-v8@4.0.16': - resolution: {integrity: sha512-2rNdjEIsPRzsdu6/9Eq0AYAzYdpP6Bx9cje9tL3FE5XzXRQF1fNU9pe/1yE8fCrS0HD+fBtt6gLPh6LI57tX7A==} + '@vitest/coverage-v8@4.0.17': + resolution: {integrity: sha512-/6zU2FLGg0jsd+ePZcwHRy3+WpNTBBhDY56P4JTRqUN/Dp6CvOEa9HrikcQ4KfV2b2kAHUFB4dl1SuocWXSFEw==} peerDependencies: - '@vitest/browser': 4.0.16 - vitest: 4.0.16 + '@vitest/browser': 4.0.17 + vitest: 4.0.17 peerDependenciesMeta: '@vitest/browser': optional: true @@ -3879,25 +3832,25 @@ packages: '@vitest/expect@3.2.4': resolution: {integrity: sha512-Io0yyORnB6sikFlt8QW5K7slY4OjqNX9jmJQ02QDda8lyM6B5oNgVWoSoKPac8/kgnCUzuHQKrSLtu/uOqqrig==} - '@vitest/expect@4.0.16': - resolution: {integrity: sha512-eshqULT2It7McaJkQGLkPjPjNph+uevROGuIMJdG3V+0BSR2w9u6J9Lwu+E8cK5TETlfou8GRijhafIMhXsimA==} + '@vitest/expect@4.0.17': + resolution: {integrity: sha512-mEoqP3RqhKlbmUmntNDDCJeTDavDR+fVYkSOw8qRwJFaW/0/5zA9zFeTrHqNtcmwh6j26yMmwx2PqUDPzt5ZAQ==} '@vitest/mocker@3.2.4': resolution: {integrity: sha512-46ryTE9RZO/rfDd7pEqFl7etuyzekzEhUbTW3BvmeO/BcCMEgq59BKhek3dXDWgAj4oMK6OZi+vRr1wPW6qjEQ==} peerDependencies: msw: ^2.4.9 - vite: 6.4.1 + vite: ^5.0.0 || ^6.0.0 || ^7.0.0-0 peerDependenciesMeta: msw: optional: true vite: optional: true - '@vitest/mocker@4.0.16': - resolution: {integrity: sha512-yb6k4AZxJTB+q9ycAvsoxGn+j/po0UaPgajllBgt1PzoMAAmJGYFdDk0uCcRcxb3BrME34I6u8gHZTQlkqSZpg==} + '@vitest/mocker@4.0.17': + resolution: {integrity: sha512-+ZtQhLA3lDh1tI2wxe3yMsGzbp7uuJSWBM1iTIKCbppWTSBN09PUC+L+fyNlQApQoR+Ps8twt2pbSSXg2fQVEQ==} peerDependencies: msw: ^2.4.9 - vite: 6.4.1 + vite: ^6.0.0 || ^7.0.0-0 peerDependenciesMeta: msw: optional: true @@ -3907,26 +3860,26 @@ packages: '@vitest/pretty-format@3.2.4': resolution: {integrity: sha512-IVNZik8IVRJRTr9fxlitMKeJeXFFFN0JaB9PHPGQ8NKQbGpfjlTx9zO4RefN8gp7eqjNy8nyK3NZmBzOPeIxtA==} - '@vitest/pretty-format@4.0.16': - resolution: {integrity: sha512-eNCYNsSty9xJKi/UdVD8Ou16alu7AYiS2fCPRs0b1OdhJiV89buAXQLpTbe+X8V9L6qrs9CqyvU7OaAopJYPsA==} + '@vitest/pretty-format@4.0.17': + resolution: {integrity: sha512-Ah3VAYmjcEdHg6+MwFE17qyLqBHZ+ni2ScKCiW2XrlSBV4H3Z7vYfPfz7CWQ33gyu76oc0Ai36+kgLU3rfF4nw==} - '@vitest/runner@4.0.16': - resolution: {integrity: sha512-VWEDm5Wv9xEo80ctjORcTQRJ539EGPB3Pb9ApvVRAY1U/WkHXmmYISqU5E79uCwcW7xYUV38gwZD+RV755fu3Q==} + '@vitest/runner@4.0.17': + resolution: {integrity: sha512-JmuQyf8aMWoo/LmNFppdpkfRVHJcsgzkbCA+/Bk7VfNH7RE6Ut2qxegeyx2j3ojtJtKIbIGy3h+KxGfYfk28YQ==} - '@vitest/snapshot@4.0.16': - resolution: {integrity: sha512-sf6NcrYhYBsSYefxnry+DR8n3UV4xWZwWxYbCJUt2YdvtqzSPR7VfGrY0zsv090DAbjFZsi7ZaMi1KnSRyK1XA==} + '@vitest/snapshot@4.0.17': + resolution: {integrity: sha512-npPelD7oyL+YQM2gbIYvlavlMVWUfNNGZPcu0aEUQXt7FXTuqhmgiYupPnAanhKvyP6Srs2pIbWo30K0RbDtRQ==} '@vitest/spy@3.2.4': resolution: {integrity: sha512-vAfasCOe6AIK70iP5UD11Ac4siNUNJ9i/9PZ3NKx07sG6sUxeag1LWdNrMWeKKYBLlzuK+Gn65Yd5nyL6ds+nw==} - '@vitest/spy@4.0.16': - resolution: {integrity: sha512-4jIOWjKP0ZUaEmJm00E0cOBLU+5WE0BpeNr3XN6TEF05ltro6NJqHWxXD0kA8/Zc8Nh23AT8WQxwNG+WeROupw==} + '@vitest/spy@4.0.17': + resolution: {integrity: sha512-I1bQo8QaP6tZlTomQNWKJE6ym4SHf3oLS7ceNjozxxgzavRAgZDc06T7kD8gb9bXKEgcLNt00Z+kZO6KaJ62Ew==} '@vitest/utils@3.2.4': resolution: {integrity: sha512-fB2V0JFrQSMsCo9HiSq3Ezpdv4iYaXRG1Sx8edX3MwxfyNn83mKiGzOcH+Fkxt4MHxr3y42fQi1oeAInqgX2QA==} - '@vitest/utils@4.0.16': - resolution: {integrity: sha512-h8z9yYhV3e1LEfaQ3zdypIrnAg/9hguReGZoS7Gl0aBG5xgA410zBqECqmaF/+RkTggRsfnzc1XaAHA6bmUufA==} + '@vitest/utils@4.0.17': + resolution: {integrity: sha512-RG6iy+IzQpa9SB8HAFHJ9Y+pTzI+h8553MrciN9eC6TFBErqrQaTas4vG+MVj8S4uKk8uTT2p0vgZPnTdxd96w==} '@vue/compiler-core@3.5.25': resolution: {integrity: sha512-vay5/oQJdsNHmliWoZfHPoVZZRmnSWhug0BYT34njkYTPqClh3DNWLkZNJBVSjsNMrg0CCrBfoKkjZQPM/QVUw==} @@ -4139,8 +4092,8 @@ packages: resolution: {integrity: sha512-6t10qk83GOG8p0vKmaCr8eiilZwO171AvbROMtvvNiwrTly62t+7XkA8RdIIVbpMhCASAsxgAzdRSwh6nw/5Dg==} engines: {node: '>=4'} - ast-v8-to-istanbul@0.3.9: - resolution: {integrity: sha512-dSC6tJeOJxbZrPzPbv5mMd6CMiQ1ugaVXXPRad2fXUSsy1kstFn9XQWemV9VW7Y7kpxgQ/4WMoZfwdH8XSU48w==} + ast-v8-to-istanbul@0.3.10: + resolution: {integrity: sha512-p4K7vMz2ZSk3wN8l5o3y2bJAoZXT3VuJI5OLTATY/01CYWumWvwkUw0SqDBnNq6IiTO3qDa1eSQDibAV8g7XOQ==} astring@1.9.0: resolution: {integrity: sha512-LElXdjswlqjWrPpJFg1Fx4wpkOCxj1TDHlSV4PlaRxHGWko024xICaa97ZkMfs6DRKlCguiAI+rbXv5GWwXIkg==} @@ -5301,10 +5254,6 @@ packages: engines: {node: '>=4'} hasBin: true - esquery@1.6.0: - resolution: {integrity: sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==} - engines: {node: '>=0.10'} - esquery@1.7.0: resolution: {integrity: sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==} engines: {node: '>=0.10'} @@ -5968,10 +5917,6 @@ packages: resolution: {integrity: sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==} engines: {node: '>=10'} - istanbul-lib-source-maps@5.0.6: - resolution: {integrity: sha512-yg2d+Em4KizZC5niWhQaIomgf5WlL4vOOjZ5xGCmF8SnPE/mDWWXgvRExdcpCgh9lLRRa1/fSYp2ymmbJ1pI+A==} - engines: {node: '>=10'} - istanbul-reports@3.2.0: resolution: {integrity: sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==} engines: {node: '>=8'} @@ -6585,7 +6530,6 @@ packages: next@15.5.9: resolution: {integrity: sha512-agNLK89seZEtC5zUHwtut0+tNrc0Xw4FT/Dg+B/VLEo9pAcS9rtTKpek3V6kVcVwsB2YlqMaHdfZL4eLEVYuCg==} engines: {node: ^18.18.0 || ^19.8.0 || >= 20.0.0} - deprecated: This version has a security vulnerability. Please upgrade to a patched version. See https://nextjs.org/blog/security-update-2025-12-11 for more details. hasBin: true peerDependencies: '@opentelemetry/api': ^1.1.0 @@ -7980,12 +7924,6 @@ packages: trough@2.2.0: resolution: {integrity: sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==} - ts-api-utils@2.1.0: - resolution: {integrity: sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==} - engines: {node: '>=18.12'} - peerDependencies: - typescript: '>=4.8.4' - ts-api-utils@2.4.0: resolution: {integrity: sha512-3TaVTaAv2gTiMB35i3FiGJaRfwb3Pyn/j3m/bfAvGe8FB7CF6u+LMYqYlDh7reQf7UNvoTvdfAqHGmPGOSsPmA==} engines: {node: '>=18.12'} @@ -8242,56 +8180,16 @@ packages: vfile@6.0.3: resolution: {integrity: sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==} - vite-tsconfig-paths@6.0.3: - resolution: {integrity: sha512-7bL7FPX/DSviaZGYUKowWF1AiDVWjMjxNbE8lyaVGDezkedWqfGhlnQ4BZXre0ZN5P4kAgIJfAlgFDVyjrCIyg==} + vite-tsconfig-paths@6.0.4: + resolution: {integrity: sha512-iIsEJ+ek5KqRTK17pmxtgIxXtqr3qDdE6OxrP9mVeGhVDNXRJTKN/l9oMbujTQNzMLe6XZ8qmpztfbkPu2TiFQ==} peerDependencies: - vite: 6.4.1 + vite: '*' peerDependenciesMeta: vite: optional: true - vite@6.4.1: - resolution: {integrity: sha512-+Oxm7q9hDoLMyJOYfUYBuHQo+dkAloi33apOPP56pzj+vsdJDzr+j1NISE5pyaAuKL4A3UD34qd0lx5+kfKp2g==} - engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} - hasBin: true - peerDependencies: - '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0 - jiti: '>=1.21.0' - less: '*' - lightningcss: ^1.21.0 - sass: '*' - sass-embedded: '*' - stylus: '*' - sugarss: '*' - terser: ^5.16.0 - tsx: ^4.8.1 - yaml: ^2.4.2 - peerDependenciesMeta: - '@types/node': - optional: true - jiti: - optional: true - less: - optional: true - lightningcss: - optional: true - sass: - optional: true - sass-embedded: - optional: true - stylus: - optional: true - sugarss: - optional: true - terser: - optional: true - tsx: - optional: true - yaml: - optional: true - - vite@7.3.0: - resolution: {integrity: sha512-dZwN5L1VlUBewiP6H9s2+B3e3Jg96D0vzN+Ry73sOefebhYr9f94wwkMNN/9ouoU8pV1BqA1d1zGk8928cx0rg==} + vite@7.3.1: + resolution: {integrity: sha512-w+N7Hifpc3gRjZ63vYBXA56dvvRlNWRczTdmCBBa+CotUzAPf5b7YMdMR/8CQoeYE5LX3W4wj6RYTgonm1b9DA==} engines: {node: ^20.19.0 || >=22.12.0} hasBin: true peerDependencies: @@ -8330,18 +8228,18 @@ packages: yaml: optional: true - vitest@4.0.16: - resolution: {integrity: sha512-E4t7DJ9pESL6E3I8nFjPa4xGUd3PmiWDLsDztS2qXSJWfHtbQnwAWylaBvSNY48I3vr8PTqIZlyK8TE3V3CA4Q==} + vitest@4.0.17: + resolution: {integrity: sha512-FQMeF0DJdWY0iOnbv466n/0BudNdKj1l5jYgl5JVTwjSsZSlqyXFt/9+1sEyhR6CLowbZpV7O1sCHrzBhucKKg==} engines: {node: ^20.0.0 || ^22.0.0 || >=24.0.0} hasBin: true peerDependencies: '@edge-runtime/vm': '*' '@opentelemetry/api': ^1.9.0 '@types/node': ^20.0.0 || ^22.0.0 || >=24.0.0 - '@vitest/browser-playwright': 4.0.16 - '@vitest/browser-preview': 4.0.16 - '@vitest/browser-webdriverio': 4.0.16 - '@vitest/ui': 4.0.16 + '@vitest/browser-playwright': 4.0.17 + '@vitest/browser-preview': 4.0.17 + '@vitest/browser-webdriverio': 4.0.17 + '@vitest/ui': 4.0.17 happy-dom: '*' jsdom: '*' peerDependenciesMeta: @@ -8587,9 +8485,6 @@ packages: zod@3.25.76: resolution: {integrity: sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==} - zod@4.1.13: - resolution: {integrity: sha512-AvvthqfqrAhNH9dnfmrfKzX5upOdjUVJYFqNSlkmGf64gRaTzlPwz99IHYnVs28qYAybvAlBV+H7pn0saFY4Ig==} - zod@4.3.5: resolution: {integrity: sha512-k7Nwx6vuWx1IJ9Bjuf4Zt1PEllcwe7cls3VNzm4CQ1/hgtFUK2bRNG3rvnpPUhFjmqJKAKtjV576KnUkHocg/g==} @@ -8727,7 +8622,7 @@ snapshots: '@amplitude/rrweb-packer@2.0.0-alpha.32': dependencies: - '@amplitude/rrweb-types': 2.0.0-alpha.32 + '@amplitude/rrweb-types': 2.0.0-alpha.33 fflate: 0.4.8 '@amplitude/rrweb-plugin-console-record@2.0.0-alpha.32(@amplitude/rrweb@2.0.0-alpha.33)': @@ -8737,7 +8632,7 @@ snapshots: '@amplitude/rrweb-record@2.0.0-alpha.32': dependencies: '@amplitude/rrweb': 2.0.0-alpha.33 - '@amplitude/rrweb-types': 2.0.0-alpha.32 + '@amplitude/rrweb-types': 2.0.0-alpha.33 '@amplitude/rrweb-snapshot@2.0.0-alpha.33': dependencies: @@ -8786,10 +8681,10 @@ snapshots: '@amplitude/analytics-core': 2.35.0 '@amplitude/analytics-types': 2.11.0 '@amplitude/experiment-core': 0.7.2 - idb: 8.0.0 + idb: 8.0.3 tslib: 2.8.1 - '@antfu/eslint-config@7.0.1(@eslint-react/eslint-plugin@2.7.0(eslint@9.39.2(jiti@1.21.7))(typescript@5.9.3))(@next/eslint-plugin-next@15.5.9)(@vue/compiler-sfc@3.5.25)(eslint-plugin-react-hooks@7.0.1(eslint@9.39.2(jiti@1.21.7)))(eslint-plugin-react-refresh@0.4.26(eslint@9.39.2(jiti@1.21.7)))(eslint@9.39.2(jiti@1.21.7))(typescript@5.9.3)(vitest@4.0.16(@types/node@18.15.0)(happy-dom@20.0.11)(jiti@1.21.7)(jsdom@27.3.0(canvas@3.2.0))(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2))': + '@antfu/eslint-config@7.0.1(@eslint-react/eslint-plugin@2.7.0(eslint@9.39.2(jiti@1.21.7))(typescript@5.9.3))(@next/eslint-plugin-next@15.5.9)(@vue/compiler-sfc@3.5.25)(eslint-plugin-react-hooks@7.0.1(eslint@9.39.2(jiti@1.21.7)))(eslint-plugin-react-refresh@0.4.26(eslint@9.39.2(jiti@1.21.7)))(eslint@9.39.2(jiti@1.21.7))(typescript@5.9.3)(vitest@4.0.17(@types/node@18.15.0)(happy-dom@20.0.11)(jiti@1.21.7)(jsdom@27.3.0(canvas@3.2.0))(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2))': dependencies: '@antfu/install-pkg': 1.1.0 '@clack/prompts': 0.11.0 @@ -8798,7 +8693,7 @@ snapshots: '@stylistic/eslint-plugin': 5.7.0(eslint@9.39.2(jiti@1.21.7)) '@typescript-eslint/eslint-plugin': 8.53.0(@typescript-eslint/parser@8.53.0(eslint@9.39.2(jiti@1.21.7))(typescript@5.9.3))(eslint@9.39.2(jiti@1.21.7))(typescript@5.9.3) '@typescript-eslint/parser': 8.53.0(eslint@9.39.2(jiti@1.21.7))(typescript@5.9.3) - '@vitest/eslint-plugin': 1.6.6(eslint@9.39.2(jiti@1.21.7))(typescript@5.9.3)(vitest@4.0.16(@types/node@18.15.0)(happy-dom@20.0.11)(jiti@1.21.7)(jsdom@27.3.0(canvas@3.2.0))(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) + '@vitest/eslint-plugin': 1.6.6(eslint@9.39.2(jiti@1.21.7))(typescript@5.9.3)(vitest@4.0.17(@types/node@18.15.0)(happy-dom@20.0.11)(jiti@1.21.7)(jsdom@27.3.0(canvas@3.2.0))(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) ansis: 4.2.0 cac: 6.7.14 eslint: 9.39.2(jiti@1.21.7) @@ -9643,13 +9538,13 @@ snapshots: '@chevrotain/utils@11.0.3': {} - '@chromatic-com/storybook@4.1.3(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))': + '@chromatic-com/storybook@4.1.3(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))': dependencies: '@neoconfetti/react': 1.0.0 chromatic: 13.3.4 filesize: 10.1.6 jsonfile: 6.2.0 - storybook: 9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) + storybook: 9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) strip-ansi: 7.1.2 transitivePeerDependencies: - '@chromatic-com/cypress' @@ -9680,7 +9575,7 @@ snapshots: '@code-inspector/core@1.2.9': dependencies: '@vue/compiler-dom': 3.5.25 - chalk: 4.1.1 + chalk: 4.1.2 dotenv: 16.6.1 launch-ide: 1.2.0 portfinder: 1.0.38 @@ -9766,9 +9661,9 @@ snapshots: '@es-joy/jsdoccomment@0.78.0': dependencies: '@types/estree': 1.0.8 - '@typescript-eslint/types': 8.50.1 + '@typescript-eslint/types': 8.53.0 comment-parser: 1.4.1 - esquery: 1.6.0 + esquery: 1.7.0 jsdoc-type-pratt-parser: 7.0.0 '@es-joy/jsdoccomment@0.79.0': @@ -9865,11 +9760,6 @@ snapshots: eslint: 9.39.2(jiti@1.21.7) ignore: 7.0.5 - '@eslint-community/eslint-utils@4.9.0(eslint@9.39.2(jiti@1.21.7))': - dependencies: - eslint: 9.39.2(jiti@1.21.7) - eslint-visitor-keys: 3.4.3 - '@eslint-community/eslint-utils@4.9.1(eslint@9.39.2(jiti@1.21.7))': dependencies: eslint: 9.39.2(jiti@1.21.7) @@ -11395,38 +11285,38 @@ snapshots: '@standard-schema/spec@1.1.0': {} - '@storybook/addon-docs@9.1.13(@types/react@19.2.7)(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))': + '@storybook/addon-docs@9.1.13(@types/react@19.2.7)(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))': dependencies: '@mdx-js/react': 3.1.1(@types/react@19.2.7)(react@19.2.3) - '@storybook/csf-plugin': 9.1.13(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2))) + '@storybook/csf-plugin': 9.1.13(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2))) '@storybook/icons': 1.6.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3) - '@storybook/react-dom-shim': 9.1.13(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2))) + '@storybook/react-dom-shim': 9.1.13(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2))) react: 19.2.3 react-dom: 19.2.3(react@19.2.3) - storybook: 9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) + storybook: 9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) ts-dedent: 2.2.0 transitivePeerDependencies: - '@types/react' - '@storybook/addon-links@9.1.13(react@19.2.3)(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))': + '@storybook/addon-links@9.1.13(react@19.2.3)(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))': dependencies: '@storybook/global': 5.0.0 - storybook: 9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) + storybook: 9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) optionalDependencies: react: 19.2.3 - '@storybook/addon-onboarding@9.1.13(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))': + '@storybook/addon-onboarding@9.1.13(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))': dependencies: - storybook: 9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) + storybook: 9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) - '@storybook/addon-themes@9.1.13(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))': + '@storybook/addon-themes@9.1.13(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))': dependencies: - storybook: 9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) + storybook: 9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) ts-dedent: 2.2.0 - '@storybook/builder-webpack5@9.1.13(esbuild@0.27.2)(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))(typescript@5.9.3)(uglify-js@3.19.3)': + '@storybook/builder-webpack5@9.1.13(esbuild@0.27.2)(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))(typescript@5.9.3)(uglify-js@3.19.3)': dependencies: - '@storybook/core-webpack': 9.1.13(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2))) + '@storybook/core-webpack': 9.1.13(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2))) case-sensitive-paths-webpack-plugin: 2.4.0 cjs-module-lexer: 1.4.3 css-loader: 6.11.0(webpack@5.103.0(esbuild@0.27.2)(uglify-js@3.19.3)) @@ -11434,7 +11324,7 @@ snapshots: fork-ts-checker-webpack-plugin: 8.0.0(typescript@5.9.3)(webpack@5.103.0(esbuild@0.27.2)(uglify-js@3.19.3)) html-webpack-plugin: 5.6.5(webpack@5.103.0(esbuild@0.27.2)(uglify-js@3.19.3)) magic-string: 0.30.21 - storybook: 9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) + storybook: 9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) style-loader: 3.3.4(webpack@5.103.0(esbuild@0.27.2)(uglify-js@3.19.3)) terser-webpack-plugin: 5.3.15(esbuild@0.27.2)(uglify-js@3.19.3)(webpack@5.103.0(esbuild@0.27.2)(uglify-js@3.19.3)) ts-dedent: 2.2.0 @@ -11451,14 +11341,14 @@ snapshots: - uglify-js - webpack-cli - '@storybook/core-webpack@9.1.13(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))': + '@storybook/core-webpack@9.1.13(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))': dependencies: - storybook: 9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) + storybook: 9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) ts-dedent: 2.2.0 - '@storybook/csf-plugin@9.1.13(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))': + '@storybook/csf-plugin@9.1.13(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))': dependencies: - storybook: 9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) + storybook: 9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) unplugin: 1.16.1 '@storybook/global@5.0.0': {} @@ -11468,7 +11358,7 @@ snapshots: react: 19.2.3 react-dom: 19.2.3(react@19.2.3) - '@storybook/nextjs@9.1.13(esbuild@0.27.2)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.95.0))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.95.0)(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))(type-fest@4.2.0)(typescript@5.9.3)(uglify-js@3.19.3)(webpack-hot-middleware@2.26.1)(webpack@5.103.0(esbuild@0.27.2)(uglify-js@3.19.3))': + '@storybook/nextjs@9.1.13(esbuild@0.27.2)(next@15.5.9(@babel/core@7.28.5)(@playwright/test@1.57.0)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.95.0))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(sass@1.95.0)(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))(type-fest@4.2.0)(typescript@5.9.3)(uglify-js@3.19.3)(webpack-hot-middleware@2.26.1)(webpack@5.103.0(esbuild@0.27.2)(uglify-js@3.19.3))': dependencies: '@babel/core': 7.28.5 '@babel/plugin-syntax-bigint': 7.8.3(@babel/core@7.28.5) @@ -11484,9 +11374,9 @@ snapshots: '@babel/preset-typescript': 7.28.5(@babel/core@7.28.5) '@babel/runtime': 7.28.4 '@pmmmwh/react-refresh-webpack-plugin': 0.5.17(react-refresh@0.14.2)(type-fest@4.2.0)(webpack-hot-middleware@2.26.1)(webpack@5.103.0(esbuild@0.27.2)(uglify-js@3.19.3)) - '@storybook/builder-webpack5': 9.1.13(esbuild@0.27.2)(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))(typescript@5.9.3)(uglify-js@3.19.3) - '@storybook/preset-react-webpack': 9.1.13(esbuild@0.27.2)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))(typescript@5.9.3)(uglify-js@3.19.3) - '@storybook/react': 9.1.13(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))(typescript@5.9.3) + '@storybook/builder-webpack5': 9.1.13(esbuild@0.27.2)(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))(typescript@5.9.3)(uglify-js@3.19.3) + '@storybook/preset-react-webpack': 9.1.13(esbuild@0.27.2)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))(typescript@5.9.3)(uglify-js@3.19.3) + '@storybook/react': 9.1.13(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))(typescript@5.9.3) '@types/semver': 7.7.1 babel-loader: 9.2.1(@babel/core@7.28.5)(webpack@5.103.0(esbuild@0.27.2)(uglify-js@3.19.3)) css-loader: 6.11.0(webpack@5.103.0(esbuild@0.27.2)(uglify-js@3.19.3)) @@ -11502,7 +11392,7 @@ snapshots: resolve-url-loader: 5.0.0 sass-loader: 16.0.6(sass@1.95.0)(webpack@5.103.0(esbuild@0.27.2)(uglify-js@3.19.3)) semver: 7.7.3 - storybook: 9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) + storybook: 9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) style-loader: 3.3.4(webpack@5.103.0(esbuild@0.27.2)(uglify-js@3.19.3)) styled-jsx: 5.1.7(@babel/core@7.28.5)(react@19.2.3) tsconfig-paths: 4.2.0 @@ -11528,9 +11418,9 @@ snapshots: - webpack-hot-middleware - webpack-plugin-serve - '@storybook/preset-react-webpack@9.1.13(esbuild@0.27.2)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))(typescript@5.9.3)(uglify-js@3.19.3)': + '@storybook/preset-react-webpack@9.1.13(esbuild@0.27.2)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))(typescript@5.9.3)(uglify-js@3.19.3)': dependencies: - '@storybook/core-webpack': 9.1.13(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2))) + '@storybook/core-webpack': 9.1.13(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2))) '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0(typescript@5.9.3)(webpack@5.103.0(esbuild@0.27.2)(uglify-js@3.19.3)) '@types/semver': 7.7.1 find-up: 7.0.0 @@ -11540,7 +11430,7 @@ snapshots: react-dom: 19.2.3(react@19.2.3) resolve: 1.22.11 semver: 7.7.3 - storybook: 9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) + storybook: 9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) tsconfig-paths: 4.2.0 webpack: 5.103.0(esbuild@0.27.2)(uglify-js@3.19.3) optionalDependencies: @@ -11566,35 +11456,35 @@ snapshots: transitivePeerDependencies: - supports-color - '@storybook/react-dom-shim@9.1.13(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))': + '@storybook/react-dom-shim@9.1.13(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))': dependencies: react: 19.2.3 react-dom: 19.2.3(react@19.2.3) - storybook: 9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) + storybook: 9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) - '@storybook/react-dom-shim@9.1.17(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))': + '@storybook/react-dom-shim@9.1.17(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))': dependencies: react: 19.2.3 react-dom: 19.2.3(react@19.2.3) - storybook: 9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) + storybook: 9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) - '@storybook/react@9.1.13(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))(typescript@5.9.3)': + '@storybook/react@9.1.13(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))(typescript@5.9.3)': dependencies: '@storybook/global': 5.0.0 - '@storybook/react-dom-shim': 9.1.13(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2))) + '@storybook/react-dom-shim': 9.1.13(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2))) react: 19.2.3 react-dom: 19.2.3(react@19.2.3) - storybook: 9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) + storybook: 9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) optionalDependencies: typescript: 5.9.3 - '@storybook/react@9.1.17(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))(typescript@5.9.3)': + '@storybook/react@9.1.17(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))(typescript@5.9.3)': dependencies: '@storybook/global': 5.0.0 - '@storybook/react-dom-shim': 9.1.17(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2))) + '@storybook/react-dom-shim': 9.1.17(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2))) react: 19.2.3 react-dom: 19.2.3(react@19.2.3) - storybook: 9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) + storybook: 9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) optionalDependencies: typescript: 5.9.3 @@ -11727,7 +11617,7 @@ snapshots: '@tanstack/eslint-plugin-query@5.91.2(eslint@9.39.2(jiti@1.21.7))(typescript@5.9.3)': dependencies: - '@typescript-eslint/utils': 8.50.1(eslint@9.39.2(jiti@1.21.7))(typescript@5.9.3) + '@typescript-eslint/utils': 8.53.0(eslint@9.39.2(jiti@1.21.7))(typescript@5.9.3) eslint: 9.39.2(jiti@1.21.7) transitivePeerDependencies: - supports-color @@ -12075,14 +11965,9 @@ snapshots: '@types/node@18.15.0': {} - '@types/node@20.19.26': - dependencies: - undici-types: 6.21.0 - '@types/node@20.19.28': dependencies: undici-types: 6.21.0 - optional: true '@types/papaparse@5.5.1': dependencies: @@ -12163,15 +12048,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/project-service@8.50.1(typescript@5.9.3)': - dependencies: - '@typescript-eslint/tsconfig-utils': 8.50.1(typescript@5.9.3) - '@typescript-eslint/types': 8.50.1 - debug: 4.4.3 - typescript: 5.9.3 - transitivePeerDependencies: - - supports-color - '@typescript-eslint/project-service@8.53.0(typescript@5.9.3)': dependencies: '@typescript-eslint/tsconfig-utils': 8.53.0(typescript@5.9.3) @@ -12181,20 +12057,11 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/scope-manager@8.50.1': - dependencies: - '@typescript-eslint/types': 8.50.1 - '@typescript-eslint/visitor-keys': 8.50.1 - '@typescript-eslint/scope-manager@8.53.0': dependencies: '@typescript-eslint/types': 8.53.0 '@typescript-eslint/visitor-keys': 8.53.0 - '@typescript-eslint/tsconfig-utils@8.50.1(typescript@5.9.3)': - dependencies: - typescript: 5.9.3 - '@typescript-eslint/tsconfig-utils@8.53.0(typescript@5.9.3)': dependencies: typescript: 5.9.3 @@ -12211,25 +12078,8 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/types@8.50.1': {} - '@typescript-eslint/types@8.53.0': {} - '@typescript-eslint/typescript-estree@8.50.1(typescript@5.9.3)': - dependencies: - '@typescript-eslint/project-service': 8.50.1(typescript@5.9.3) - '@typescript-eslint/tsconfig-utils': 8.50.1(typescript@5.9.3) - '@typescript-eslint/types': 8.50.1 - '@typescript-eslint/visitor-keys': 8.50.1 - debug: 4.4.3 - minimatch: 9.0.5 - semver: 7.7.3 - tinyglobby: 0.2.15 - ts-api-utils: 2.1.0(typescript@5.9.3) - typescript: 5.9.3 - transitivePeerDependencies: - - supports-color - '@typescript-eslint/typescript-estree@8.53.0(typescript@5.9.3)': dependencies: '@typescript-eslint/project-service': 8.53.0(typescript@5.9.3) @@ -12245,17 +12095,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/utils@8.50.1(eslint@9.39.2(jiti@1.21.7))(typescript@5.9.3)': - dependencies: - '@eslint-community/eslint-utils': 4.9.0(eslint@9.39.2(jiti@1.21.7)) - '@typescript-eslint/scope-manager': 8.50.1 - '@typescript-eslint/types': 8.50.1 - '@typescript-eslint/typescript-estree': 8.50.1(typescript@5.9.3) - eslint: 9.39.2(jiti@1.21.7) - typescript: 5.9.3 - transitivePeerDependencies: - - supports-color - '@typescript-eslint/utils@8.53.0(eslint@9.39.2(jiti@1.21.7))(typescript@5.9.3)': dependencies: '@eslint-community/eslint-utils': 4.9.1(eslint@9.39.2(jiti@1.21.7)) @@ -12267,11 +12106,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/visitor-keys@8.50.1': - dependencies: - '@typescript-eslint/types': 8.50.1 - eslint-visitor-keys: 4.2.1 - '@typescript-eslint/visitor-keys@8.53.0': dependencies: '@typescript-eslint/types': 8.53.0 @@ -12310,7 +12144,7 @@ snapshots: '@ungap/structured-clone@1.3.0': {} - '@vitejs/plugin-react@5.1.2(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2))': + '@vitejs/plugin-react@5.1.2(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2))': dependencies: '@babel/core': 7.28.5 '@babel/plugin-transform-react-jsx-self': 7.27.1(@babel/core@7.28.5) @@ -12318,35 +12152,32 @@ snapshots: '@rolldown/pluginutils': 1.0.0-beta.53 '@types/babel__core': 7.20.5 react-refresh: 0.18.0 - vite: 7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2) + vite: 7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2) transitivePeerDependencies: - supports-color - '@vitest/coverage-v8@4.0.16(vitest@4.0.16(@types/node@18.15.0)(happy-dom@20.0.11)(jiti@1.21.7)(jsdom@27.3.0(canvas@3.2.0))(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2))': + '@vitest/coverage-v8@4.0.17(vitest@4.0.17(@types/node@18.15.0)(happy-dom@20.0.11)(jiti@1.21.7)(jsdom@27.3.0(canvas@3.2.0))(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2))': dependencies: '@bcoe/v8-coverage': 1.0.2 - '@vitest/utils': 4.0.16 - ast-v8-to-istanbul: 0.3.9 + '@vitest/utils': 4.0.17 + ast-v8-to-istanbul: 0.3.10 istanbul-lib-coverage: 3.2.2 istanbul-lib-report: 3.0.1 - istanbul-lib-source-maps: 5.0.6 istanbul-reports: 3.2.0 magicast: 0.5.1 obug: 2.1.1 std-env: 3.10.0 tinyrainbow: 3.0.3 - vitest: 4.0.16(@types/node@18.15.0)(happy-dom@20.0.11)(jiti@1.21.7)(jsdom@27.3.0(canvas@3.2.0))(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2) - transitivePeerDependencies: - - supports-color + vitest: 4.0.17(@types/node@18.15.0)(happy-dom@20.0.11)(jiti@1.21.7)(jsdom@27.3.0(canvas@3.2.0))(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2) - '@vitest/eslint-plugin@1.6.6(eslint@9.39.2(jiti@1.21.7))(typescript@5.9.3)(vitest@4.0.16(@types/node@18.15.0)(happy-dom@20.0.11)(jiti@1.21.7)(jsdom@27.3.0(canvas@3.2.0))(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2))': + '@vitest/eslint-plugin@1.6.6(eslint@9.39.2(jiti@1.21.7))(typescript@5.9.3)(vitest@4.0.17(@types/node@18.15.0)(happy-dom@20.0.11)(jiti@1.21.7)(jsdom@27.3.0(canvas@3.2.0))(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2))': dependencies: '@typescript-eslint/scope-manager': 8.53.0 '@typescript-eslint/utils': 8.53.0(eslint@9.39.2(jiti@1.21.7))(typescript@5.9.3) eslint: 9.39.2(jiti@1.21.7) optionalDependencies: typescript: 5.9.3 - vitest: 4.0.16(@types/node@18.15.0)(happy-dom@20.0.11)(jiti@1.21.7)(jsdom@27.3.0(canvas@3.2.0))(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2) + vitest: 4.0.17(@types/node@18.15.0)(happy-dom@20.0.11)(jiti@1.21.7)(jsdom@27.3.0(canvas@3.2.0))(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2) transitivePeerDependencies: - supports-color @@ -12358,47 +12189,47 @@ snapshots: chai: 5.3.3 tinyrainbow: 2.0.0 - '@vitest/expect@4.0.16': + '@vitest/expect@4.0.17': dependencies: '@standard-schema/spec': 1.1.0 '@types/chai': 5.2.3 - '@vitest/spy': 4.0.16 - '@vitest/utils': 4.0.16 + '@vitest/spy': 4.0.17 + '@vitest/utils': 4.0.17 chai: 6.2.1 tinyrainbow: 3.0.3 - '@vitest/mocker@3.2.4(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2))': + '@vitest/mocker@3.2.4(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2))': dependencies: '@vitest/spy': 3.2.4 estree-walker: 3.0.3 magic-string: 0.30.21 optionalDependencies: - vite: 7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2) + vite: 7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2) - '@vitest/mocker@4.0.16(vite@6.4.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2))': + '@vitest/mocker@4.0.17(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2))': dependencies: - '@vitest/spy': 4.0.16 + '@vitest/spy': 4.0.17 estree-walker: 3.0.3 magic-string: 0.30.21 optionalDependencies: - vite: 6.4.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2) + vite: 7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2) '@vitest/pretty-format@3.2.4': dependencies: tinyrainbow: 2.0.0 - '@vitest/pretty-format@4.0.16': + '@vitest/pretty-format@4.0.17': dependencies: tinyrainbow: 3.0.3 - '@vitest/runner@4.0.16': + '@vitest/runner@4.0.17': dependencies: - '@vitest/utils': 4.0.16 + '@vitest/utils': 4.0.17 pathe: 2.0.3 - '@vitest/snapshot@4.0.16': + '@vitest/snapshot@4.0.17': dependencies: - '@vitest/pretty-format': 4.0.16 + '@vitest/pretty-format': 4.0.17 magic-string: 0.30.21 pathe: 2.0.3 @@ -12406,7 +12237,7 @@ snapshots: dependencies: tinyspy: 4.0.4 - '@vitest/spy@4.0.16': {} + '@vitest/spy@4.0.17': {} '@vitest/utils@3.2.4': dependencies: @@ -12414,9 +12245,9 @@ snapshots: loupe: 3.2.1 tinyrainbow: 2.0.0 - '@vitest/utils@4.0.16': + '@vitest/utils@4.0.17': dependencies: - '@vitest/pretty-format': 4.0.16 + '@vitest/pretty-format': 4.0.17 tinyrainbow: 3.0.3 '@vue/compiler-core@3.5.25': @@ -12659,7 +12490,7 @@ snapshots: dependencies: tslib: 2.8.1 - ast-v8-to-istanbul@0.3.9: + ast-v8-to-istanbul@0.3.10: dependencies: '@jridgewell/trace-mapping': 0.3.31 estree-walker: 3.0.3 @@ -13110,7 +12941,7 @@ snapshots: dependencies: cipher-base: 1.0.7 inherits: 2.0.4 - ripemd160: 2.0.1 + ripemd160: 2.0.3 sha.js: 2.4.12 create-hash@1.2.0: @@ -13660,7 +13491,7 @@ snapshots: eslint-json-compat-utils@0.2.1(eslint@9.39.2(jiti@1.21.7))(jsonc-eslint-parser@2.4.2): dependencies: eslint: 9.39.2(jiti@1.21.7) - esquery: 1.6.0 + esquery: 1.7.0 jsonc-eslint-parser: 2.4.2 eslint-merge-processors@2.0.0(eslint@9.39.2(jiti@1.21.7)): @@ -13678,7 +13509,7 @@ snapshots: eslint-plugin-es-x@7.8.0(eslint@9.39.2(jiti@1.21.7)): dependencies: - '@eslint-community/eslint-utils': 4.9.0(eslint@9.39.2(jiti@1.21.7)) + '@eslint-community/eslint-utils': 4.9.1(eslint@9.39.2(jiti@1.21.7)) '@eslint-community/regexpp': 4.12.2 eslint: 9.39.2(jiti@1.21.7) eslint-compat-utils: 0.5.1(eslint@9.39.2(jiti@1.21.7)) @@ -13709,7 +13540,7 @@ snapshots: eslint-plugin-jsonc@2.21.0(eslint@9.39.2(jiti@1.21.7)): dependencies: - '@eslint-community/eslint-utils': 4.9.0(eslint@9.39.2(jiti@1.21.7)) + '@eslint-community/eslint-utils': 4.9.1(eslint@9.39.2(jiti@1.21.7)) diff-sequences: 27.5.1 eslint: 9.39.2(jiti@1.21.7) eslint-compat-utils: 0.6.5(eslint@9.39.2(jiti@1.21.7)) @@ -13724,7 +13555,7 @@ snapshots: eslint-plugin-n@17.23.2(eslint@9.39.2(jiti@1.21.7))(typescript@5.9.3): dependencies: - '@eslint-community/eslint-utils': 4.9.0(eslint@9.39.2(jiti@1.21.7)) + '@eslint-community/eslint-utils': 4.9.1(eslint@9.39.2(jiti@1.21.7)) enhanced-resolve: 5.18.3 eslint: 9.39.2(jiti@1.21.7) eslint-plugin-es-x: 7.8.0(eslint@9.39.2(jiti@1.21.7)) @@ -13869,7 +13700,7 @@ snapshots: eslint-plugin-regexp@2.10.0(eslint@9.39.2(jiti@1.21.7)): dependencies: - '@eslint-community/eslint-utils': 4.9.0(eslint@9.39.2(jiti@1.21.7)) + '@eslint-community/eslint-utils': 4.9.1(eslint@9.39.2(jiti@1.21.7)) '@eslint-community/regexpp': 4.12.2 comment-parser: 1.4.1 eslint: 9.39.2(jiti@1.21.7) @@ -13892,11 +13723,11 @@ snapshots: semver: 7.7.2 typescript: 5.9.3 - eslint-plugin-storybook@10.1.11(eslint@9.39.2(jiti@1.21.7))(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))(typescript@5.9.3): + eslint-plugin-storybook@10.1.11(eslint@9.39.2(jiti@1.21.7))(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))(typescript@5.9.3): dependencies: - '@typescript-eslint/utils': 8.50.1(eslint@9.39.2(jiti@1.21.7))(typescript@5.9.3) + '@typescript-eslint/utils': 8.53.0(eslint@9.39.2(jiti@1.21.7))(typescript@5.9.3) eslint: 9.39.2(jiti@1.21.7) - storybook: 9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) + storybook: 9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) transitivePeerDependencies: - supports-color - typescript @@ -13920,14 +13751,14 @@ snapshots: eslint-plugin-unicorn@62.0.0(eslint@9.39.2(jiti@1.21.7)): dependencies: '@babel/helper-validator-identifier': 7.28.5 - '@eslint-community/eslint-utils': 4.9.0(eslint@9.39.2(jiti@1.21.7)) + '@eslint-community/eslint-utils': 4.9.1(eslint@9.39.2(jiti@1.21.7)) '@eslint/plugin-kit': 0.4.1 change-case: 5.4.4 ci-info: 4.3.1 clean-regexp: 1.0.0 core-js-compat: 3.47.0 eslint: 9.39.2(jiti@1.21.7) - esquery: 1.6.0 + esquery: 1.7.0 find-up-simple: 1.0.1 globals: 16.5.0 indent-string: 5.0.0 @@ -13947,7 +13778,7 @@ snapshots: eslint-plugin-vue@10.6.2(@stylistic/eslint-plugin@5.7.0(eslint@9.39.2(jiti@1.21.7)))(@typescript-eslint/parser@8.53.0(eslint@9.39.2(jiti@1.21.7))(typescript@5.9.3))(eslint@9.39.2(jiti@1.21.7))(vue-eslint-parser@10.2.0(eslint@9.39.2(jiti@1.21.7))): dependencies: - '@eslint-community/eslint-utils': 4.9.0(eslint@9.39.2(jiti@1.21.7)) + '@eslint-community/eslint-utils': 4.9.1(eslint@9.39.2(jiti@1.21.7)) eslint: 9.39.2(jiti@1.21.7) natural-compare: 1.4.0 nth-check: 2.1.1 @@ -13994,7 +13825,7 @@ snapshots: eslint@9.39.2(jiti@1.21.7): dependencies: - '@eslint-community/eslint-utils': 4.9.0(eslint@9.39.2(jiti@1.21.7)) + '@eslint-community/eslint-utils': 4.9.1(eslint@9.39.2(jiti@1.21.7)) '@eslint-community/regexpp': 4.12.2 '@eslint/config-array': 0.21.1 '@eslint/config-helpers': 0.4.2 @@ -14014,7 +13845,7 @@ snapshots: eslint-scope: 8.4.0 eslint-visitor-keys: 4.2.1 espree: 10.4.0 - esquery: 1.6.0 + esquery: 1.7.0 esutils: 2.0.3 fast-deep-equal: 3.1.3 file-entry-cache: 8.0.0 @@ -14053,10 +13884,6 @@ snapshots: esprima@4.0.1: {} - esquery@1.6.0: - dependencies: - estraverse: 5.3.0 - esquery@1.7.0: dependencies: estraverse: 5.3.0 @@ -14774,14 +14601,6 @@ snapshots: make-dir: 4.0.0 supports-color: 7.2.0 - istanbul-lib-source-maps@5.0.6: - dependencies: - '@jridgewell/trace-mapping': 0.3.31 - debug: 4.4.3 - istanbul-lib-coverage: 3.2.2 - transitivePeerDependencies: - - supports-color - istanbul-reports@3.2.0: dependencies: html-escaper: 2.0.2 @@ -14922,7 +14741,7 @@ snapshots: smol-toml: 1.5.2 strip-json-comments: 5.0.3 typescript: 5.9.3 - zod: 4.1.13 + zod: 4.3.5 kolorist@1.8.0: {} @@ -14942,7 +14761,7 @@ snapshots: launch-ide@1.2.0: dependencies: - chalk: 4.1.1 + chalk: 4.1.2 dotenv: 16.6.1 layout-base@1.0.2: {} @@ -15093,7 +14912,7 @@ snapshots: md5.js@1.3.5: dependencies: - hash-base: 3.0.5 + hash-base: 3.1.2 inherits: 2.0.4 safe-buffer: 5.2.1 @@ -16410,7 +16229,7 @@ snapshots: '@pivanov/utils': 0.0.2(react-dom@19.2.3(react@19.2.3))(react@19.2.3) '@preact/signals': 1.3.2(preact@10.28.0) '@rollup/pluginutils': 5.3.0(rollup@4.53.5) - '@types/node': 20.19.26 + '@types/node': 20.19.28 bippy: 0.3.34(@types/react@19.2.7)(react@19.2.3) esbuild: 0.27.2 estree-walker: 3.0.3 @@ -16571,7 +16390,7 @@ snapshots: refa@0.12.1: dependencies: - '@eslint-community/regexpp': 4.12.1 + '@eslint-community/regexpp': 4.12.2 refractor@3.6.0: dependencies: @@ -16589,7 +16408,7 @@ snapshots: regexp-ast-analysis@0.7.1: dependencies: - '@eslint-community/regexpp': 4.12.1 + '@eslint-community/regexpp': 4.12.2 refa: 0.12.1 regexp-tree@0.1.27: {} @@ -16833,7 +16652,7 @@ snapshots: scslre@0.3.0: dependencies: - '@eslint-community/regexpp': 4.12.1 + '@eslint-community/regexpp': 4.12.2 refa: 0.12.1 regexp-ast-analysis: 0.7.1 @@ -17016,13 +16835,13 @@ snapshots: std-env@3.10.0: {} - storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)): + storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)): dependencies: '@storybook/global': 5.0.0 '@testing-library/jest-dom': 6.9.1 '@testing-library/user-event': 14.6.1(@testing-library/dom@10.4.1) '@vitest/expect': 3.2.4 - '@vitest/mocker': 3.2.4(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) + '@vitest/mocker': 3.2.4(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) '@vitest/spy': 3.2.4 better-opn: 3.0.2 esbuild: 0.27.2 @@ -17302,10 +17121,6 @@ snapshots: trough@2.2.0: {} - ts-api-utils@2.1.0(typescript@5.9.3): - dependencies: - typescript: 5.9.3 - ts-api-utils@2.4.0(typescript@5.9.3): dependencies: typescript: 5.9.3 @@ -17547,18 +17362,18 @@ snapshots: '@types/unist': 3.0.3 vfile-message: 4.0.3 - vite-tsconfig-paths@6.0.3(typescript@5.9.3)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)): + vite-tsconfig-paths@6.0.4(typescript@5.9.3)(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)): dependencies: debug: 4.4.3 globrex: 0.1.2 tsconfck: 3.1.6(typescript@5.9.3) optionalDependencies: - vite: 7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2) + vite: 7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2) transitivePeerDependencies: - supports-color - typescript - vite@6.4.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2): + vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2): dependencies: esbuild: 0.27.2 fdir: 6.5.0(picomatch@4.0.3) @@ -17575,32 +17390,15 @@ snapshots: tsx: 4.21.0 yaml: 2.8.2 - vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2): + vitest@4.0.17(@types/node@18.15.0)(happy-dom@20.0.11)(jiti@1.21.7)(jsdom@27.3.0(canvas@3.2.0))(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2): dependencies: - esbuild: 0.27.2 - fdir: 6.5.0(picomatch@4.0.3) - picomatch: 4.0.3 - postcss: 8.5.6 - rollup: 4.53.5 - tinyglobby: 0.2.15 - optionalDependencies: - '@types/node': 18.15.0 - fsevents: 2.3.3 - jiti: 1.21.7 - sass: 1.95.0 - terser: 5.44.1 - tsx: 4.21.0 - yaml: 2.8.2 - - vitest@4.0.16(@types/node@18.15.0)(happy-dom@20.0.11)(jiti@1.21.7)(jsdom@27.3.0(canvas@3.2.0))(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2): - dependencies: - '@vitest/expect': 4.0.16 - '@vitest/mocker': 4.0.16(vite@6.4.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) - '@vitest/pretty-format': 4.0.16 - '@vitest/runner': 4.0.16 - '@vitest/snapshot': 4.0.16 - '@vitest/spy': 4.0.16 - '@vitest/utils': 4.0.16 + '@vitest/expect': 4.0.17 + '@vitest/mocker': 4.0.17(vite@7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)) + '@vitest/pretty-format': 4.0.17 + '@vitest/runner': 4.0.17 + '@vitest/snapshot': 4.0.17 + '@vitest/spy': 4.0.17 + '@vitest/utils': 4.0.17 es-module-lexer: 1.7.0 expect-type: 1.3.0 magic-string: 0.30.21 @@ -17612,7 +17410,7 @@ snapshots: tinyexec: 1.0.2 tinyglobby: 0.2.15 tinyrainbow: 3.0.3 - vite: 6.4.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2) + vite: 7.3.1(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2) why-is-node-running: 2.3.0 optionalDependencies: '@types/node': 18.15.0 @@ -17659,7 +17457,7 @@ snapshots: eslint-scope: 8.4.0 eslint-visitor-keys: 4.2.1 espree: 10.4.0 - esquery: 1.6.0 + esquery: 1.7.0 semver: 7.7.3 transitivePeerDependencies: - supports-color @@ -17849,8 +17647,6 @@ snapshots: zod@3.25.76: {} - zod@4.1.13: {} - zod@4.3.5: {} zrender@5.6.1: diff --git a/web/vitest.config.ts b/web/vitest.config.ts index 2befbecba6..f6e8424e44 100644 --- a/web/vitest.config.ts +++ b/web/vitest.config.ts @@ -3,7 +3,7 @@ import tsconfigPaths from 'vite-tsconfig-paths' import { defineConfig } from 'vitest/config' export default defineConfig({ - plugins: [tsconfigPaths(), react() as any], + plugins: [tsconfigPaths(), react()], test: { environment: 'jsdom', globals: true, From 8893913b3a0904df837d86ff56a941e19e283cb0 Mon Sep 17 00:00:00 2001 From: yyh <92089059+lyzno1@users.noreply.github.com> Date: Mon, 19 Jan 2026 10:30:49 +0800 Subject: [PATCH 05/62] feat: add Vercel React Best Practices skill for Claude Code (#31133) --- .claude/settings.json | 12 +- .../vercel-react-best-practices/AGENTS.md | 2410 +++++++++++++++++ .../vercel-react-best-practices/SKILL.md | 125 + .../rules/advanced-event-handler-refs.md | 55 + .../rules/advanced-use-latest.md | 49 + .../rules/async-api-routes.md | 38 + .../rules/async-defer-await.md | 80 + .../rules/async-dependencies.md | 36 + .../rules/async-parallel.md | 28 + .../rules/async-suspense-boundaries.md | 99 + .../rules/bundle-barrel-imports.md | 59 + .../rules/bundle-conditional.md | 31 + .../rules/bundle-defer-third-party.md | 49 + .../rules/bundle-dynamic-imports.md | 35 + .../rules/bundle-preload.md | 50 + .../rules/client-event-listeners.md | 74 + .../rules/client-localstorage-schema.md | 71 + .../rules/client-passive-event-listeners.md | 48 + .../rules/client-swr-dedup.md | 56 + .../rules/js-batch-dom-css.md | 57 + .../rules/js-cache-function-results.md | 80 + .../rules/js-cache-property-access.md | 28 + .../rules/js-cache-storage.md | 70 + .../rules/js-combine-iterations.md | 32 + .../rules/js-early-exit.md | 50 + .../rules/js-hoist-regexp.md | 45 + .../rules/js-index-maps.md | 37 + .../rules/js-length-check-first.md | 49 + .../rules/js-min-max-loop.md | 82 + .../rules/js-set-map-lookups.md | 24 + .../rules/js-tosorted-immutable.md | 57 + .../rules/rendering-activity.md | 26 + .../rules/rendering-animate-svg-wrapper.md | 47 + .../rules/rendering-conditional-render.md | 40 + .../rules/rendering-content-visibility.md | 38 + .../rules/rendering-hoist-jsx.md | 46 + .../rules/rendering-hydration-no-flicker.md | 82 + .../rules/rendering-svg-precision.md | 28 + .../rules/rerender-defer-reads.md | 39 + .../rules/rerender-dependencies.md | 45 + .../rules/rerender-derived-state.md | 29 + .../rules/rerender-functional-setstate.md | 74 + .../rules/rerender-lazy-state-init.md | 58 + .../rules/rerender-memo.md | 44 + .../rules/rerender-transitions.md | 40 + .../rules/server-after-nonblocking.md | 73 + .../rules/server-cache-lru.md | 41 + .../rules/server-cache-react.md | 76 + .../rules/server-parallel-fetching.md | 83 + .../rules/server-serialization.md | 38 + .github/workflows/autofix.yml | 2 +- 51 files changed, 4957 insertions(+), 8 deletions(-) create mode 100644 .claude/skills/vercel-react-best-practices/AGENTS.md create mode 100644 .claude/skills/vercel-react-best-practices/SKILL.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/advanced-event-handler-refs.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/advanced-use-latest.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/async-api-routes.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/async-defer-await.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/async-dependencies.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/async-parallel.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/async-suspense-boundaries.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/bundle-barrel-imports.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/bundle-conditional.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/bundle-defer-third-party.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/bundle-dynamic-imports.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/bundle-preload.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/client-event-listeners.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/client-localstorage-schema.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/client-passive-event-listeners.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/client-swr-dedup.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/js-batch-dom-css.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/js-cache-function-results.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/js-cache-property-access.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/js-cache-storage.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/js-combine-iterations.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/js-early-exit.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/js-hoist-regexp.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/js-index-maps.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/js-length-check-first.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/js-min-max-loop.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/js-set-map-lookups.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/js-tosorted-immutable.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/rendering-activity.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/rendering-animate-svg-wrapper.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/rendering-conditional-render.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/rendering-content-visibility.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/rendering-hoist-jsx.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/rendering-hydration-no-flicker.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/rendering-svg-precision.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/rerender-defer-reads.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/rerender-dependencies.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/rerender-derived-state.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/rerender-functional-setstate.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/rerender-lazy-state-init.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/rerender-memo.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/rerender-transitions.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/server-after-nonblocking.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/server-cache-lru.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/server-cache-react.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/server-parallel-fetching.md create mode 100644 .claude/skills/vercel-react-best-practices/rules/server-serialization.md diff --git a/.claude/settings.json b/.claude/settings.json index 72dcb5ec73..f9e1016d02 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -1,11 +1,4 @@ { - "enabledPlugins": { - "feature-dev@claude-plugins-official": true, - "context7@claude-plugins-official": true, - "typescript-lsp@claude-plugins-official": true, - "pyright-lsp@claude-plugins-official": true, - "ralph-loop@claude-plugins-official": true - }, "hooks": { "PreToolUse": [ { @@ -18,5 +11,10 @@ ] } ] + }, + "enabledPlugins": { + "feature-dev@claude-plugins-official": true, + "context7@claude-plugins-official": true, + "ralph-loop@claude-plugins-official": true } } diff --git a/.claude/skills/vercel-react-best-practices/AGENTS.md b/.claude/skills/vercel-react-best-practices/AGENTS.md new file mode 100644 index 0000000000..f9b9e99c44 --- /dev/null +++ b/.claude/skills/vercel-react-best-practices/AGENTS.md @@ -0,0 +1,2410 @@ +# React Best Practices + +**Version 1.0.0** +Vercel Engineering +January 2026 + +> **Note:** +> This document is mainly for agents and LLMs to follow when maintaining, +> generating, or refactoring React and Next.js codebases at Vercel. Humans +> may also find it useful, but guidance here is optimized for automation +> and consistency by AI-assisted workflows. + +--- + +## Abstract + +Comprehensive performance optimization guide for React and Next.js applications, designed for AI agents and LLMs. Contains 40+ rules across 8 categories, prioritized by impact from critical (eliminating waterfalls, reducing bundle size) to incremental (advanced patterns). Each rule includes detailed explanations, real-world examples comparing incorrect vs. correct implementations, and specific impact metrics to guide automated refactoring and code generation. + +--- + +## Table of Contents + +1. [Eliminating Waterfalls](#1-eliminating-waterfalls) — **CRITICAL** + - 1.1 [Defer Await Until Needed](#11-defer-await-until-needed) + - 1.2 [Dependency-Based Parallelization](#12-dependency-based-parallelization) + - 1.3 [Prevent Waterfall Chains in API Routes](#13-prevent-waterfall-chains-in-api-routes) + - 1.4 [Promise.all() for Independent Operations](#14-promiseall-for-independent-operations) + - 1.5 [Strategic Suspense Boundaries](#15-strategic-suspense-boundaries) +2. [Bundle Size Optimization](#2-bundle-size-optimization) — **CRITICAL** + - 2.1 [Avoid Barrel File Imports](#21-avoid-barrel-file-imports) + - 2.2 [Conditional Module Loading](#22-conditional-module-loading) + - 2.3 [Defer Non-Critical Third-Party Libraries](#23-defer-non-critical-third-party-libraries) + - 2.4 [Dynamic Imports for Heavy Components](#24-dynamic-imports-for-heavy-components) + - 2.5 [Preload Based on User Intent](#25-preload-based-on-user-intent) +3. [Server-Side Performance](#3-server-side-performance) — **HIGH** + - 3.1 [Cross-Request LRU Caching](#31-cross-request-lru-caching) + - 3.2 [Minimize Serialization at RSC Boundaries](#32-minimize-serialization-at-rsc-boundaries) + - 3.3 [Parallel Data Fetching with Component Composition](#33-parallel-data-fetching-with-component-composition) + - 3.4 [Per-Request Deduplication with React.cache()](#34-per-request-deduplication-with-reactcache) + - 3.5 [Use after() for Non-Blocking Operations](#35-use-after-for-non-blocking-operations) +4. [Client-Side Data Fetching](#4-client-side-data-fetching) — **MEDIUM-HIGH** + - 4.1 [Deduplicate Global Event Listeners](#41-deduplicate-global-event-listeners) + - 4.2 [Use Passive Event Listeners for Scrolling Performance](#42-use-passive-event-listeners-for-scrolling-performance) + - 4.3 [Use SWR for Automatic Deduplication](#43-use-swr-for-automatic-deduplication) + - 4.4 [Version and Minimize localStorage Data](#44-version-and-minimize-localstorage-data) +5. [Re-render Optimization](#5-re-render-optimization) — **MEDIUM** + - 5.1 [Defer State Reads to Usage Point](#51-defer-state-reads-to-usage-point) + - 5.2 [Extract to Memoized Components](#52-extract-to-memoized-components) + - 5.3 [Narrow Effect Dependencies](#53-narrow-effect-dependencies) + - 5.4 [Subscribe to Derived State](#54-subscribe-to-derived-state) + - 5.5 [Use Functional setState Updates](#55-use-functional-setstate-updates) + - 5.6 [Use Lazy State Initialization](#56-use-lazy-state-initialization) + - 5.7 [Use Transitions for Non-Urgent Updates](#57-use-transitions-for-non-urgent-updates) +6. [Rendering Performance](#6-rendering-performance) — **MEDIUM** + - 6.1 [Animate SVG Wrapper Instead of SVG Element](#61-animate-svg-wrapper-instead-of-svg-element) + - 6.2 [CSS content-visibility for Long Lists](#62-css-content-visibility-for-long-lists) + - 6.3 [Hoist Static JSX Elements](#63-hoist-static-jsx-elements) + - 6.4 [Optimize SVG Precision](#64-optimize-svg-precision) + - 6.5 [Prevent Hydration Mismatch Without Flickering](#65-prevent-hydration-mismatch-without-flickering) + - 6.6 [Use Activity Component for Show/Hide](#66-use-activity-component-for-showhide) + - 6.7 [Use Explicit Conditional Rendering](#67-use-explicit-conditional-rendering) +7. [JavaScript Performance](#7-javascript-performance) — **LOW-MEDIUM** + - 7.1 [Batch DOM CSS Changes](#71-batch-dom-css-changes) + - 7.2 [Build Index Maps for Repeated Lookups](#72-build-index-maps-for-repeated-lookups) + - 7.3 [Cache Property Access in Loops](#73-cache-property-access-in-loops) + - 7.4 [Cache Repeated Function Calls](#74-cache-repeated-function-calls) + - 7.5 [Cache Storage API Calls](#75-cache-storage-api-calls) + - 7.6 [Combine Multiple Array Iterations](#76-combine-multiple-array-iterations) + - 7.7 [Early Length Check for Array Comparisons](#77-early-length-check-for-array-comparisons) + - 7.8 [Early Return from Functions](#78-early-return-from-functions) + - 7.9 [Hoist RegExp Creation](#79-hoist-regexp-creation) + - 7.10 [Use Loop for Min/Max Instead of Sort](#710-use-loop-for-minmax-instead-of-sort) + - 7.11 [Use Set/Map for O(1) Lookups](#711-use-setmap-for-o1-lookups) + - 7.12 [Use toSorted() Instead of sort() for Immutability](#712-use-tosorted-instead-of-sort-for-immutability) +8. [Advanced Patterns](#8-advanced-patterns) — **LOW** + - 8.1 [Store Event Handlers in Refs](#81-store-event-handlers-in-refs) + - 8.2 [useLatest for Stable Callback Refs](#82-uselatest-for-stable-callback-refs) + +--- + +## 1. Eliminating Waterfalls + +**Impact: CRITICAL** + +Waterfalls are the #1 performance killer. Each sequential await adds full network latency. Eliminating them yields the largest gains. + +### 1.1 Defer Await Until Needed + +**Impact: HIGH (avoids blocking unused code paths)** + +Move `await` operations into the branches where they're actually used to avoid blocking code paths that don't need them. + +**Incorrect: blocks both branches** + +```typescript +async function handleRequest(userId: string, skipProcessing: boolean) { + const userData = await fetchUserData(userId) + + if (skipProcessing) { + // Returns immediately but still waited for userData + return { skipped: true } + } + + // Only this branch uses userData + return processUserData(userData) +} +``` + +**Correct: only blocks when needed** + +```typescript +async function handleRequest(userId: string, skipProcessing: boolean) { + if (skipProcessing) { + // Returns immediately without waiting + return { skipped: true } + } + + // Fetch only when needed + const userData = await fetchUserData(userId) + return processUserData(userData) +} +``` + +**Another example: early return optimization** + +```typescript +// Incorrect: always fetches permissions +async function updateResource(resourceId: string, userId: string) { + const permissions = await fetchPermissions(userId) + const resource = await getResource(resourceId) + + if (!resource) { + return { error: 'Not found' } + } + + if (!permissions.canEdit) { + return { error: 'Forbidden' } + } + + return await updateResourceData(resource, permissions) +} + +// Correct: fetches only when needed +async function updateResource(resourceId: string, userId: string) { + const resource = await getResource(resourceId) + + if (!resource) { + return { error: 'Not found' } + } + + const permissions = await fetchPermissions(userId) + + if (!permissions.canEdit) { + return { error: 'Forbidden' } + } + + return await updateResourceData(resource, permissions) +} +``` + +This optimization is especially valuable when the skipped branch is frequently taken, or when the deferred operation is expensive. + +### 1.2 Dependency-Based Parallelization + +**Impact: CRITICAL (2-10× improvement)** + +For operations with partial dependencies, use `better-all` to maximize parallelism. It automatically starts each task at the earliest possible moment. + +**Incorrect: profile waits for config unnecessarily** + +```typescript +const [user, config] = await Promise.all([ + fetchUser(), + fetchConfig() +]) +const profile = await fetchProfile(user.id) +``` + +**Correct: config and profile run in parallel** + +```typescript +import { all } from 'better-all' + +const { user, config, profile } = await all({ + async user() { return fetchUser() }, + async config() { return fetchConfig() }, + async profile() { + return fetchProfile((await this.$.user).id) + } +}) +``` + +Reference: [https://github.com/shuding/better-all](https://github.com/shuding/better-all) + +### 1.3 Prevent Waterfall Chains in API Routes + +**Impact: CRITICAL (2-10× improvement)** + +In API routes and Server Actions, start independent operations immediately, even if you don't await them yet. + +**Incorrect: config waits for auth, data waits for both** + +```typescript +export async function GET(request: Request) { + const session = await auth() + const config = await fetchConfig() + const data = await fetchData(session.user.id) + return Response.json({ data, config }) +} +``` + +**Correct: auth and config start immediately** + +```typescript +export async function GET(request: Request) { + const sessionPromise = auth() + const configPromise = fetchConfig() + const session = await sessionPromise + const [config, data] = await Promise.all([ + configPromise, + fetchData(session.user.id) + ]) + return Response.json({ data, config }) +} +``` + +For operations with more complex dependency chains, use `better-all` to automatically maximize parallelism (see Dependency-Based Parallelization). + +### 1.4 Promise.all() for Independent Operations + +**Impact: CRITICAL (2-10× improvement)** + +When async operations have no interdependencies, execute them concurrently using `Promise.all()`. + +**Incorrect: sequential execution, 3 round trips** + +```typescript +const user = await fetchUser() +const posts = await fetchPosts() +const comments = await fetchComments() +``` + +**Correct: parallel execution, 1 round trip** + +```typescript +const [user, posts, comments] = await Promise.all([ + fetchUser(), + fetchPosts(), + fetchComments() +]) +``` + +### 1.5 Strategic Suspense Boundaries + +**Impact: HIGH (faster initial paint)** + +Instead of awaiting data in async components before returning JSX, use Suspense boundaries to show the wrapper UI faster while data loads. + +**Incorrect: wrapper blocked by data fetching** + +```tsx +async function Page() { + const data = await fetchData() // Blocks entire page + + return ( +
+
Sidebar
+
Header
+
+ +
+
Footer
+
+ ) +} +``` + +The entire layout waits for data even though only the middle section needs it. + +**Correct: wrapper shows immediately, data streams in** + +```tsx +function Page() { + return ( +
+
Sidebar
+
Header
+
+ }> + + +
+
Footer
+
+ ) +} + +async function DataDisplay() { + const data = await fetchData() // Only blocks this component + return
{data.content}
+} +``` + +Sidebar, Header, and Footer render immediately. Only DataDisplay waits for data. + +**Alternative: share promise across components** + +```tsx +function Page() { + // Start fetch immediately, but don't await + const dataPromise = fetchData() + + return ( +
+
Sidebar
+
Header
+ }> + + + +
Footer
+
+ ) +} + +function DataDisplay({ dataPromise }: { dataPromise: Promise }) { + const data = use(dataPromise) // Unwraps the promise + return
{data.content}
+} + +function DataSummary({ dataPromise }: { dataPromise: Promise }) { + const data = use(dataPromise) // Reuses the same promise + return
{data.summary}
+} +``` + +Both components share the same promise, so only one fetch occurs. Layout renders immediately while both components wait together. + +**When NOT to use this pattern:** + +- Critical data needed for layout decisions (affects positioning) + +- SEO-critical content above the fold + +- Small, fast queries where suspense overhead isn't worth it + +- When you want to avoid layout shift (loading → content jump) + +**Trade-off:** Faster initial paint vs potential layout shift. Choose based on your UX priorities. + +--- + +## 2. Bundle Size Optimization + +**Impact: CRITICAL** + +Reducing initial bundle size improves Time to Interactive and Largest Contentful Paint. + +### 2.1 Avoid Barrel File Imports + +**Impact: CRITICAL (200-800ms import cost, slow builds)** + +Import directly from source files instead of barrel files to avoid loading thousands of unused modules. **Barrel files** are entry points that re-export multiple modules (e.g., `index.js` that does `export * from './module'`). + +Popular icon and component libraries can have **up to 10,000 re-exports** in their entry file. For many React packages, **it takes 200-800ms just to import them**, affecting both development speed and production cold starts. + +**Why tree-shaking doesn't help:** When a library is marked as external (not bundled), the bundler can't optimize it. If you bundle it to enable tree-shaking, builds become substantially slower analyzing the entire module graph. + +**Incorrect: imports entire library** + +```tsx +import { Check, X, Menu } from 'lucide-react' +// Loads 1,583 modules, takes ~2.8s extra in dev +// Runtime cost: 200-800ms on every cold start + +import { Button, TextField } from '@mui/material' +// Loads 2,225 modules, takes ~4.2s extra in dev +``` + +**Correct: imports only what you need** + +```tsx +import Check from 'lucide-react/dist/esm/icons/check' +import X from 'lucide-react/dist/esm/icons/x' +import Menu from 'lucide-react/dist/esm/icons/menu' +// Loads only 3 modules (~2KB vs ~1MB) + +import Button from '@mui/material/Button' +import TextField from '@mui/material/TextField' +// Loads only what you use +``` + +**Alternative: Next.js 13.5+** + +```js +// next.config.js - use optimizePackageImports +module.exports = { + experimental: { + optimizePackageImports: ['lucide-react', '@mui/material'] + } +} + +// Then you can keep the ergonomic barrel imports: +import { Check, X, Menu } from 'lucide-react' +// Automatically transformed to direct imports at build time +``` + +Direct imports provide 15-70% faster dev boot, 28% faster builds, 40% faster cold starts, and significantly faster HMR. + +Libraries commonly affected: `lucide-react`, `@mui/material`, `@mui/icons-material`, `@tabler/icons-react`, `react-icons`, `@headlessui/react`, `@radix-ui/react-*`, `lodash`, `ramda`, `date-fns`, `rxjs`, `react-use`. + +Reference: [https://vercel.com/blog/how-we-optimized-package-imports-in-next-js](https://vercel.com/blog/how-we-optimized-package-imports-in-next-js) + +### 2.2 Conditional Module Loading + +**Impact: HIGH (loads large data only when needed)** + +Load large data or modules only when a feature is activated. + +**Example: lazy-load animation frames** + +```tsx +function AnimationPlayer({ enabled, setEnabled }: { enabled: boolean; setEnabled: React.Dispatch> }) { + const [frames, setFrames] = useState(null) + + useEffect(() => { + if (enabled && !frames && typeof window !== 'undefined') { + import('./animation-frames.js') + .then(mod => setFrames(mod.frames)) + .catch(() => setEnabled(false)) + } + }, [enabled, frames, setEnabled]) + + if (!frames) return + return +} +``` + +The `typeof window !== 'undefined'` check prevents bundling this module for SSR, optimizing server bundle size and build speed. + +### 2.3 Defer Non-Critical Third-Party Libraries + +**Impact: MEDIUM (loads after hydration)** + +Analytics, logging, and error tracking don't block user interaction. Load them after hydration. + +**Incorrect: blocks initial bundle** + +```tsx +import { Analytics } from '@vercel/analytics/react' + +export default function RootLayout({ children }) { + return ( + + + {children} + + + + ) +} +``` + +**Correct: loads after hydration** + +```tsx +import dynamic from 'next/dynamic' + +const Analytics = dynamic( + () => import('@vercel/analytics/react').then(m => m.Analytics), + { ssr: false } +) + +export default function RootLayout({ children }) { + return ( + + + {children} + + + + ) +} +``` + +### 2.4 Dynamic Imports for Heavy Components + +**Impact: CRITICAL (directly affects TTI and LCP)** + +Use `next/dynamic` to lazy-load large components not needed on initial render. + +**Incorrect: Monaco bundles with main chunk ~300KB** + +```tsx +import { MonacoEditor } from './monaco-editor' + +function CodePanel({ code }: { code: string }) { + return +} +``` + +**Correct: Monaco loads on demand** + +```tsx +import dynamic from 'next/dynamic' + +const MonacoEditor = dynamic( + () => import('./monaco-editor').then(m => m.MonacoEditor), + { ssr: false } +) + +function CodePanel({ code }: { code: string }) { + return +} +``` + +### 2.5 Preload Based on User Intent + +**Impact: MEDIUM (reduces perceived latency)** + +Preload heavy bundles before they're needed to reduce perceived latency. + +**Example: preload on hover/focus** + +```tsx +function EditorButton({ onClick }: { onClick: () => void }) { + const preload = () => { + if (typeof window !== 'undefined') { + void import('./monaco-editor') + } + } + + return ( + + ) +} +``` + +**Example: preload when feature flag is enabled** + +```tsx +function FlagsProvider({ children, flags }: Props) { + useEffect(() => { + if (flags.editorEnabled && typeof window !== 'undefined') { + void import('./monaco-editor').then(mod => mod.init()) + } + }, [flags.editorEnabled]) + + return + {children} + +} +``` + +The `typeof window !== 'undefined'` check prevents bundling preloaded modules for SSR, optimizing server bundle size and build speed. + +--- + +## 3. Server-Side Performance + +**Impact: HIGH** + +Optimizing server-side rendering and data fetching eliminates server-side waterfalls and reduces response times. + +### 3.1 Cross-Request LRU Caching + +**Impact: HIGH (caches across requests)** + +`React.cache()` only works within one request. For data shared across sequential requests (user clicks button A then button B), use an LRU cache. + +**Implementation:** + +```typescript +import { LRUCache } from 'lru-cache' + +const cache = new LRUCache({ + max: 1000, + ttl: 5 * 60 * 1000 // 5 minutes +}) + +export async function getUser(id: string) { + const cached = cache.get(id) + if (cached) return cached + + const user = await db.user.findUnique({ where: { id } }) + cache.set(id, user) + return user +} + +// Request 1: DB query, result cached +// Request 2: cache hit, no DB query +``` + +Use when sequential user actions hit multiple endpoints needing the same data within seconds. + +**With Vercel's [Fluid Compute](https://vercel.com/docs/fluid-compute):** LRU caching is especially effective because multiple concurrent requests can share the same function instance and cache. This means the cache persists across requests without needing external storage like Redis. + +**In traditional serverless:** Each invocation runs in isolation, so consider Redis for cross-process caching. + +Reference: [https://github.com/isaacs/node-lru-cache](https://github.com/isaacs/node-lru-cache) + +### 3.2 Minimize Serialization at RSC Boundaries + +**Impact: HIGH (reduces data transfer size)** + +The React Server/Client boundary serializes all object properties into strings and embeds them in the HTML response and subsequent RSC requests. This serialized data directly impacts page weight and load time, so **size matters a lot**. Only pass fields that the client actually uses. + +**Incorrect: serializes all 50 fields** + +```tsx +async function Page() { + const user = await fetchUser() // 50 fields + return +} + +'use client' +function Profile({ user }: { user: User }) { + return
{user.name}
// uses 1 field +} +``` + +**Correct: serializes only 1 field** + +```tsx +async function Page() { + const user = await fetchUser() + return +} + +'use client' +function Profile({ name }: { name: string }) { + return
{name}
+} +``` + +### 3.3 Parallel Data Fetching with Component Composition + +**Impact: CRITICAL (eliminates server-side waterfalls)** + +React Server Components execute sequentially within a tree. Restructure with composition to parallelize data fetching. + +**Incorrect: Sidebar waits for Page's fetch to complete** + +```tsx +export default async function Page() { + const header = await fetchHeader() + return ( +
+
{header}
+ +
+ ) +} + +async function Sidebar() { + const items = await fetchSidebarItems() + return +} +``` + +**Correct: both fetch simultaneously** + +```tsx +async function Header() { + const data = await fetchHeader() + return
{data}
+} + +async function Sidebar() { + const items = await fetchSidebarItems() + return +} + +export default function Page() { + return ( +
+
+ +
+ ) +} +``` + +**Alternative with children prop:** + +```tsx +async function Header() { + const data = await fetchHeader() + return
{data}
+} + +async function Sidebar() { + const items = await fetchSidebarItems() + return +} + +function Layout({ children }: { children: ReactNode }) { + return ( +
+
+ {children} +
+ ) +} + +export default function Page() { + return ( + + + + ) +} +``` + +### 3.4 Per-Request Deduplication with React.cache() + +**Impact: MEDIUM (deduplicates within request)** + +Use `React.cache()` for server-side request deduplication. Authentication and database queries benefit most. + +**Usage:** + +```typescript +import { cache } from 'react' + +export const getCurrentUser = cache(async () => { + const session = await auth() + if (!session?.user?.id) return null + return await db.user.findUnique({ + where: { id: session.user.id } + }) +}) +``` + +Within a single request, multiple calls to `getCurrentUser()` execute the query only once. + +**Avoid inline objects as arguments:** + +`React.cache()` uses shallow equality (`Object.is`) to determine cache hits. Inline objects create new references each call, preventing cache hits. + +**Incorrect: always cache miss** + +```typescript +const getUser = cache(async (params: { uid: number }) => { + return await db.user.findUnique({ where: { id: params.uid } }) +}) + +// Each call creates new object, never hits cache +getUser({ uid: 1 }) +getUser({ uid: 1 }) // Cache miss, runs query again +``` + +**Correct: cache hit** + +```typescript +const params = { uid: 1 } +getUser(params) // Query runs +getUser(params) // Cache hit (same reference) +``` + +If you must pass objects, pass the same reference: + +**Next.js-Specific Note:** + +In Next.js, the `fetch` API is automatically extended with request memoization. Requests with the same URL and options are automatically deduplicated within a single request, so you don't need `React.cache()` for `fetch` calls. However, `React.cache()` is still essential for other async tasks: + +- Database queries (Prisma, Drizzle, etc.) + +- Heavy computations + +- Authentication checks + +- File system operations + +- Any non-fetch async work + +Use `React.cache()` to deduplicate these operations across your component tree. + +Reference: [https://react.dev/reference/react/cache](https://react.dev/reference/react/cache) + +### 3.5 Use after() for Non-Blocking Operations + +**Impact: MEDIUM (faster response times)** + +Use Next.js's `after()` to schedule work that should execute after a response is sent. This prevents logging, analytics, and other side effects from blocking the response. + +**Incorrect: blocks response** + +```tsx +import { logUserAction } from '@/app/utils' + +export async function POST(request: Request) { + // Perform mutation + await updateDatabase(request) + + // Logging blocks the response + const userAgent = request.headers.get('user-agent') || 'unknown' + await logUserAction({ userAgent }) + + return new Response(JSON.stringify({ status: 'success' }), { + status: 200, + headers: { 'Content-Type': 'application/json' } + }) +} +``` + +**Correct: non-blocking** + +```tsx +import { after } from 'next/server' +import { headers, cookies } from 'next/headers' +import { logUserAction } from '@/app/utils' + +export async function POST(request: Request) { + // Perform mutation + await updateDatabase(request) + + // Log after response is sent + after(async () => { + const userAgent = (await headers()).get('user-agent') || 'unknown' + const sessionCookie = (await cookies()).get('session-id')?.value || 'anonymous' + + logUserAction({ sessionCookie, userAgent }) + }) + + return new Response(JSON.stringify({ status: 'success' }), { + status: 200, + headers: { 'Content-Type': 'application/json' } + }) +} +``` + +The response is sent immediately while logging happens in the background. + +**Common use cases:** + +- Analytics tracking + +- Audit logging + +- Sending notifications + +- Cache invalidation + +- Cleanup tasks + +**Important notes:** + +- `after()` runs even if the response fails or redirects + +- Works in Server Actions, Route Handlers, and Server Components + +Reference: [https://nextjs.org/docs/app/api-reference/functions/after](https://nextjs.org/docs/app/api-reference/functions/after) + +--- + +## 4. Client-Side Data Fetching + +**Impact: MEDIUM-HIGH** + +Automatic deduplication and efficient data fetching patterns reduce redundant network requests. + +### 4.1 Deduplicate Global Event Listeners + +**Impact: LOW (single listener for N components)** + +Use `useSWRSubscription()` to share global event listeners across component instances. + +**Incorrect: N instances = N listeners** + +```tsx +function useKeyboardShortcut(key: string, callback: () => void) { + useEffect(() => { + const handler = (e: KeyboardEvent) => { + if (e.metaKey && e.key === key) { + callback() + } + } + window.addEventListener('keydown', handler) + return () => window.removeEventListener('keydown', handler) + }, [key, callback]) +} +``` + +When using the `useKeyboardShortcut` hook multiple times, each instance will register a new listener. + +**Correct: N instances = 1 listener** + +```tsx +import useSWRSubscription from 'swr/subscription' + +// Module-level Map to track callbacks per key +const keyCallbacks = new Map void>>() + +function useKeyboardShortcut(key: string, callback: () => void) { + // Register this callback in the Map + useEffect(() => { + if (!keyCallbacks.has(key)) { + keyCallbacks.set(key, new Set()) + } + keyCallbacks.get(key)!.add(callback) + + return () => { + const set = keyCallbacks.get(key) + if (set) { + set.delete(callback) + if (set.size === 0) { + keyCallbacks.delete(key) + } + } + } + }, [key, callback]) + + useSWRSubscription('global-keydown', () => { + const handler = (e: KeyboardEvent) => { + if (e.metaKey && keyCallbacks.has(e.key)) { + keyCallbacks.get(e.key)!.forEach(cb => cb()) + } + } + window.addEventListener('keydown', handler) + return () => window.removeEventListener('keydown', handler) + }) +} + +function Profile() { + // Multiple shortcuts will share the same listener + useKeyboardShortcut('p', () => { /* ... */ }) + useKeyboardShortcut('k', () => { /* ... */ }) + // ... +} +``` + +### 4.2 Use Passive Event Listeners for Scrolling Performance + +**Impact: MEDIUM (eliminates scroll delay caused by event listeners)** + +Add `{ passive: true }` to touch and wheel event listeners to enable immediate scrolling. Browsers normally wait for listeners to finish to check if `preventDefault()` is called, causing scroll delay. + +**Incorrect:** + +```typescript +useEffect(() => { + const handleTouch = (e: TouchEvent) => console.log(e.touches[0].clientX) + const handleWheel = (e: WheelEvent) => console.log(e.deltaY) + + document.addEventListener('touchstart', handleTouch) + document.addEventListener('wheel', handleWheel) + + return () => { + document.removeEventListener('touchstart', handleTouch) + document.removeEventListener('wheel', handleWheel) + } +}, []) +``` + +**Correct:** + +```typescript +useEffect(() => { + const handleTouch = (e: TouchEvent) => console.log(e.touches[0].clientX) + const handleWheel = (e: WheelEvent) => console.log(e.deltaY) + + document.addEventListener('touchstart', handleTouch, { passive: true }) + document.addEventListener('wheel', handleWheel, { passive: true }) + + return () => { + document.removeEventListener('touchstart', handleTouch) + document.removeEventListener('wheel', handleWheel) + } +}, []) +``` + +**Use passive when:** tracking/analytics, logging, any listener that doesn't call `preventDefault()`. + +**Don't use passive when:** implementing custom swipe gestures, custom zoom controls, or any listener that needs `preventDefault()`. + +### 4.3 Use SWR for Automatic Deduplication + +**Impact: MEDIUM-HIGH (automatic deduplication)** + +SWR enables request deduplication, caching, and revalidation across component instances. + +**Incorrect: no deduplication, each instance fetches** + +```tsx +function UserList() { + const [users, setUsers] = useState([]) + useEffect(() => { + fetch('/api/users') + .then(r => r.json()) + .then(setUsers) + }, []) +} +``` + +**Correct: multiple instances share one request** + +```tsx +import useSWR from 'swr' + +function UserList() { + const { data: users } = useSWR('/api/users', fetcher) +} +``` + +**For immutable data:** + +```tsx +import { useImmutableSWR } from '@/lib/swr' + +function StaticContent() { + const { data } = useImmutableSWR('/api/config', fetcher) +} +``` + +**For mutations:** + +```tsx +import { useSWRMutation } from 'swr/mutation' + +function UpdateButton() { + const { trigger } = useSWRMutation('/api/user', updateUser) + return +} +``` + +Reference: [https://swr.vercel.app](https://swr.vercel.app) + +### 4.4 Version and Minimize localStorage Data + +**Impact: MEDIUM (prevents schema conflicts, reduces storage size)** + +Add version prefix to keys and store only needed fields. Prevents schema conflicts and accidental storage of sensitive data. + +**Incorrect:** + +```typescript +// No version, stores everything, no error handling +localStorage.setItem('userConfig', JSON.stringify(fullUserObject)) +const data = localStorage.getItem('userConfig') +``` + +**Correct:** + +```typescript +const VERSION = 'v2' + +function saveConfig(config: { theme: string; language: string }) { + try { + localStorage.setItem(`userConfig:${VERSION}`, JSON.stringify(config)) + } catch { + // Throws in incognito/private browsing, quota exceeded, or disabled + } +} + +function loadConfig() { + try { + const data = localStorage.getItem(`userConfig:${VERSION}`) + return data ? JSON.parse(data) : null + } catch { + return null + } +} + +// Migration from v1 to v2 +function migrate() { + try { + const v1 = localStorage.getItem('userConfig:v1') + if (v1) { + const old = JSON.parse(v1) + saveConfig({ theme: old.darkMode ? 'dark' : 'light', language: old.lang }) + localStorage.removeItem('userConfig:v1') + } + } catch {} +} +``` + +**Store minimal fields from server responses:** + +```typescript +// User object has 20+ fields, only store what UI needs +function cachePrefs(user: FullUser) { + try { + localStorage.setItem('prefs:v1', JSON.stringify({ + theme: user.preferences.theme, + notifications: user.preferences.notifications + })) + } catch {} +} +``` + +**Always wrap in try-catch:** `getItem()` and `setItem()` throw in incognito/private browsing (Safari, Firefox), when quota exceeded, or when disabled. + +**Benefits:** Schema evolution via versioning, reduced storage size, prevents storing tokens/PII/internal flags. + +--- + +## 5. Re-render Optimization + +**Impact: MEDIUM** + +Reducing unnecessary re-renders minimizes wasted computation and improves UI responsiveness. + +### 5.1 Defer State Reads to Usage Point + +**Impact: MEDIUM (avoids unnecessary subscriptions)** + +Don't subscribe to dynamic state (searchParams, localStorage) if you only read it inside callbacks. + +**Incorrect: subscribes to all searchParams changes** + +```tsx +function ShareButton({ chatId }: { chatId: string }) { + const searchParams = useSearchParams() + + const handleShare = () => { + const ref = searchParams.get('ref') + shareChat(chatId, { ref }) + } + + return +} +``` + +**Correct: reads on demand, no subscription** + +```tsx +function ShareButton({ chatId }: { chatId: string }) { + const handleShare = () => { + const params = new URLSearchParams(window.location.search) + const ref = params.get('ref') + shareChat(chatId, { ref }) + } + + return +} +``` + +### 5.2 Extract to Memoized Components + +**Impact: MEDIUM (enables early returns)** + +Extract expensive work into memoized components to enable early returns before computation. + +**Incorrect: computes avatar even when loading** + +```tsx +function Profile({ user, loading }: Props) { + const avatar = useMemo(() => { + const id = computeAvatarId(user) + return + }, [user]) + + if (loading) return + return
{avatar}
+} +``` + +**Correct: skips computation when loading** + +```tsx +const UserAvatar = memo(function UserAvatar({ user }: { user: User }) { + const id = useMemo(() => computeAvatarId(user), [user]) + return +}) + +function Profile({ user, loading }: Props) { + if (loading) return + return ( +
+ +
+ ) +} +``` + +**Note:** If your project has [React Compiler](https://react.dev/learn/react-compiler) enabled, manual memoization with `memo()` and `useMemo()` is not necessary. The compiler automatically optimizes re-renders. + +### 5.3 Narrow Effect Dependencies + +**Impact: LOW (minimizes effect re-runs)** + +Specify primitive dependencies instead of objects to minimize effect re-runs. + +**Incorrect: re-runs on any user field change** + +```tsx +useEffect(() => { + console.log(user.id) +}, [user]) +``` + +**Correct: re-runs only when id changes** + +```tsx +useEffect(() => { + console.log(user.id) +}, [user.id]) +``` + +**For derived state, compute outside effect:** + +```tsx +// Incorrect: runs on width=767, 766, 765... +useEffect(() => { + if (width < 768) { + enableMobileMode() + } +}, [width]) + +// Correct: runs only on boolean transition +const isMobile = width < 768 +useEffect(() => { + if (isMobile) { + enableMobileMode() + } +}, [isMobile]) +``` + +### 5.4 Subscribe to Derived State + +**Impact: MEDIUM (reduces re-render frequency)** + +Subscribe to derived boolean state instead of continuous values to reduce re-render frequency. + +**Incorrect: re-renders on every pixel change** + +```tsx +function Sidebar() { + const width = useWindowWidth() // updates continuously + const isMobile = width < 768 + return