feat: eslint lsp (#1744)

This commit is contained in:
Aiden Cline
2025-08-09 11:04:58 -05:00
committed by GitHub
parent e2fac991dc
commit 1954b59167
3 changed files with 65 additions and 3 deletions

View File

@@ -111,6 +111,7 @@ export const EditTool = Tool.define("edit", {
continue
}
output += `\n<project_diagnostics>\n${file}\n${issues
// TODO: may want to make more leniant for eslint
.filter((item) => item.severity === 1)
.map(LSP.Diagnostic.pretty)
.join("\n")}\n</project_diagnostics>\n`