From b4bda4b8f79f1563e342921b10e4637fc528435e Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Mon, 11 May 2026 11:11:24 +0300 Subject: [PATCH] chore: biome format vitest config, add Props JSDoc to SidebarNav --- src/widgets/Navigation/ui/SidebarNav.tsx | 3 +++ vitest.config.ts | 20 ++++++++++---------- vitest.shims.d.ts | 2 +- 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/src/widgets/Navigation/ui/SidebarNav.tsx b/src/widgets/Navigation/ui/SidebarNav.tsx index ab1aa2c..f34cd8e 100644 --- a/src/widgets/Navigation/ui/SidebarNav.tsx +++ b/src/widgets/Navigation/ui/SidebarNav.tsx @@ -5,6 +5,9 @@ import { usePathname } from 'next/navigation'; import { CONTACT_LINKS, cn } from '$shared/lib'; import type { NavItem } from '../model/types'; +/** + * Props for SidebarNav. + */ interface Props { /** * Navigation items to render diff --git a/vitest.config.ts b/vitest.config.ts index 7eee458..71a8ef2 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -1,6 +1,6 @@ -import { defineConfig } from 'vitest/config' -import react from '@vitejs/plugin-react' -import path from 'path' +import react from '@vitejs/plugin-react'; +import path from 'path'; +import { defineConfig } from 'vitest/config'; export default defineConfig({ plugins: [react()], @@ -12,13 +12,13 @@ export default defineConfig({ }, resolve: { alias: { - '$shared': path.resolve(__dirname, './src/shared'), - '$entities': path.resolve(__dirname, './src/entities'), - '$widgets': path.resolve(__dirname, './src/widgets'), - '$features': path.resolve(__dirname, './src/features'), - '$app': path.resolve(__dirname, './src/app'), - '$routes': path.resolve(__dirname, './src/routes'), + $shared: path.resolve(__dirname, './src/shared'), + $entities: path.resolve(__dirname, './src/entities'), + $widgets: path.resolve(__dirname, './src/widgets'), + $features: path.resolve(__dirname, './src/features'), + $app: path.resolve(__dirname, './src/app'), + $routes: path.resolve(__dirname, './src/routes'), '@': path.resolve(__dirname, '.'), }, }, -}) +}); diff --git a/vitest.shims.d.ts b/vitest.shims.d.ts index 7782f28..03b1801 100644 --- a/vitest.shims.d.ts +++ b/vitest.shims.d.ts @@ -1 +1 @@ -/// \ No newline at end of file +///