DA

dmmulroy/anti-slop

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

6129 stars 质量 76 趋势 50MIT

拒绝低证据的TypeScript和JavaScript模式的Oxlint观点规则

概览

有观点的Oxlint规则拒绝低证据和低信号的TypeScript和JavaScript模式。 反粗糙原则首先是我工作、项目和团队使用的规则集。它反映了我的偏好和品味,而不是试图成为通用的编码标准。 ,不被视为固定的 npm 依赖。没有官方的 npm 包。将规则复制到你的仓库,阅读规则,并修改以符合团队标准。捆绑的代理技能负责初始复制和配置;之后,供应商文件由你维护并自行制作。欢迎社区维护的分支和包,但它们的兼容性和发布生命周期由维护者决定。 然后让你的编码代理在当前仓库中安装或配置防污。

概述(AI 翻译)

有观点的Oxlint规则拒绝低证据和低信号的TypeScript和JavaScript模式。

反粗糙原则首先是我工作、项目和团队使用的规则集。它反映了我的偏好和品味,而不是试图成为通用的编码标准。

本项目旨在提供供应商服务,不被视为固定的npm依赖。没有官方的npm包。将规则复制到你的仓库,阅读规则,并修改以符合团队标准。捆绑的代理技能负责初始复制和配置;之后,供应商文件由你维护并自行制作。欢迎社区维护的分支和包,但它们的兼容性和发布生命周期由维护者决定。

用代理技能安装

然后请你的编码代理在当前仓库中安装或配置防滑率。该技能会复制插件,安装兼容的Oxlint依赖——如果存在时匹配现有Oxlint版本——将插件合并到现有lint配置中,启用所有通用规则,并验证结果。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

anti-slop

Opinionated Oxlint rules that reject low-evidence and low-signal TypeScript and JavaScript patterns.

Anti-slop is first and foremost the ruleset I use with my work, projects, and team. It reflects my preferences and taste rather than attempting to be a universal coding standard.

This project is meant to be vendored, not treated as a fixed npm dependency. There is no official npm package. Copy the rules into your repository, read them, and change them to match your team’s standards. The bundled agent skill handles the initial copy and configuration; after that, the vendored files are yours to maintain and make your own. Community-maintained forks and packages are welcome, but their compatibility and release lifecycle belong to their maintainers.

Install with an agent skill

npx skills add dmmulroy/anti-slop --skill install-anti-slop

Then ask your coding agent to install or configure anti-slop in the current repository. The skill copies the plugin, installs compatible Oxlint dependencies—matching an existing Oxlint version when present—merges the plugin into the existing lint configuration, enables every generic rule, and validates the result. In repositories that depend directly on Effect, it also enables the opt-in Effect rule group.

Update an existing installation

Ask your agent to update anti-slop while preserving local customizations, optionally naming an upstream revision or selected fixes. The same skill stages incoming source separately, uses a three-way merge when the original upstream snapshot is recoverable, and otherwise ports reviewed changes conservatively. It preserves local rules and configuration, asks about conflicting policy and enabling new rules, and records provenance for future updates. It does not force-replace the vendored directory.

For latest upstream, ask the agent to retrieve and identify that revision; an already-installed skill bundle may be older. The copy script itself does not fetch or merge updates.

To inspect available skills first:

npx skills add dmmulroy/anti-slop --list

Manual local installation

Copy src/ into the target repository, for example at tools/oxlint/anti-slop/. If the repository already uses oxlint, install @oxlint/plugins at exactly the resolved Oxlint version. Otherwise, install the same current version of both packages. Keep both versions exact so upgrades move them together.

Register the copied entry point in oxlint.config.ts:

import { defineConfig } from "oxlint";

export default defineConfig({
  ignorePatterns: [
    ".agent/**",
    ".agents/**",
    ".claude/**",
    ".codex/**",
    ".continue/**",
    ".cursor/**",
    ".gemini/**",
    ".opencode/**",
    ".pi/**",
    ".roo/**",
    ".windsurf/**",
    "tools/oxlint/anti-slop/**",
  ],
  jsPlugins: [
在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add dmmulroy/anti-slop
新手?先看 mcpskill.org 教程 →