Linter and formatter config: instant feedback for AI coding agents
This check looks for a committed linter or formatter config: ESLint, Prettier, Biome, Ruff, rustfmt, Clippy, golangci-lint, RuboCop, clang-format, Checkstyle and dozens of others across languages.
By Himanshu Singh · Updated · How we score →
How many repos commit a linter or formatter config?
Of the 434 repos on the leaderboard, 382 pass in full (88%), 0 pass in part (0%) and 52 fail (12%).
Why do AI coding agents need a linter config?
A linter makes style checkable: the agent runs it and fixes the errors instead of copying the nearest file. Aider lints every file it edits by default, but with its built-in linters unless lint-cmd runs yours.
How do I make Claude Code run the linter after every edit?
- Put the lint and format commands in AGENTS.md so any agent can run them as a check.
- For a rule with no exceptions, use a hook: Claude Code runs a
PostToolUsehook after each tool call; theEdit|Writematcher limits it to file edits. The docs' example formats each edited file with Prettier. - Committed in
.claude/settings.json, it applies to everyone in the repo once they trust the folder. - Aider needs no hook: it lints the files it edits by default, and
lint-cmdin.aider.conf.ymlswaps in your own linter.
.claude/settings.json
{
"hooks": {
"PostToolUse": [
{
"matcher": "Edit|Write",
"hooks": [
{ "type": "command", "command": "f=$(jq -r '.tool_input.file_path') && npx prettier --write --ignore-unknown \"$f\"" }
]
}
]
}
}
382 of 434 leaderboard repos pass this check in full (88%). Sources: code.claude.com/hooks-guide (new tab), code.claude.com/best-practices (new tab), aider.chat/lint-test.html (new tab).
What counts as a linter or formatter config?
- Full pass: a config file for a supported tool, at the repo root or in a top-level folder such as
src/. - Also a full pass: linter settings inside a shared file, such as a
[tool.ruff],[tool.black],[tool.flake8],[tool.pylint],[tool.isort]or[tool.mypy]section inpyproject.toml, a[flake8]section intox.iniorsetup.cfg,eslintConfigorprettierinpackage.json,[lints]inCargo.toml, anaddFmtstep inbuild.zig, or Spotless, Checkstyle, PMD, Error Prone, detekt or ktlint in a Gradle or Maven build file. A Checkstyle XML two folders down also counts. - Also a full pass: an
.editorconfigwithdotnet_,csharp_,visual_basic_,fsharp_orktlint_keys, or aDirectory.Build.propsthat setsEnforceCodeStyleInBuild,AnalysisLevelorAnalysisMode. An.editorconfigwith only indentation and charset settings does not count. - Fail: no config found. We do not run the linter.
How checks become a score: methodology.
How do I add a linter config to my repo?
Commit your language's standard linter config and put the lint command in AGENTS.md. A linter on default settings leaves no file to find.
Which AI coding agents weigh a linter config most?
- Aider14% of its score
- Pi11% of its score
- Cursor9% of its score
- Claude Code8% of its score
- Kimi Code CLI8% of its score
- Gemini CLI8% of its score
- Codex8% of its score
- OpenHands6% of its score
- Devin6% of its score
Pass rate by language
- JavaScript16 of 16 (100%)
- PHP14 of 14 (100%)
- Elixir7 of 7 (100%)
- Clojure5 of 5 (100%)
- Rust45 of 47 (96%)
- Java30 of 32 (94%)
- C#11 of 12 (92%)
- Dart11 of 12 (92%)
- Python51 of 56 (91%)
- Ruby10 of 11 (91%)
- TypeScript79 of 88 (90%)
- Scala5 of 6 (83%)
- Zig5 of 6 (83%)
- Go34 of 41 (83%)
- C++17 of 21 (81%)
- Kotlin11 of 15 (73%)
- Swift10 of 14 (71%)
- Haskell5 of 7 (71%)
- C7 of 10 (70%)
Top-scoring repos that pass
- Ruby · 48.1k ★
- Rust · 6.8k ★
- PostHog/posthog91.2Python · 41.2k ★
- novuhq/novu91.2TypeScript · 40.4k ★
- jdx/mise91.2Rust · 36.6k ★
- TypeScript · 136.4k ★
- Python · 68.4k ★
- TypeScript · 395.3k ★
- vercel/next.js89.5JavaScript · 143.8k ★
- astral-sh/ruff89.5Rust · 51.6k ★
- apache/airflow89.5Python · 47.7k ★
- getsentry/sentry89.5Python · 45.9k ★
Popular repos that fail it
- TypeScript · 211.5k ★
- TypeScript · 157.3k ★
- Python · 150.1k ★
- golang/go47.0Go · 140.2k ★
- Go · 129.4k ★
- opencv/opencv63.6C++ · 91.8k ★
- gohugoio/hugo74.3Go · 90.6k ★
- Python · 88k ★
Every check, grouped into what to do first: how to make your repo ready for AI coding agents.