<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Yash Jadhav</title>
    <description>The latest articles on DEV Community by Yash Jadhav (@yashjadhav21).</description>
    <link>https://dev.to/yashjadhav21</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3873163%2F0c3c3be0-bbe0-494f-8de2-0713dd749962.jpeg</url>
      <title>DEV Community: Yash Jadhav</title>
      <link>https://dev.to/yashjadhav21</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yashjadhav21"/>
    <language>en</language>
    <item>
      <title>I Built an ESLint Plugin + Zero-Config CLI That Catches AI-Generated Code Slop (1,137 Downloads in Days)</title>
      <dc:creator>Yash Jadhav</dc:creator>
      <pubDate>Sat, 11 Apr 2026 08:29:31 +0000</pubDate>
      <link>https://dev.to/yashjadhav21/i-built-an-eslint-plugin-zero-config-cli-that-catches-ai-generated-code-slop-1137-downloads-in-4dkm</link>
      <guid>https://dev.to/yashjadhav21/i-built-an-eslint-plugin-zero-config-cli-that-catches-ai-generated-code-slop-1137-downloads-in-4dkm</guid>
      <description>&lt;p&gt;AI tools like Cursor and Claude write code incredibly fast — but they keep introducing the same predictable bugs over and over: empty catch blocks, floating promises, &lt;code&gt;await&lt;/code&gt;inside loops, missing auth middleware, unsafe &lt;code&gt;JSON.parse()&lt;/code&gt;, and SQL string concatenation.Standard ESLint misses most of these. So I built eslint-plugin-ai-guard.&lt;br&gt;
What it does&lt;br&gt;
17 targeted rules designed specifically for AI anti-patterns&lt;br&gt;
Zero-config CLI: just &lt;code&gt;npx ai-guard run&lt;/code&gt;&lt;br&gt;
Three presets: recommended (low noise), strict, and security&lt;br&gt;
Full support for ESLint 8 &amp;amp; 9 (flat config + legacy)&lt;/p&gt;

&lt;p&gt;Quick Start:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;--save-dev&lt;/span&gt; eslint-plugin-ai-guard
npx ai-guard run
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That’s it. &lt;br&gt;
&lt;strong&gt;No config file needed.&lt;/strong&gt;&lt;br&gt;
Real Output from a Production-Like Invoice AppI ran it today on a real Next.js + Express project. &lt;br&gt;
It found 61 warnings in ~7 seconds:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F98lvpzssojmx33yaeabi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F98lvpzssojmx33yaeabi.png" alt="the summary view with “AI GUARD RESULTS”"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Facp117klvne0ype8nq7v.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Facp117klvne0ype8nq7v.png" alt="the detailed “Issues by File” view"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Top issues it caught:&lt;br&gt;
&lt;code&gt;require-auth-middleware&lt;/code&gt; (34 warnings)&lt;br&gt;
&lt;code&gt;require-authz-check&lt;/code&gt; (13 warnings)&lt;br&gt;
&lt;code&gt;no-await-in-loop&lt;/code&gt; (5 warnings — classic Claude/Cursor pattern)&lt;br&gt;
&lt;code&gt;no-async-without-await&lt;/code&gt; (6 warnings)&lt;br&gt;
&lt;code&gt;no-unsafe-deserialize&lt;/code&gt; (3 warnings)&lt;/p&gt;

&lt;p&gt;Current Stats:&lt;br&gt;
&lt;strong&gt;1,137&lt;/strong&gt; npm downloads&lt;br&gt;
Reddit posts already getting thousands of views&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why this exists&lt;/strong&gt;&lt;br&gt;
AI-generated code has 1.7× more issues and 2.74× more security vulnerabilities than human code &lt;strong&gt;(CodeRabbit 2025)&lt;/strong&gt;. These aren’t theoretical problems — they cause silent failures and security holes in production.&lt;br&gt;
The &lt;code&gt;recommended&lt;/code&gt;preset is intentionally low-noise so you can drop it into an existing codebase on day one without getting overwhelmed.&lt;/p&gt;

&lt;p&gt;Full Rules + ConfigsSee the complete list (error handling, async stability, security, code quality) in the repo.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub: &lt;a href="https://github.com/YashJadhav21/eslint-plugin-ai-guard" rel="noopener noreferrer"&gt;https://github.com/YashJadhav21/eslint-plugin-ai-guard&lt;/a&gt;&lt;br&gt;
npm: &lt;a href="https://www.npmjs.com/package/eslint-plugin-ai-guard" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/eslint-plugin-ai-guard&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;What’s Next?&lt;br&gt;
I’m still actively fixing false positives and adding auto-fixers based on real usage.&lt;br&gt;
If you use Cursor, Claude, or Copilot, I’d love your feedback:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What AI anti-pattern keeps biting you the most?&lt;/li&gt;
&lt;li&gt;Which rule should I make stricter or add auto-fix support for?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Drop a comment or open an issue on GitHub. Rule requests and false-positive reports are very welcome!&lt;/p&gt;

</description>
      <category>eslint</category>
      <category>ai</category>
      <category>javascript</category>
      <category>typescript</category>
    </item>
  </channel>
</rss>
