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

oxlint-rules

v0.4.3

Published

Reusable Oxlint rules for TypeScript projects.

Readme

Oxlint Rules

npm version npm downloads license

A collection of custom Oxlint rules and presets for TypeScript projects.

Install

npm install --save-dev oxlint@^1.78.0 oxlint-rules

Setup

Create oxlint.config.ts:

import { defineConfig } from "oxlint";
import antislop from "oxlint-rules/config";
import blankLines from "oxlint-rules/config/blank-lines";

export default defineConfig({
  extends: [antislop, blankLines],
});

For Effect projects, import oxlint-rules/config/effect instead of oxlint-rules/config.

Run Oxlint:

npx oxlint .
npx oxlint --fix .

Presets

| Preset | Import | Behavior | | --------------- | --------------------------------- | ------------------------------------------------------------------ | | General | oxlint-rules/config | 16 general type-safety rules as errors. | | Effect | oxlint-rules/config/effect | General rules plus Effect service-constructor check as errors. | | Blank lines | oxlint-rules/config/blank-lines | 11 vertical spacing rules as warnings (autofixable). |

Customization

Override severity or pass options in rules:

export default defineConfig({
  extends: [antislop, blankLines],
  rules: {
    "antislop/no-module-mocking": "off",
    "antislop/no-runtime-typeof": ["error", { allowInTypeGuards: true }],
    "blank-lines/switch-case-spacing": ["warn", { longCase: "always", shortCase: "any" }],
  },
});

Rules

Antislop

| Rule | Description | Autofix | | -------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | ------- | | antislop/no-chained-type-assertions | Reject nested assertions that discard type evidence. | No | | antislop/no-conditional-empty-object-spread | Reject conditional spreads that use {} to omit fields. | No | | antislop/no-known-value-widening | Reject broad annotations that discard a known value's type information. | No | | antislop/no-module-mocking | Reject Vitest and Jest module mocks. | No | | antislop/no-never-assertions | Reject assertions to never. | No | | antislop/no-object-parameters | Reject the broad object type on function inputs. | No | | antislop/no-reflect-apply | Reject Reflect.apply in favor of typed calls. | No | | antislop/no-reflect-get | Reject Reflect.get in favor of typed access or boundary parsing. | No | | antislop/no-runtime-typeof | Restrict runtime typeof checks, with configurable exceptions. | No | | antislop/no-shape-in-symbol-names | Reject shape in symbol names. | No | | antislop/no-unknown-parameters | Restrict unknown inputs to cause parameters and recognized parser boundaries. | No | | antislop/no-unknown-returns | Reject return contracts containing unknown or Promise<unknown>. | No | | antislop/no-unknown-type-aliases | Reject type aliases that conceal unknown. | No | | antislop/no-unsafe-dictionary-type | Reject dictionaries with unsafe, broadly typed values. | No | | antislop/no-widen-then-assert | Reject widening a value to a broad type and later asserting it back. | No | | antislop/require-safety-comment-for-type-assertion | Require a SAFETY: explanation for non-const assertions. | No | | antislop-effect/no-service-constructor-imports | Reject relative make<Capability> constructor imports outside test files. | No |

Blank lines

| Rule | Description | Autofix | | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | ------- | | blank-lines/blank-line-after-block | Separate block-like statements from following work, with grouping exceptions. | Yes | | blank-lines/blank-line-before-exit | Separate exits in larger bodies while keeping small operation-and-exit bodies compact. | Yes | | blank-lines/block-boundary-spacing | Control blank padding inside braces. | Yes | | blank-lines/comment-group-spacing | Control spacing around standalone comments. | Yes | | blank-lines/control-flow-cuddling | Keep related setup and control flow together; separate unrelated statements. | Yes | | blank-lines/declaration-group-spacing | Group declarations and their immediate uses. | Yes | | blank-lines/expression-group-spacing | Group calls, assignments, awaits, and other expression statements. | Yes | | blank-lines/lines-between-class-members | Control spacing between fields, methods, accessors, and static blocks. | Yes | | blank-lines/lines-between-type-members | Control spacing between interface, type-literal, and enum members. | Yes | | blank-lines/max-consecutive-blank-lines | Limit repeated blank lines, including at file boundaries. | Yes | | blank-lines/padding-line-between-statements | Configure spacing with ordered statement-pair rules; enable manually. | Yes | | blank-lines/switch-case-spacing | Keep switch cases compact by default, with options to separate them. | Yes |

License

MIT