# Deslop: 专为AI生成TypeScript打造的Oxlint规则集

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

> Hacker News story 50075809 · language: zh · submitted 2026-10-13
> Web version: https://zeli.app/zh/story/50075809
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 32 · by [maharshi365](<https://news.ycombinator.com/user?id=maharshi365>) · 💬 7
[original](<https://github.com/maharshi365/deslop>) · [HN discussion](<https://news.ycombinator.com/item?id=50075809>)

## Summary

Deslop是一套专为TypeScript开发者设计的Oxlint规则集，旨在精准识别并拒绝AI生成的低质量代码模式。它整合了dmmulroy/anti-slop中的通用规则，并新增了针对类型安全、代码质量及测试规范的严格检查。无论是Bun、Deno还是Node.js环境，Deslop都能无缝集成，帮助团队从源头剔除那些看似合理实则隐患重重的'AI废话代码'，确保代码库的纯净与健壮。

## Key quote

> 我们拒绝那些缺乏证据、信号微弱的AI垃圾代码模式，让每一行代码都经得起推敲。

## HN discussion (7 comments)

### [SSchick](<https://news.ycombinator.com/item?id=50078412>)

> 我参与的一个项目最近大幅转向了 AI 辅助功能开发，如果没有极其防御性/激进的 lint 配置以及接近 80% 的测试覆盖率，这些开发工作几乎是不可能完成的。
>
> `no-reflect-get` 绝对是我会采纳的一条规则，不知为何 claude 特别钟爱 `Reflect.get`。
>
> 这个仓库里的很多 lint 规则让我想起了 https://github.com/sindresorhus/eslint-plugin-unicorn，我迫不及待想等到 oxlint 支持插件，然后迁移过去。

### [aleksiy123](<https://news.ycombinator.com/item?id=50077565>)

> 我真心认为拥有像这样优秀的规则能显著提升 LLM 的生成质量。所以这太棒了，谢谢。
>
> 我个人同时使用 oxlint 来处理 TypeScript，以及我自己用 vibe coding 写的一个工具，用于执行跨语言规则、AST 规则和 LLM hook 输出。
>
> 最近还加上了 vale。

### [navs](<https://news.ycombinator.com/item?id=50079258>)

> oxlint 和一些通用的 ast-grep 规则对我来说几乎是任何基于 LLM 的代码生成工作的绝对必需品。在查看了 coderabbit 在 https://github.com/coderabbitai/ast-grep-essentials 中的建议后，我就踏上了这条道路。

---

## Cite

- Page: https://zeli.app/zh/story/50075809
- Date: 2026-10-13
- Source: github.com (https://github.com/maharshi365/deslop)
- Hacker News: https://news.ycombinator.com/item?id=50075809

## Other languages

- en: https://zeli.app/story/50075809 · markdown: https://zeli.app/story/50075809.md
- ja: https://zeli.app/ja/story/50075809 · markdown: https://zeli.app/ja/story/50075809.md
- ko: https://zeli.app/ko/story/50075809 · markdown: https://zeli.app/ko/story/50075809.md
- de: https://zeli.app/de/story/50075809 · markdown: https://zeli.app/de/story/50075809.md
- es: https://zeli.app/es/story/50075809 · markdown: https://zeli.app/es/story/50075809.md
- ru: https://zeli.app/ru/story/50075809 · markdown: https://zeli.app/ru/story/50075809.md
