chore: biome format vitest config, add Props JSDoc to SidebarNav
This commit is contained in:
@@ -5,6 +5,9 @@ import { usePathname } from 'next/navigation';
|
|||||||
import { CONTACT_LINKS, cn } from '$shared/lib';
|
import { CONTACT_LINKS, cn } from '$shared/lib';
|
||||||
import type { NavItem } from '../model/types';
|
import type { NavItem } from '../model/types';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Props for SidebarNav.
|
||||||
|
*/
|
||||||
interface Props {
|
interface Props {
|
||||||
/**
|
/**
|
||||||
* Navigation items to render
|
* Navigation items to render
|
||||||
|
|||||||
+10
-10
@@ -1,6 +1,6 @@
|
|||||||
import { defineConfig } from 'vitest/config'
|
import react from '@vitejs/plugin-react';
|
||||||
import react from '@vitejs/plugin-react'
|
import path from 'path';
|
||||||
import path from 'path'
|
import { defineConfig } from 'vitest/config';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [react()],
|
plugins: [react()],
|
||||||
@@ -12,13 +12,13 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
'$shared': path.resolve(__dirname, './src/shared'),
|
$shared: path.resolve(__dirname, './src/shared'),
|
||||||
'$entities': path.resolve(__dirname, './src/entities'),
|
$entities: path.resolve(__dirname, './src/entities'),
|
||||||
'$widgets': path.resolve(__dirname, './src/widgets'),
|
$widgets: path.resolve(__dirname, './src/widgets'),
|
||||||
'$features': path.resolve(__dirname, './src/features'),
|
$features: path.resolve(__dirname, './src/features'),
|
||||||
'$app': path.resolve(__dirname, './src/app'),
|
$app: path.resolve(__dirname, './src/app'),
|
||||||
'$routes': path.resolve(__dirname, './src/routes'),
|
$routes: path.resolve(__dirname, './src/routes'),
|
||||||
'@': path.resolve(__dirname, '.'),
|
'@': path.resolve(__dirname, '.'),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
});
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1 +1 @@
|
|||||||
/// <reference types="@vitest/browser-playwright" />
|
/// <reference types="@vitest/browser-playwright" />
|
||||||
|
|||||||
Reference in New Issue
Block a user