Code librariesReviewed · dmmulroy

anti-slop

anti-slop is an opinionated set of Oxlint lint rules for TypeScript and JavaScript teams who want to reject low-evidence code patterns. Its main catch is that you copy it into your repository and maintain it there, because there is no official npm package. It has 18 generic rules, 5 optional Effect rules and an agent skill that installs and updates the copied files.

Researched 13 Nov 2026

In short.

anti-slop is an opinionated set of Oxlint lint rules for TypeScript and JavaScript teams who want to reject low-evidence code patterns. Its main catch is that it is designed to be copied (vendored) into your repository and owned there, because there is no official npm package. The captured revision has 18 generic rules, 5 opt-in Effect rules and a bundled agent skill (install-anti-slop) that copies the plugin, matches Oxlint dependency versions, merges configuration and handles later updates. The rules are syntactic. They use Oxlint's ESTree and scope APIs, not a TypeScript type checker, so they only reason about types declared in the same file. Nothing was executed for this review, so rule behaviour is described from source, tests and documentation only.

Researched and written by an AI model and checked by a second AI model. How it works

The review covers the complete selected repository at revision 13909c9e07590f5a85d93c62712259fe14a883f7 as captured on 2026-11-13. That includes configuration, documentation, the project's root MIT LICENSE, and the vendored ESLint Stylistic licence and provenance notes in src/vendor/eslint-stylistic and in the skill's asset copy. It also includes all rule and helper sources, the rule test files, the CI workflow, the lockfile and the bundled install-anti-slop skill. Linked pages, other branches, issue history and published package registries were outside the selected scope. Nothing was installed or executed: no tests, lint runs, installs or skill runs were performed, so behaviour is described from source and documentation only. The repository holds many files rather than one distributable file, so no single-file distribution is offered here.

The overview

What this resource is

anti-slop is a repository by Dillon Mulroy (the copyright line in the licence) that publishes a plugin of custom Oxlint rules for TypeScript and JavaScript. The README describes it as opinionated rules that reject low-evidence and low-signal patterns. It says the project is first of all the ruleset the author uses for their own work, projects and team, and that it reflects the author's preferences rather than a universal standard.

The repository has three parts. The canonical plugin source is in src/, with a generic plugin named anti-slop and an opt-in plugin named anti-slop-effect for Effect-based code. A bundled agent skill, install-anti-slop, lives in skills/install-anti-slop and carries a generated copy of the plugin source as assets. A vendored, adapted copy of the ESLint Stylistic padding-line-between-statements rule supports the spacing rule.

The package.json names the package oxlint-plugin-anti-slop at version 0.1.2 and marks it private, with an exports entry pointing at src/index.ts. The README states there is no official npm package. The captured revision is 13909c9e07590f5a85d93c62712259fe14a883f7.

Overall assessment

The captured material is a coherent, substantial project. Every one of the 18 generic rules and 5 Effect rules has its own source file. The package.json test script lists a RuleTester suite for each of them, plus a CLI test that runs the plugin through the Oxlint command line for the spacing rule. The documentation covers installation, updates, rule behaviour, violation examples and analysis boundaries, and the README is candid about what the rules cannot see.

For a reader, the central question is whether the rules fit your team's policy, not whether the code is good. Many rules enforce a strong house style: no unknown on function parameters, no runtime typeof narrowing, no module mocking, a required SAFETY comment on every non-const type assertion, and a ban on the substring shape in locally owned symbol names. The shape rule has one exception: statically accessed member names that belong to another value, such as schema.shape, are allowed. A team that shares these views gets a ready, readable rule pack. A team that does not should expect many findings on an existing codebase and should plan to edit or drop rules, which the README explicitly invites.

Nothing was run for this review. The plugin was not installed, the tests were not run and no code was linted with it, so claims about correctness rest on the source, the tests as written and the documentation. The bundled install script (install.mjs) copies the plugin files to a destination and overwrites an existing destination only when --force is passed. The sync script (sync-skill-assets.mjs) deletes and recreates the skill's bundled asset directory from src/, leaving out test files. With --check, it instead compares file lists and contents and reports differences. Neither script contains network calls.

