Free launches are open: 12 a day, and open-source projects get a dofollow link with no badge.

Submit

ai-deslop

Linter rules to catch low-quality AI-generated code patterns

Developer ToolsFree#linting#typescript#code-quality

Listed by the ProductPerch team from Hacker News · not launched here yet

What is ai-deslop?

ai-deslop is an npm package that provides opinionated rules for oxlint. It targets code patterns commonly found in low-evidence or AI-generated output. The package combines existing anti-slop rules with custom rules under the deslop/ namespace. It ships as compiled JavaScript and works with any oxlint plugin runtime, including Bun, Deno, and Node.js.

The recommended configuration enables rules focused on type safety and evidence. These rules block nested type assertions, reject unknown parameters and returns, and require safety comments for non-const assertions. They also prevent widening known values into unsafe types.

Additional rule groups address code quality and testing. The tool flags adjacent eager array filters and maps, rejects unnecessary reflect calls, and identifies weak test assertions like substring checks or repeated expect calls. Opt-in rules handle duplicate constants, renamed imports, and canonical Tailwind CSS v4 class spellings.

ai-deslop features

  • Blocks nested type assertions and unsafe type widening
  • Rejects unknown parameters and return contracts
  • Flags weak or redundant test assertions
  • Enforces lazy iterator pipelines over eager arrays
  • Catches duplicate constants and exact duplicate types
  • Fixes non-canonical Tailwind CSS v4 class spellings
  • Requires safety comments for non-const type assertions

Who uses ai-deslop and for what

  • Reviewing code generated by AI assistants before merging
  • Enforcing strict TypeScript typing in team projects
  • Improving unit test reliability by catching mock-only checks
  • Standardizing coding practices across a development workflow
  • Cleaning up Tailwind CSS class names automatically

ai-deslop FAQ

Is ai-deslop free?

Yes, the package is available on npm at no cost.

Is ai-deslop open source?

Yes, the source code is hosted publicly on GitHub.

What is ai-deslop used for?

It provides oxlint rules that detect and reject low-quality or AI-generated code patterns.

Does ai-deslop work on Mac?

The website does not say. It runs via Node.js, Bun, or Deno, which are cross-platform.

How do I install ai-deslop?

Run npm install --save-dev ai-deslop to add it to your project.

Comments (0)

Comments and upvotes open when this product launches on ProductPerch.

More Developer Tools launches

All Developer Tools tools

Launch packs

Buy paid launches