Deslop - Oxlint rules that reject AI-generated TypeScript slop

Show HN: Deslop – Oxlint rules for AI-generated TypeScript

Deslop is an opinionated set of Oxlint rules that catches low-evidence, low-signal patterns typical of AI-generated TypeScript. It rejects chained type assertions, unknown parameters, unsafe dictionaries, and other type-safety escape hatches, while also flagging code quality issues like adjacent filter/map passes and redundant test assertions. Built on rules vendored from dmmulroy/anti-slop, it installs via npm and works with Bun, Deno, or Node.js. Just add it to your Oxlint config to automatically enforce cleaner, more trustworthy TypeScript.

Opinionated Oxlint rules that reject low-evidence, low-signal, AI-slop code patterns.
  1. SSchick

    I work on a project where we recently heavily pivoted into AI assisted feature development and without a extremely defensive/aggressive lint config and test coverage near ~80% most of these developments would be quiet impossible.

    `no-reflect-get` is definitely one I'd adopt, claude LOVES `Reflect.get` for some reason

    A lot of the lint rules in this repo remind me of https://github.com/sindresorhus/eslint-plugin-unicorn, I can't wait until oxlint has plugin support so I can move over to it.

  2. tmsh

    I agree https://github.com/dmmulroy/anti-slop is very cool (heard about it via https://www.youtube.com/watch?v=ix1qQK1IvmA).

    But what does this add beyond that?

  3. navs

    oxlint and some general ast-grep rules have pretty much been an absolute necessity for any of my LLM based code generation. I started down this path after looking at what coderabbit suggested in https://github.com/coderabbitai/ast-grep-essentials

More from this day

2026-10-13