Who it is for

The natural users are TypeScript and JavaScript teams that already use Oxlint, or are willing to adopt it, and want strict, evidence-oriented conventions around types. That means parsing external input at a boundary instead of narrowing with typeof, keeping inferred types instead of widening to unknown or broad dictionaries, and justifying every cast. The README and skill also speak to people who work with coding agents, since the supported install path is to ask an agent to run the bundled skill.

The optional Effect rules are for repositories that depend directly on the effect package. They push tagged-value handling toward Match, Predicate.isTagged, Schema or tagged-class constructors. They also discourage importing make-prefixed service constructors in runtime code.

It is a poor fit for people who want a drop-in, version-pinned npm dependency that receives upgrades automatically, or a neutral community standard. The README says the author's taste drives the rules. It also says community forks and packages are welcome but are maintained by their own authors.

What it can do

The generic rules, registered under the name anti-slop, are no-array-filter-map (adjacent eager filter and map passes over arrays known from local evidence), no-reduce-accumulator-copy (Object.assign, Array.from and array copy methods on a reducer accumulator), no-chained-type-assertions (nested as or angle-bracket assertions; chains made only of as const are allowed), no-conditional-empty-object-spread, no-known-value-widening, no-module-mocking (Vitest and Jest mock, doMock and unstable_mockModule), no-object-parameters, no-reflect-apply, no-reflect-get, no-runtime-typeof, no-shape-in-symbol-names, no-unknown-parameters, no-unknown-returns, no-unknown-type-aliases, no-unsafe-dictionary-type, no-widen-then-assert, require-readable-spacing and require-safety-comment-for-type-assertion.

The README also enables Oxlint's native oxc/no-accumulating-spread alongside the reducer rule, because the custom rule deliberately does not cover spreads. The Effect rules, registered as anti-slop-effect, are no-manual-effect-error-tag, no-manual-tag-comparison, no-manual-tagged-construction, no-service-constructor-imports and prefer-effect-match.

Two rules have options in the captured source. no-runtime-typeof accepts allowInTypeGuards (default false), which permits typeof inside type predicate and assertion functions. require-safety-comment-for-type-assertion accepts a markers list (default SAFETY).

require-readable-spacing is the only rule documented with an autofix. It inserts blank lines only and never removes them. A test asserts that no-conditional-empty-object-spread offers no fix, because omitting a property is not the same as assigning undefined. The test files for the other rules do not show autofixes, and the Effect service-import test expects output null.

The bundled skill can do a fresh install or a reconfiguration. It can also do a staged update: a three-way merge when the original upstream snapshot can be recovered, and a conservative port when it cannot.

Using it

What you need

You need a project that lints with Oxlint and uses its JavaScript plugin support, so that a TypeScript entry point can be registered under jsPlugins. The copied source imports @oxlint/plugins. The README and skill say to pin it to exactly the same version as oxlint so that upgrades move both together. The repository itself pins oxlint 1.78.0 and @oxlint/plugins 1.78.0, with TypeScript 7.0.2 and tsx 4.23.12 for development. The lockfile records a Node.js engines range of ^20.19.0 or >=22.12.0 for oxlint 1.78.0. The repository's CI uses Node 24 with pnpm.

To use the agent path you need Node with npx, a coding agent that the skills tool supports, and a repository where the agent may edit configuration and dependencies. The captured material does not say which agents are supported. The suggested ignore patterns do mention directories such as .claude, .cursor, .codex, .gemini, .opencode and .windsurf.

For the Effect rules, the skill requires either a direct effect dependency in a package manifest or an explicit user request; a transitive lockfile entry is not enough. Whether your Oxlint version loads a TypeScript plugin entry exactly as the README shows was not verified here.

How it works

Both plugins are built with eslintCompatPlugin from @oxlint/plugins. Most rules use defineRule and visit ESTree nodes, through createOnce in most cases and create for the Effect service-import rule. require-readable-spacing is different: it exports a CreateRule wrapper around the vendored ESLint Stylistic padding engine, which uses create. The rules rely on Oxlint's lexical scope and visitor-key APIs, and the repository's guidance says not to add another production parser.

