Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

ESLint

$ eslint Foundation Low Risk
OpenJS Foundation · Code & DevOps · MIT · macos / linux / windows

The standard pluggable static analyzer for JavaScript and TypeScript under the OpenJS Foundation. Gives agents structured --format json diagnostics, --fix-dry-run previews without disk writes, and --no-color clean output.

FCRS-1.0 Score
88 /100
Good
Medium Confidence
Zero-Friction Install
npm install -D eslint
CLI vs MCP Decision CLI Only

Runs local AST and TypeScript-ESLint rules directly in the repository workspace.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
✓ Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 22 / 25

Built-in --format json, --fix-dry-run, --no-color, --quiet (errors only), and deterministic exit codes.

  • eslint --format json and --fix-dry-run provide structured JSON output
Trust & Safety 22 / 25

Read-only by default; --fix-dry-run computes fixes in memory without touching files.

  • --fix-dry-run verifies edits before writing
Setup & Portability 13 / 15

Cross-platform npm package requiring Node.js and project config (eslint.config.* or .eslintrc*).

  • Runs everywhere Node.js is installed
Utility & Efficiency 13 / 15

Unmatched plugin ecosystem including type-checked typescript-eslint rules, though slower than Rust linters on huge repos.

  • Supports thousands of framework and type-aware plugins
Maintenance & Lineage 9 / 10

OpenJS Foundation project under MIT license with long-term stability.

  • Maintained under OpenJS Foundation (eslint/eslint)
Docs & Verifiability 9 / 10

Thorough CLI and flat-config reference at eslint.org.

  • Official CLI reference at eslint.org

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

Purely local static analysis; no credentials stored or required.

Side Effects
Read-Only Local Write
Cost & Quotas

MIT open-source npm package; completely free.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# ESLint (eslint) Agent Rules
- Always pass `--format json --no-color` when collecting diagnostics.
- Prefer `--fix-dry-run --format json` before `--fix` on unfamiliar codebases.
- Avoid `--no-eslintrc` / `--no-config-lookup` unless isolating a single rule.

Agent-Ready Command Recipes

Safe Read-Only Queries

Lint files and emit JSON diagnostics
npx eslint --format json --no-color .

Outputs per-file lint errors, rule IDs, and line/column spans as JSON without editing files.

Preview auto-fixes without writing to disk
npx eslint --fix-dry-run --format json .

Computes proposed autofix outputs in JSON without modifying source files.

Controlled Writes & Previews

Apply automatic ESLint fixes
npx eslint --fix --no-color .

Applies fixable rule edits in place across matching files.

Strengths for Agents

  • + --fix-dry-run --format json lets agents inspect proposed fixes before modifying files.
  • + --quiet suppresses warning noise so agents focus on blocking errors.
  • + Supports deep TypeScript type-aware and framework-specific plugins.

Caveats & Pitfalls

  • ! Noticeably slower than Rust linters (oxlint, biome) on large monorepos.
  • ! Flat config (eslint.config.js) vs legacy .eslintrc transitions can cause config lookup errors across repos.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI