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

@ashtrath/oxlint-plugin-slop

v0.1.0

Published

Oxlint rules that flag low-value code and prose patterns.

Readme

@ashtrath/oxlint-plugin-slop

License: MIT npm version Powered by OXC

Oxlint plugin providing AST heuristic rules that flag low-signal code patterns, narrative prose filler, and unidiomatic TypeScript constructs.

Overview

Modern code generators often introduce verbose prose, empty abstraction layers, and repetitive type assertions. This plugin runs native in-memory AST checks via @oxlint/plugins to enforce conciseness in comments and code structure without subprocess latency.

Installation

# Bun
bun add -D @ashtrath/oxlint-plugin-slop oxlint

# pnpm
pnpm add -D @ashtrath/oxlint-plugin-slop oxlint

# npm
npm i -D @ashtrath/oxlint-plugin-slop oxlint

Usage

With @ashtrath/oxc-config

Enable the antislop preset in oxlint.config.ts:

import ashtrathLint from '@ashtrath/oxc-config/lint'

export default ashtrathLint({
  antislop: true,
})

Standalone with oxlint

Register the plugin directly in oxlint.config.ts:

import slop from '@ashtrath/oxlint-plugin-slop'
import { defineConfig } from 'oxlint'

export default defineConfig({
  jsPlugins: [slop],
  rules: {
    'slop/no-em-dash': 'error',
    'slop/no-jargon': 'warn',
    'slop/no-trivial-functions': 'error',
    'slop/no-trivial-type-aliases': 'error',
    'slop/no-array-filter-map': 'error',
    'slop/no-reduce-accumulator-copy': 'error',
    'slop/no-conditional-empty-object-spread': 'error',
    'slop/no-chained-type-assertions': 'error',
    'slop/require-safety-comment-for-type-assertion': 'error',
  },
})

Rules

Prose rules

Rules targeting narrative comments, marketing jargon, and typographic tells in comments and string literals.

| Rule | Description | | -------------------- | ------------------------------------------------------------------------------------------------------------- | | no-em-dash | Prohibits em dashes (—) in code comments, string literals, and JSX text. Prefer periods or commas. | | no-jargon | Flags common corporate and AI buzzwords in code comments (such as "delve", "leverage", "utilize", "crucial"). | | max-comment-length | Restricts comment lines to 100 characters to prevent multi-paragraph essays in source files. | | prefer-jsdoc | Requires JSDoc format (/** ... */) for multi-line block comments instead of plain narrative comments. |

Structural rules

Rules targeting unidiomatic AST syntax shapes, redundant abstractions, and unsafe type expressions.

| Rule | Description | | ------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | no-trivial-functions | Forbids wrapper functions that only forward parameters to another function without transformation. | | no-trivial-type-aliases | Forbids type aliases that simply rename primitive types without adding union or branded constraints. | | no-array-filter-map | Replaces sequential .filter().map() chains with single-pass .flatMap() or .reduce(). | | no-reduce-accumulator-copy | Prohibits copying accumulators with object or array spreads inside .reduce(). Mutate the accumulator directly. | | no-conditional-empty-object-spread | Flags patterns like ...(condition ? { key } : {}). Add properties directly or conditionally. | | no-chained-type-assertions | Prohibits chained type assertions such as x as unknown as T. | | require-safety-comment-for-type-assertion | Requires a preceding structured comment explaining the invariant before any as T type assertion. | | no-shape-in-symbol-names | Disallows encoding data structures in identifiers (such as userListArray or optionsObject). | | no-static-only-class | Disallows classes that contain only static methods and properties. Use module-level functions instead. |

Acknowledgements

This package implements these concepts as native Oxlint rules using @oxlint/plugins.

License

MIT