Because there is no type checker, the rules reason from syntax. A shared helper builds a per-file table of type aliases, interfaces, classes and imports. It resolves same-file aliases, including block-scoped and generic aliases, to decide whether a type is unknown, object or an unsafe dictionary. The array rules recognise receivers only from array literals, array annotations, immutable const aliases and supported array-returning method chains.

The Reflect checks resolve the identifier by scope, so a locally declared Reflect is not flagged. The module-mocking rule treats vi and jest as test-framework objects in two cases: when they are unresolved globals, or when they are imported from vitest or @jest/globals, including renamed imports. It ignores locally defined vi or jest objects, parameters with those names, and same-named imports from other modules.

require-readable-spacing wraps the vendored padding engine with a policy table. It requires blank lines between top-level declarations, around multiline bindings, before return, if, switch, try and loops, and after block-like statements. It leaves consecutive imports, runs of single-line bindings and overload signatures grouped.

The Effect rules match fixed names: Effect.catch, catchAll and catchIf, and Match.when and Match.not. They do not resolve import aliases or confirm that an object really comes from Effect.

Setup and installation

Agent route: run 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. Per the skill, the agent first runs the bundled install script, which copies the plugin to tools/oxlint/anti-slop or another relative path. The agent then installs compatible oxlint and @oxlint/plugins versions, merges ignorePatterns, jsPlugins and rules into the existing Oxlint or Vite+ configuration, and runs lint and typecheck. The install script refuses to overwrite an existing destination unless --force is passed. The skill says to route existing copies through the update procedure instead of using --force.

Manual route: copy src/ into the target repository and install @oxlint/plugins at exactly the resolved oxlint version. Then register the entry point under jsPlugins in oxlint.config.ts and enable the rules listed in the README. The README also lists ignore patterns so that installed agent assets and the vendored plugin are not linted. For Vite+, the same patterns go into fmt.ignorePatterns as well.

Updates are a reviewed merge, not a replacement. The skill's update reference tells the agent to back up local state, stage incoming source separately, recover the original upstream snapshot if possible, classify each change, ask about conflicting policy and record provenance in UPSTREAM.md. It also says the install script only copies files and does not fetch or merge upstream changes. None of this was run for this review.

Example

Minimal configuration from the README: in oxlint.config.ts, call defineConfig with jsPlugins set to a list containing an entry with name anti-slop and specifier ./tools/oxlint/anti-slop/index.ts. Then set each rule to error, for example anti-slop/no-unknown-parameters, anti-slop/require-safety-comment-for-type-assertion and the native oxc/no-accumulating-spread.

What the rules reject, taken from the README and test files: function handle(input: unknown) is rejected by no-unknown-parameters; const user = input as object as User is rejected by no-chained-type-assertions; if (typeof input === "string") is rejected by no-runtime-typeof; vi.mock("./user-store") is rejected by no-module-mocking; and users.filter(user => user.active).map(user => user.email) is rejected by no-array-filter-map when the receiver is known to be an array.

What passes: a cast preceded by a comment such as // SAFETY: parseUserId validated the identifier before branding it, placed immediately above const userId = value as UserId; and, where the runtime supports iterator helpers, users.values().filter(...).map(...).toArray(). The README warns that iterator helpers are not guaranteed to be faster and that TypeScript declarations do not polyfill them.

These snippets are quoted from the documentation and tests and were not run.

Assessment & evidence

Limitations and risks

No type checker. The README states that the rules do not infer imported type definitions or cross-file call signatures. For example, no-array-filter-map does not flag unknown receivers such as imported factory results, unannotated parameters, type aliases or property-based array types. The reducer rule does not follow named callbacks, nested functions or indirect helpers. Expect missed cases, and expect behaviour that differs from type-aware linting.

