npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ai-deslop

v0.7.1

Published

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

Readme

ai-deslop

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

Combines vendored anti-slop rules with additional rules under the deslop/* namespace. See Credits for attribution.

Install

npm install --save-dev ai-deslop
# @oxlint/plugins comes along as a runtime dependency — keep it in sync with your oxlint version

Ships compiled JavaScript — works with any oxlint JS-plugin runtime (Bun, Deno, or Node.js).

Usage

import { defineConfig } from "oxlint";
import { configs as deslopConfigs } from "ai-deslop";

export default defineConfig({
  jsPlugins: ["ai-deslop"],
  options: deslopConfigs.recommended.options,
  rules: deslopConfigs.recommended.rules
});

Rules

All rules below are enabled by the recommended config unless listed as opt-in.

Type safety and evidence

| Rule | Description | | --- | --- | | no-chained-type-assertions | Rejects nested as / angle-bracket assertions that fabricate evidence. | | no-conditional-empty-object-spread | Reports object spreads using a conditional {} branch to omit fields. | | no-known-value-widening | Rejects known expressions flowing into explicit unknown, object, or open dictionaries. | | no-object-parameters | Rejects object on function inputs. | | no-runtime-typeof | Requires boundary parsing instead of ad hoc typeof narrowing. | | no-unknown-parameters | Rejects unknown on function inputs. | | no-unknown-returns | Rejects return contracts resolving to unknown. | | no-unknown-type-aliases | Rejects aliases whose resolved type is unknown. | | no-unsafe-dictionary-type | Rejects dictionary values based on unsafe escape hatches. | | no-widen-then-assert | Rejects widening known evidence before narrowing assertions. | | require-safety-comment-for-type-assertion | Requires an invariant justification for non-const assertions. | | no-pass-through-type-alias | Disallows aliases that only rename another type. | | prefer-literal-union | Reports variables typed string in the same file that are only compared to two or more string literals. No fixer. |

Code quality and APIs

| Rule | Description | | --- | --- | | no-array-filter-map | Rejects adjacent eager array filter/map passes; allows lazy iterator pipelines. | | no-reduce-accumulator-copy | Rejects non-spread accumulator copies inside reducers. Enable native oxc/no-accumulating-spread alongside it. | | no-reflect-apply | Rejects global Reflect.apply. | | no-reflect-get | Rejects global Reflect.get. | | no-shape-in-symbol-names | Rejects shape in locally owned symbol names. |

Tests

| Rule | Description | | --- | --- | | no-call-only-assertions | Flags tests whose assertions only check mock calls. | | no-module-mocking | Rejects Vitest and Jest module mocks. | | no-poor-substring-tests | Rejects testing that a constant string contains substrings. | | no-repeated-expect-call | Flags adjacent assertions that repeat the same call in test files. Reuse the result instead. No fixer. |

Opt-in rules

| Rule | Description | | --- | --- | | max-boolean-conditions | Limits top-level terms in if and loop conditions. Supports a custom limit and message. No fixer. | | no-duplicate-consts | Reports all-caps constants with the same static value in different files. | | no-duplicate-types | Reports exact duplicate object contracts. No fixer. | | no-pass-through-schema | Reports const aliases that only rename known schemas. Supports Zod, ArkType, and configured imports. No fixer. | | no-renamed-imports | Fixes unnecessary named-import aliases when the original name has no module-level conflict. | | no-reexports-outside-entrypoints | Keeps re-exports in configured entrypoint files. No fixer. | | canonical-class-names | Fixes non-canonical Tailwind CSS v4 class spellings. |

Standard rules enabled by the recommended config

| Standard rule | Description | | --- | --- | | typescript/no-deprecated | Disallows using code marked @deprecated. Requires type-aware linting. | | typescript/no-require-imports | Disallows CommonJS require() imports. | | typescript/no-floating-promises | Disallows floating promises. Requires type-aware linting. | | typescript/no-unnecessary-condition | Disallows always truthy/falsy/nullish conditions. Requires type-aware linting. | | no-unreachable | Disallows unreachable code. |

Credits

  • Generic rules vendored verbatim from dmmulroy/anti-slop (MIT, © Dillon Mulroy) in src/vendor/anti-slop/, including shared helpers.

License

MIT