diff --git a/package.json b/package.json
index 5278d1e..751a879 100644
--- a/package.json
+++ b/package.json
@@ -14,9 +14,7 @@
"node": ">=18",
"pnpm": ">=8"
},
- "files": [
- "dist"
- ],
+ "files": ["dist"],
"packageManager": "pnpm@8.6.11",
"scripts": {
"build": "pnpm build:scripts",
@@ -25,8 +23,11 @@
"build:styles": "NODE_ENV=production pnpm tailwindcss -i ./src/styles/globals.css -o ./dist/styles.css --postcss --minify",
"publish:ci": "pnpm publish --no-git-checks",
"publish:dry": "pnpm publish --no-git-checks --dry-run",
- "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
- "lint:fix": "eslint . --fix --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
+ "lint:check": "biome check ./src",
+ "lint:check:write": "biome check --apply-unsafe ./src",
+ "lint:format": "biome format ./src",
+ "lint:format:write": "biome format --write ./src",
+ "lint:all": "pnpm run lint:check && pnpm run lint:format",
"test:unit": "TZ=UTC pnpm vitest run --outputFile.junit=./test-results/junit.xml",
"test:unit:ci": "pnpm test:unit --coverage --silent",
"test:integration": "pnpm cypress run --component --env ELECTRON_EXTRA_LAUNCH_ARGS=--disable-gpu,LIBVA_DRIVER_NAME=--disable-software-rasterizer",
diff --git a/src/constants/heights.ts b/src/constants/heights.ts
index 53a63b2..8868592 100644
--- a/src/constants/heights.ts
+++ b/src/constants/heights.ts
@@ -1 +1 @@
-export const HEADER_HEIGHT = 56
+export const HEADER_HEIGHT = 56;
diff --git a/src/constants/zIndex.ts b/src/constants/zIndex.ts
index 06c348f..a841767 100644
--- a/src/constants/zIndex.ts
+++ b/src/constants/zIndex.ts
@@ -2,4 +2,4 @@ export const Z_INDEX = {
HEADER: 1000,
BACKDROP: 900,
SIDEBAR: 800,
-} as const
+} as const;
diff --git a/src/docs/cookbook/FullDemo.tsx b/src/docs/cookbook/FullDemo.tsx
index 6a424c3..6d85121 100644
--- a/src/docs/cookbook/FullDemo.tsx
+++ b/src/docs/cookbook/FullDemo.tsx
@@ -21,7 +21,7 @@ import {
import { InfoIcon, UserIcon } from "lucide-react";
import { useContext, useState } from "react";
-import { Header, Sidebar, Content, ShellContext } from "@/lib";
+import { Content, Header, ShellContext, Sidebar } from "@/lib";
const DEMO_SIDEBAR_ITEMS = [
{
diff --git a/src/docs/cookbook/SimpleImplementation.tsx b/src/docs/cookbook/SimpleImplementation.tsx
index f5a7b3c..2f54b22 100644
--- a/src/docs/cookbook/SimpleImplementation.tsx
+++ b/src/docs/cookbook/SimpleImplementation.tsx
@@ -1,5 +1,5 @@
import { ShellContainer } from "../../modules/Shell/ShellRoot";
export function SimpleImplementation() {
- return Hello;
+ return Hello;
}
diff --git a/src/modules/Header/Header.stories.tsx b/src/modules/Header/Header.stories.tsx
index 5c08e2d..862647d 100644
--- a/src/modules/Header/Header.stories.tsx
+++ b/src/modules/Header/Header.stories.tsx
@@ -7,7 +7,7 @@ import { InfoIcon, UserIcon } from "lucide-react";
import { Box } from "@chakra-ui/react";
-import { Shell, Header, Sidebar, Content } from "@/lib";
+import { Content, Header, Shell, Sidebar } from "@/lib";
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
const meta = {
@@ -30,7 +30,6 @@ export const WithSidebarNavigationToggle: Story = {
render() {
return (
-
@@ -66,7 +65,6 @@ export const WithSidebarNavigationToggle: Story = {
Hello World 🌍
-
);
},
diff --git a/src/modules/Header/HeaderLogo.tsx b/src/modules/Header/HeaderLogo.tsx
index e2a753a..8cd5341 100644
--- a/src/modules/Header/HeaderLogo.tsx
+++ b/src/modules/Header/HeaderLogo.tsx
@@ -15,15 +15,8 @@ export type HeaderLogoProps = BoxProps & {
* HeaderLogo component
* Second parameter of the forwardRef generic has to be of the component bound to `as` prop
*/
-export const HeaderLogo = forwardRef(
- ({
- children,
- src,
- alt,
- title,
- as = 'button',
- ...props
- }, ref) => {
+export const HeaderLogo = forwardRef(
+ ({ children, src, alt, title, as = "button", ...props }, ref) => {
return (
(
);
- }
-)
+ },
+);
diff --git a/src/modules/Header/HeaderMenuContentItem.tsx b/src/modules/Header/HeaderMenuContentItem.tsx
index 6026699..6e410a5 100644
--- a/src/modules/Header/HeaderMenuContentItem.tsx
+++ b/src/modules/Header/HeaderMenuContentItem.tsx
@@ -2,7 +2,10 @@ import { MenuItem, type MenuItemProps, forwardRef } from "@chakra-ui/react";
export type HeaderMenuContentItemProps = MenuItemProps & {};
-export const HeaderMenuContentItem = forwardRef(({ children, ...props }, ref) => {
+export const HeaderMenuContentItem = forwardRef<
+ HeaderMenuContentItemProps,
+ "button"
+>(({ children, ...props }, ref) => {
return (