lemonxiny55/dsh-lint-loop ↗★ 3

dsh-lint-loop

自动检测本地代码Linter并提供编辑到修复的闭环工具 适合需要在会话中让模型自动运行代码检查并修复报错的开发者。

套件
dsh-lint-loop
相容性
待驗證
Harness 依賴範圍
>=0.1.0-rc.1 <0.2.0-0
Cordis 依賴範圍
^4.0.1
版本
0.5.0
授權
MIT
最近更新
2026年9月28日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:lemonxiny55/dsh-lint-loop

Zero configuration

The plugin probes the repo root for what is already there and routes by extension:

Config foundLinterFiles
eslint.config.{js,mjs,cjs,ts} or .eslintrc.{js,cjs,json,yml}eslint.ts .tsx .mts .cts .js .jsx .mjs .cjs
biome.json / biome.jsoncbiomesame JS family
ruff.toml / .ruff.toml / pyproject.toml with [tool.ruff]ruff.py .pyi
.golangci.yml / .golangci.yaml / .golangci.toml / .golangci.jsongolangci-lint.go
Cargo.tomlcargo clippy.rs
  • Multiple configs coexist? JS-family files go to eslint by default; biome only when a biome config exists WITHOUT an eslint config. Force the set with the linters config key.
  • Repo-local installs work: npm i -D eslint puts the binary in node_modules/.bin — the plugin resolves it before PATH.
  • Nothing configured? The plugin stays quiet; calling a tool returns the init hint (npx eslint --init / biome init / ruff / a .golangci.yml / a Cargo.toml) instead of an error.
  • Config file changes (adding biome.json mid-session, say) are observed and re-probed automatically.

Example (input → output):

lint_diagnostics { file_path: "src/extract.ts" }

## Configuration

Options are passed as the plugin row's `config` in the profile patch (or defaults are used if absent):

```yaml