Strong style opinions. no-shape-in-symbol-names flags identifiers, private names and JSX names whose lowercase form contains shape. In the tests this includes names such as shapeOf and PayloadShape, a shape property key in a type literal, and a local variable named shape used for computed access. The exception is a statically accessed member name such as schema.shape, which belongs to another value and cannot be renamed locally. no-runtime-typeof flags any typeof except comparisons with the string undefined, unless allowInTypeGuards is enabled. no-unknown-parameters exempts only a parameter named cause and the subject of a type predicate. Enabling all rules at error on a large existing codebase may produce many findings.

Vendoring burden. Because there is no package, you maintain your copy and must merge upstream fixes yourself. The skill's update procedure depends on recoverable provenance; without a recoverable base it falls back to a conservative port.

The Effect rules are syntactic. They match the identifiers Effect and Match literally, and no-service-constructor-imports looks only at relative imports. The README and skill list package-alias imports as a current limitation.

Test coverage of the spacing rule is focused rather than complete: the vendored notes say the full upstream ESLint Stylistic test suites were not ported. Nothing here was executed, so passing tests, CI results and runtime behaviour on your code are unverified.

Why this assessment

The assessment rests on reading the full captured repository: the README, skill instructions, install and sync scripts, every rule and shared helper, and the test files. The documentation matches the code where checked. The plugin index registers the same 18 generic rules the README enables, the Effect index registers the same 5 Effect rules, and the package.json test script lists a suite for each. The README's claims about deliberate limits, such as no autofix for conditional empty-object spreads, are backed by the tests.

The skill's safeguards are consistent with the install script. The script refuses to overwrite an existing destination unless --force is given, and the skill tells agents not to use --force on existing installs. The skill also tells agents not to suppress rules, weaken severity or add unsafe casts to make lint pass. Findings in application code are to be reported rather than fixed, unless cleanup was requested.

The README's statements about editing the vendored code are treated as design intent, not as evidence of how many users actually do so. Test counts and CI status were not measured. The CI workflow installs with a frozen lockfile and runs pnpm check on pushes to main and on pull requests.

Alternatives

