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

@wellmade/eslint-config

v0.3.0

Published

Wellmade's shared ESLint flat-config — bug-prevention biased, AI-coding-aware, with opt-in framework layers.

Downloads

488

Readme

@wellmade/eslint-config

ESLint flat-config for Wellmade customer projects. Bug-prevention biased, type-aware by default, with explicit guardrails against the most common AI-coding mistakes.

Upgrading from 0.1.x? Rule prefixes changed in 0.2.0 (import/*import-x/*, eslint-comments/*@eslint-community/eslint-comments/*). Existing eslint-disable-next-line import/... comments silently became no-ops. See MIGRATION.md for the sed one-liner.

Install

npm install --save-dev eslint typescript @wellmade/eslint-config

Quickstart

// eslint.config.js — TypeScript + Node + Vitest
import {
  basePreset,
  nodePreset,
  vitestPreset,
  ignoreBuildDir,
} from "@wellmade/eslint-config";

export default [
  ignoreBuildDir,
  ...basePreset(import.meta.dirname),
  nodePreset,
  vitestPreset,
];
// eslint.config.js — TypeScript + React + Vite + Vitest
import {
  basePreset,
  browserPreset,
  reactPreset,
  vitePreset,
  vitestPreset,
} from "@wellmade/eslint-config";

export default [
  ...basePreset(import.meta.dirname),
  browserPreset,
  reactPreset,
  ...vitePreset,
  vitestPreset,
];
// eslint.config.js — NestJS API
import {
  basePreset,
  nodePreset,
  jestPreset,
  nestjsPreset,
  nestjsAllowDefaultExports,
} from "@wellmade/eslint-config";

export default [
  ...basePreset(import.meta.dirname),
  nodePreset,
  jestPreset,
  nestjsPreset,
  nestjsAllowDefaultExports,
];
// eslint.config.js — Astro site
import {
  basePreset,
  browserPreset,
  reactPreset,
  astroPreset,
} from "@wellmade/eslint-config";

export default [
  ...basePreset(import.meta.dirname),
  browserPreset,
  reactPreset,
  ...(await astroPreset()),
];

What basePreset includes

| Block | Purpose | | ---------------------- | -------------------------------------------------------------------------------- | | javascriptPreset | @eslint/js recommended + bug-prevention rules + curated unicorn set | | commonJsOverride | Marks .cjs/.cts as script-source | | importsPreset | simple-import-sort + import integrity (no cycles, no duplicates, no default) | | jsdocPreset | When JSDoc is present, enforce correctness | | aiRailguardsJsPreset | AI-coding guardrails — see below | | typescriptPreset | Type-aware TS rules (naming, type imports, switch exhaustiveness, …) | | aiRailguardsTsPreset | Type-aware AI guardrails (any, ??, deprecated APIs, redundant casts) | | HTML / SVG blocks | @html-eslint/* for static files | | allowDefaultExports | Carve-out for config files, framework routes, stories |

AI-coding railguards (in detail)

The two aiRailguards* presets catch patterns AI assistants reliably produce:

  • Debug breadcrumbsconsole.log, debugger, alert are errors. Other console.* methods pass.
  • !TODO/!FIXME/!HACK markersTODO is allowed; the bang-prefixed forms block CI. Use them as "stop the line."
  • any discipline@typescript-eslint/no-explicit-any error; the no-unsafe-* family wired up so values typed as any can't propagate.
  • ?? over || — for nullish defaults, || swallows valid empty/zero values. AI defaults to ||; we flip it.
  • Defensive if (foo) on non-nullable valuesno-unnecessary-condition errors when TypeScript already proved the value is present.
  • Deprecated APIsno-deprecated warns when AI calls something marked /** @deprecated */.
  • Redundant as castsno-unnecessary-type-assertion removes the cargo-cult as Foo after type guards.
  • Math.random() — flagged as a flakiness source. Override per-file if you actually need it.
  • || on process.env.X — empty-string env vars are valid; force ??.
  • setTimeout(fn, 0) — banned (use queueMicrotask or document the reason).
  • Mega-functionscomplexity, max-lines-per-function, max-depth, max-nested-callbacks, max-params as warnings so they surface without blocking.

Every eslint-disable requires a description (eslint-comments/require-description), so disabling a railguard always carries an explicit reason.

Layered presets

| Preset | Notes | | --------------------------- | --------------------------------------------------------------------- | | browserPreset | globals.browser | | nodePreset | globals.node + curated eslint-plugin-n rules | | reactPreset | React + Hooks + a11y + React Compiler (on by default) | | jestPreset | Jest rules, scoped to *.test.* / *.spec.* / __tests__/** | | vitestPreset | Vitest rules. Same scope as jestPreset — pick one. | | vitePreset | Default-exports allowed in vite.config.*, vite-env.d.ts tolerated | | astroPreset() | Async loader. Needs eslint-plugin-astro + astro-eslint-parser | | nestjsPreset | Unmutes class/decorator patterns that the base preset bans for Nest | | nestjsAllowDefaultExports | Allows default export in Nest module/controller/service/etc. files | | graphqlPreset({ schema }) | Async loader. Needs @graphql-eslint/eslint-plugin |

Ignores

import {
  ignoreBuildDir,
  ignorePublicDir,
  ignoreCssTypeDefs,
} from "@wellmade/eslint-config";

Required environment

  • ESLint 9 (flat config only)
  • TypeScript 5.7+
  • Node 20.18+

There is no legacy .eslintrc fallback.