ai-deslop npm package adds Oxlint rules targeting AI-generated TypeScript patterns
A developer released ai-deslop, an npm package bundling Oxlint rules aimed at flagging common low-quality patterns found in AI-generated TypeScript code, such as chained type assertions, unsafe use of 'unknown' types, and object-typed function parameters. The rules combine ones vendored from dmmulroy/anti-slop with additional checks, all under a deslop/* namespace, and ship as compiled JavaScript compatible with any Oxlint JS-plugin runtime including Bun, Deno, or Node.js.
GoKawiil's interpretation of the reporting above, not reported fact.
The tool reflects a growing concern among developers that AI coding assistants introduce subtle type-safety shortcuts and low-evidence patterns that pass compilation but weaken code reliability. By codifying these patterns into linter rules, the project suggests teams could enforce stricter review standards specifically calibrated to catch AI-assistant output, potentially becoming a template for similar tooling as AI-generated code grows more common in production codebases.
- ai-deslop is an installable npm package providing Oxlint rules to catch AI-generated TypeScript anti-patterns.
- Rules target issues like chained type assertions, unsafe 'unknown' type handling, and object-based function parameters.
- It builds on the MIT-licensed dmmulroy/anti-slop project and works across Bun, Deno, and Node.js runtimes.
Source: github.com, 2026-10-13
Published there as: “Show HN: Deslop – Oxlint rules for AI-generated TypeScript”
Read the original report → The summary and analysis above are GoKawiil's own, written from reporting by the source above. Facts and quotes belong to the original publisher.