The captured material does not compare anti-slop with other linting tools, so its suitability, coverage and performance relative to other options are unknown. The captured files document three related options. The first is Oxlint's native oxc/no-accumulating-spread rule, which the README recommends enabling alongside no-reduce-accumulator-copy to cover array and object spreads in reducers and supported loops. The second, for blank-line spacing, is the upstream ESLint Stylistic padding-line-between-statements rule from which require-readable-spacing's engine is vendored. Its source is [https://github.com/eslint-stylistic/eslint-stylistic] at commit 435c3ea0fd26a5fef9042c4b36b6e165fbbf8d08; whether that upstream rule can be used directly in an Oxlint setup is not established by the evidence. The third is customising the vendored rules themselves, covered in the next paragraph.

If you like some rules but not the overall policy, the README's own advice is to read the code and change your vendored copy to match your team's standards, which can include removing rules you do not want. The README also says community forks and packages are welcome, but their compatibility and release lifecycle belong to their maintainers. No specific fork is named in the captured files.

Evidence reviewed

The review covers the complete selected repository at revision 13909c9e07590f5a85d93c62712259fe14a883f7. That includes the README, LICENSE, AGENTS.md, package.json, pnpm-lock.yaml, tsconfig.json, .oxlintrc.json, .gitignore and the CI workflow; the sync script and the install-anti-slop skill (SKILL.md, install.mjs, the update reference and the generated asset copy); all rule sources under src/rules and src/effect/rules, with their shared helpers; the RuleTester suites; and the vendored ESLint Stylistic files, with their LICENSE and UPSTREAM.md.

The skill assets under skills/install-anti-slop/assets mirror src/ with test files left out, and the sync script's check mode enforces that the two match. In the captured text the paired files match, for example src/index.ts and the skill's assets index.ts. The src versions were therefore treated as canonical, and the asset copies were checked for consistency.

Evidence not available: release notes, the issue tracker, commit history, third-party reviews, usage statistics, actual test or CI run output, and benchmark data.

Access & freshness

Costs

No price, subscription, hosted service or usage fee appears in the captured material. The project is MIT-licensed source that you copy into your own repository, so the plugin itself is free to use under that licence.

The evidence does not establish the time to review and adapt the rules, the cleanup effort on an existing codebase, any lint-time overhead from the custom JavaScript rules (the captured material gives no performance figures), or the cost of the coding agent or model used to run the install skill, so these costs remain unknown.

The licences of Oxlint, @oxlint/plugins and the other development dependencies were not assessed; the lockfile does not state them.

Licence and rights

The project's own licence is the MIT licence in the repository's root LICENSE file, with the notice Copyright (c) 2026 Dillon Mulroy, and package.json also declares license MIT. MIT permits use, copying, modification, merging, publication, distribution, sublicensing and sale. The condition is that the copyright notice and permission notice are included in all copies or substantial portions. The software is provided as is, without warranty.

Part of the code is third-party: the engine behind the spacing rule is adapted from ESLint Stylistic's padding-line-between-statements rule, also MIT, with notices for OpenJS Foundation and other contributors and for ESLint Stylistic contributors. That third-party licence is at src/vendor/eslint-stylistic/LICENSE. In the skill's bundled copy it is at skills/install-anti-slop/assets/anti-slop/vendor/eslint-stylistic/LICENSE. The vendored UPSTREAM.md is present in both locations. It records upstream commit 435c3ea0fd26a5fef9042c4b36b6e165fbbf8d08 and the local adaptations, and says to keep that LICENSE with every redistributed copy, including skill assets.

The project's root LICENSE is not inside src/ and is not part of the skill's asset directory. Copying src/ by hand or running the skill's install.mjs therefore brings only the third-party ESLint Stylistic LICENSE and UPSTREAM.md with the plugin, not the project's own MIT notice. If you vendor the plugin, copy the project's root LICENSE separately and keep it alongside the copied vendor/eslint-stylistic LICENSE and UPSTREAM.md. Rights in the dependencies listed in the lockfile were not assessed.

Freshness and maintenance

This review reflects the repository snapshot captured on 2026-11-13 at revision 13909c9e07590f5a85d93c62712259fe14a883f7, where package.json reports version 0.1.2. The captured files contain no dated history such as commit dates, release notes or issue activity. How recently the project was developed and how often it is maintained are therefore unknown.

Dependencies are pinned exactly: oxlint 1.78.0, @oxlint/plugins 1.78.0, TypeScript 7.0.2, tsx 4.23.12 and @types/node 26.2.0. There is a pnpm lockfile (lockfileVersion 9.0), and packageManager is pnpm 10.33.0. The CI workflow runs on Node 24. The plugin depends on Oxlint's JavaScript plugin API, and the evidence does not establish compatibility with later Oxlint releases. The project says upgrades should move oxlint and @oxlint/plugins together.

Check the repository for newer commits before adopting it, and expect to run the skill's update procedure again whenever you want upstream fixes.

What to do next

Before adopting: read the rule list in the README and decide which rules match your team's conventions. Try the plugin on a branch, enabling rules one at a time or all at error, and look at how many findings you get. The skill tells agents to report findings in application code rather than fix them unless you request cleanup, which helps keep the install separate from a cleanup pass.

If you adopt it, install through the agent skill or the manual steps and keep @oxlint/plugins pinned to exactly your oxlint version. Copy the project's root LICENSE alongside your vendored copy, because copying src/ or running the install script does not include it, and keep the vendor/eslint-stylistic LICENSE and UPSTREAM.md with the copied files. Record the source revision in UPSTREAM.md so that later updates can use a three-way merge. Run your own lint, typecheck and tests, since none were run for this review.

If you skip it: its ideas, such as requiring safety comments on assertions, banning unknown on inputs and avoiding accumulator copies in reducers, can still be kept as written team conventions. The captured material does not establish whether other linters offer equivalent checks.

Evidence for this report

.github/workflows/ci.ymlselected · checked 2026-11-13
.gitignoreselected · checked 2026-11-13
.oxlintrc.jsonselected · checked 2026-11-13
AGENTS.mdselected · checked 2026-11-13
LICENSEnotice · checked 2026-11-13
README.mdselected · checked 2026-11-13
package.jsonselected · checked 2026-11-13
pnpm-lock.yamlselected · checked 2026-11-13
scripts/sync-skill-assets.mjsselected · checked 2026-11-13
skills/install-anti-slop/SKILL.mdselected · checked 2026-11-13
skills/install-anti-slop/references/update.mdselected · checked 2026-11-13
skills/install-anti-slop/scripts/install.mjsselected · checked 2026-11-13
src/effect/index.tsselected · checked 2026-11-13
src/effect/rules/no-manual-tag-comparison.tsselected · checked 2026-11-13
src/effect/rules/prefer-effect-match.test.tsselected · checked 2026-11-13
src/effect/rules/prefer-effect-match.tsselected · checked 2026-11-13
src/effect/shared/tagged-values.tsselected · checked 2026-11-13
src/index.tsselected · checked 2026-11-13
src/rules/no-array-filter-map.test.tsselected · checked 2026-11-13
src/rules/no-array-filter-map.tsselected · checked 2026-11-13
src/rules/no-chained-type-assertions.test.tsselected · checked 2026-11-13
src/rules/no-chained-type-assertions.tsselected · checked 2026-11-13
src/rules/no-known-value-widening.test.tsselected · checked 2026-11-13
src/rules/no-known-value-widening.tsselected · checked 2026-11-13
src/rules/no-module-mocking.test.tsselected · checked 2026-11-13
src/rules/no-module-mocking.tsselected · checked 2026-11-13
src/rules/no-object-parameters.test.tsselected · checked 2026-11-13
src/rules/no-object-parameters.tsselected · checked 2026-11-13
src/rules/no-reduce-accumulator-copy.test.tsselected · checked 2026-11-13
src/rules/no-reduce-accumulator-copy.tsselected · checked 2026-11-13
src/rules/no-reflect-apply.test.tsselected · checked 2026-11-13
src/rules/no-reflect-apply.tsselected · checked 2026-11-13
src/rules/no-reflect-get.test.tsselected · checked 2026-11-13
src/rules/no-reflect-get.tsselected · checked 2026-11-13
src/rules/no-runtime-typeof.test.tsselected · checked 2026-11-13
src/rules/no-runtime-typeof.tsselected · checked 2026-11-13
src/rules/no-shape-in-symbol-names.test.tsselected · checked 2026-11-13
src/rules/no-shape-in-symbol-names.tsselected · checked 2026-11-13
src/rules/no-unknown-parameters.test.tsselected · checked 2026-11-13
src/rules/no-unknown-parameters.tsselected · checked 2026-11-13
src/rules/no-unknown-returns.test.tsselected · checked 2026-11-13
src/rules/no-unknown-returns.tsselected · checked 2026-11-13
src/rules/no-unknown-type-aliases.test.tsselected · checked 2026-11-13
src/rules/no-unknown-type-aliases.tsselected · checked 2026-11-13
src/rules/no-unsafe-dictionary-type.test.tsselected · checked 2026-11-13
src/rules/no-unsafe-dictionary-type.tsselected · checked 2026-11-13
src/rules/no-widen-then-assert.test.tsselected · checked 2026-11-13
src/rules/no-widen-then-assert.tsselected · checked 2026-11-13
src/rules/require-readable-spacing.test.tsselected · checked 2026-11-13
src/rules/require-readable-spacing.tsselected · checked 2026-11-13
src/shared/array-method.tsselected · checked 2026-11-13
src/shared/dictionary-types.tsselected · checked 2026-11-13
src/shared/function-parameters.tsselected · checked 2026-11-13
src/shared/lexical-type-parameters.tsselected · checked 2026-11-13
src/shared/reflect-method.tsselected · checked 2026-11-13
src/shared/scope.tsselected · checked 2026-11-13
src/shared/type-alias-resolution.tsselected · checked 2026-11-13
src/vendor/eslint-stylistic/LICENSEnotice · checked 2026-11-13
src/vendor/eslint-stylistic/UPSTREAM.mdselected · checked 2026-11-13
tsconfig.jsonselected · checked 2026-11-13