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

@2digits/oxlint-plugin

v0.0.6

Published

Custom Oxlint rules for 2digits projects.

Readme

@2digits/oxlint-plugin

Custom Oxlint JavaScript plugin rules used by @2digits/oxlint-config.

The recommended set is enabled by default by @2digits/oxlint-config. The opt-in prefer-effect-filesystem and prefer-effect-path rules are excluded because the configured @effect/tsgo/nodeBuiltinImport diagnostic already enforces those imports more broadly. To register the plugin directly:

import { defineConfig } from 'oxlint';

import { recommendedRules } from '@2digits/oxlint-plugin';

export default defineConfig({
  jsPlugins: [{ name: '2digits', specifier: import.meta.resolve('@2digits/oxlint-plugin') }],
  rules: recommendedRules,
});

Rules

The package exports all rules as rules, their names as RuleName, and the default error-level configuration as recommendedRules.

  • Copied and adapted Effect practices: avoid-data-tagged-error, ban-error-string, effect-promise-vs-trypromise, no-logging-in-catch, and throw-in-effect-gen.
  • Syntax-safe Effect diagnostics proposed in open Effect-TS/tsgo issues: the remaining cors-*, dual-*, no-*, prefer-*, preserve-*, and require-* Effect rules.
  • Effect v4 API guidance for Array, DateTime, Duration, Encoding, FileSystem, Filter, Headers, Match, Path, and Url, plus interruptible Effect.tryPromise thunks.
  • Effect and Alchemy import policy: namespace imports from PascalCase submodule entrypoints, canonical Effect aliases, and no root-barrel module imports. @effect/vitest and lowercase unstable barrels are intentionally exempt.
  • Alchemy v2 practices: every alchemy-* rule.

See each rule's meta.docs.url for its upstream rule, issue, or framework documentation. Copied-code attribution is in NOTICE.

Automatic fixes

Run vp lint --fix to apply fixes from prefer-effect-duration, no-empty-effect-callback, no-effect-alchemy-barrel-imports, prefer-effect-alchemy-namespace-imports, alchemy-no-v1-worker-properties, and alchemy-no-deprecated-docker-constraints. Fixes skip ambiguous bindings, conflicting properties, and unsupported import references.

Adding a rule

Oxlint's JavaScript plugin API is currently alpha and does not expose type information. Keep rules syntax-safe and leave semantic Effect checks to @effect/tsgo / @effect/language-service.

Oxfmt formats imports but does not enforce package-specific import architecture. The Effect language service's namespaceImportPackages and importAliases settings guide generated auto-imports only, so the plugin enforces the same policy for handwritten imports.

  1. Add one rule file under src/rules/alchemy or src/rules/effect with defineRule through defineSyntaxRule or defineEffectRule.
  2. Register it in src/rules/index.ts. src/index.ts automatically includes it in recommendedRules.
  3. Add a matching test file under test/rules with valid and invalid RuleTester cases.
  4. Run vp test, vp check, and vp run build.

defineEffectRule resolves namespace and named imports from effect, @effect/*, and alchemy/* entrypoints, so rules should match canonical API paths instead of hard-coding local import names.