DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to make coding agents fix Lint errors before finishing with Lint

Give the agent a Lint command and an instruction to run it and fix errors after every change.

Short answer: Run npm install -D @shadcn/lint eslint @typescript-eslint/parser in the project, or npm install -D @shadcn/lint oxlint if you use Oxlint; then add eslint . or oxlint as the Lint script in package.json; add this line to AGENTS.md: After making changes, run npm run lint and fix all errors. All steps.

Who it is forA developer who hands UI tasks to a coding agent and wants the agent to check its own work before reporting done.

The problemAgents report tasks complete without checking their Tailwind usage against the design system, so errors reach review.

The outcomeThe project has a Lint script, and the agent guidance file tells the agent to run it and fix all errors after each change.

What you need first

  • Node.js 20.19 or later
  • A Tailwind v4 project (shadcn/ui is not required)
  • ESLint 9.30 or later, or Oxlint 1.80 or later
  • A React, Vue, or Svelte project

Steps

  1. Run npm install -D @shadcn/lint eslint @typescript-eslint/parser in the project, or npm install -D @shadcn/lint oxlint if you use Oxlint.
  2. Add eslint . or oxlint as the Lint script in package.json.
  3. Add this line to AGENTS.md: After making changes, run npm run lint and fix all errors.
  4. Run npm run lint once to confirm the script works before giving the agent a task.

Prompt for your agent

Use the GitHub repo shadcn-ui/lint to set up the lint loop in <project-path>. Install the package, add the lint script, and add the README instruction to AGENTS.md. Expected output: npm run lint exits cleanly on the current code. Verify that a deliberate arbitrary value in one file makes the command report an error.

Caveat. The README reports eval results across many agent runs, but those results come from the authors' own tests and are not a guarantee for every project.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for shadcn-ui/lint and "Make coding agents fix Lint errors before finishing"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer