diff --git a/.github/workflows/autofix-tabby-ui.yml b/.github/workflows/autofix-tabby-ui.yml index fc5295bf91ed..227187540e5c 100644 --- a/.github/workflows/autofix-tabby-ui.yml +++ b/.github/workflows/autofix-tabby-ui.yml @@ -35,6 +35,10 @@ jobs: working-directory: ./ee/tabby-ui run: yarn install + - name: Lint + working-directory: ./ee/tabby-ui + run: yarn lint:fix + - name: Format working-directory: ./ee/tabby-ui run: yarn format:write diff --git a/ee/tabby-ui/.eslintrc.json b/ee/tabby-ui/.eslintrc.json index 6ec5479fec08..c96e55738033 100644 --- a/ee/tabby-ui/.eslintrc.json +++ b/ee/tabby-ui/.eslintrc.json @@ -6,8 +6,9 @@ "prettier", "plugin:tailwindcss/recommended" ], - "plugins": ["tailwindcss"], + "plugins": ["tailwindcss", "unused-imports"], "rules": { + "unused-imports/no-unused-imports": "error", "tailwindcss/no-custom-classname": "off" }, "settings": { diff --git a/ee/tabby-ui/app/(dashboard)/components/sidebar.tsx b/ee/tabby-ui/app/(dashboard)/components/sidebar.tsx index d1603bdb44d9..9d02dfeff718 100644 --- a/ee/tabby-ui/app/(dashboard)/components/sidebar.tsx +++ b/ee/tabby-ui/app/(dashboard)/components/sidebar.tsx @@ -18,7 +18,7 @@ export default function Sidebar({ children, className }: SidebarProps) { className={cn('grid overflow-hidden lg:grid-cols-[280px_1fr]', className)} >
-
+