ESLint diagnostics and auto-fix for Claude Code
npx claudepluginhub brxck/claude-eslintESLint LSP diagnostics + auto-fix on edit via PostToolUse hook
ESLint diagnostics and auto-fix plugin for Claude Code.
Running eslint as a one-off command on a large codebase is slow — it has to parse and analyze every file from scratch each time. By keeping a long-running ESLint LSP server warm for the entire session, this plugin can lint and auto-fix instantly after every agent edit, without the cold-start penalty.
eslint installed in your project (flat config eslint.config.js or legacy .eslintrc.*)claude --plugin-dir /path/to/claude-eslint
This plugin runs a single ESLint LSP server (from sublimelsp/LSP-eslint) via a proxy daemon:
.lsp.json)The proxy daemon (scripts/eslint-daemon.mjs) sits between Claude Code and the ESLint server:
textDocument/publishDiagnostics for fast access/tmp/claude-eslint-<hash>.sock for the auto-fix hookThe hook (scripts/eslint-autofix.mjs) connects to the daemon's socket after each edit to request source.fixAll.eslint code actions, which are applied directly to disk. Remaining unfixable issues are reported back to Claude.
claude --plugin-dir /path/to/claude-eslint --debug
Check for the daemon socket while a session is active:
ls /tmp/claude-eslint-*.sock