{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "shadcn-ui-lint--make-agents-fix-lint-errors-first",
 "repo": "shadcn-ui/lint",
 "repo_url": "https://github.com/shadcn-ui/lint",
 "repo_slug": "shadcn-ui-lint",
 "title": "Make coding agents fix Lint errors before finishing",
 "page_title": "How to make coding agents fix Lint errors before finishing with Lint",
 "summary": "Give the agent a Lint command and an instruction to run it and fix errors after every change.",
 "who": "A developer who hands UI tasks to a coding agent and wants the agent to check its own work before reporting done.",
 "problem": "Agents report tasks complete without checking their Tailwind usage against the design system, so errors reach review.",
 "outcome": "The project has a Lint script, and the agent guidance file tells the agent to run it and fix all errors after each change.",
 "steps": [
  "Run `npm install -D @shadcn/lint eslint @typescript-eslint/parser` in the project, or `npm install -D @shadcn/lint oxlint` if you use Oxlint.",
  "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.",
  "Run `npm run lint` once to confirm the script works before giving the agent a task."
 ],
 "agent_prompt": "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.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "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.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "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"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/shadcn-ui-lint/make-agents-fix-lint-errors-first/",
 "md": "https://dedupedai.com/use-cases/shadcn-ui-lint/make-agents-fix-lint-errors-first/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/shadcn-ui-lint--make-agents-fix-lint-errors-first.json",
 "api_version": "v1"
}
