open-swe/ui/eslint.config.js
Johannes du Plessis 0108d764d9
fix(ui): resolve eslint errors in dashboard components (#1538)
Clears ~83 pre-existing eslint errors in the UI: auto-fixable rules
(array-type, import/order, sort-imports, type-only imports, redundant
assertions/conditions) plus manual fixes for unnecessary conditions and
banned @ts-nocheck directives. The 8 ported components excluded from
tsconfig are now also ignored by eslint so type-aware linting no longer
fails to parse them.

Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
2026-06-15 17:29:38 -07:00

28 lines
944 B
JavaScript

// @ts-check
import { tanstackConfig } from "@tanstack/eslint-config"
export default [
{
ignores: [
".output/**",
".nitro/**",
".tanstack/**",
"dist/**",
"src/routeTree.gen.ts",
"src/components/ui/**",
// Ported from a desktop host app and excluded from tsconfig (not yet
// integrated), so type-aware linting cannot resolve them. Keep this list
// in sync with the `exclude` entries in tsconfig.json.
"src/components/agents/ported/ChatView.tsx",
"src/components/agents/ported/PromptBar.tsx",
"src/components/agents/ported/BranchSelector.tsx",
"src/components/agents/ported/ContextIndicator.tsx",
"src/components/agents/ported/SourceControlPanel.tsx",
"src/components/agents/ported/SourceControlTile.tsx",
"src/components/agents/ported/Footer.tsx",
"src/components/agents/ported/ThreadPicker.tsx",
],
},
...tanstackConfig,
]