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

@ebalzan/config

v0.2.1

Published

Shared Prettier, ESLint and TypeScript rules. Each repo extends them and adds only what is its own.

Readme

@ebalzan/config

The Prettier, ESLint and TypeScript rules shared by my repos. Every repo extends them and adds only what is its own. Nothing here is copied into a repo: change a rule here, release, and each repo picks it up through its Renovate PR.

npm install --save-dev --save-exact @ebalzan/config eslint prettier typescript

eslint, prettier and typescript are peer dependencies, so each repo pins its own versions. The ESLint plugins are this package's own dependencies, so a repo does not list them.

| Entry point | What it is | | ------------------------------------ | ---------------------------------------------------------------- | | @ebalzan/config/prettier | the Prettier options | | @ebalzan/config/eslint/base | JS + typescript-eslint recommended, Prettier-compatible, ignores | | @ebalzan/config/eslint/node | base + Node.js globals | | @ebalzan/config/eslint/markdown | opt-in: recommended Markdown rules under GFM | | @ebalzan/config/tsconfig/base.json | strict compiler options, no target or module | | @ebalzan/config/tsconfig/node.json | base.json + ES2022 / NodeNext / @types/node | | ebalzan-config verify (bin) | checks a repo extends all of the above instead of copying it |

Prettier

No overrides: point at it from package.json and delete .prettierrc*.

{ "prettier": "@ebalzan/config/prettier" }

With overrides, prettier.config.mjs:

import base from '@ebalzan/config/prettier'

export default { ...base, printWidth: 120 }

ESLint

Flat config is an array: spread a preset, then add the repo's own blocks. A later block wins for the files it matches.

// eslint.config.js (or .ts)
import markdown from '@ebalzan/config/eslint/markdown'
import node from '@ebalzan/config/eslint/node'

export default [
  ...node,
  ...markdown,
  { ignores: ['generated/'] },
  { files: ['src/**/*.ts'], rules: { 'no-console': 'error' } },
]

TypeScript

{
  "extends": "@ebalzan/config/tsconfig/node.json",
  "compilerOptions": { "outDir": "dist", "rootDir": "src", "paths": { "@/*": ["./src/*"] } },
  "include": ["src/**/*.ts"]
}

Keep outDir, rootDir, paths, include and exclude in the repo: TypeScript resolves them relative to the file that declares them, so in the shared file they would point inside node_modules.

Commit messages

Not here: the commit and PR-title rule belongs to the pipeline that enforces it, @ebalzan/ci — the PR title becomes the squash commit that decides the release bump, so the rule lives next to the bump logic. A repo's .husky/commit-msg runs ebalzan-ci commit-msg "$1" from that package (ebalzan-ci onboard writes it).

| Package | Owns | | ----------------- | -------------------------------------------------------------------------- | | @ebalzan/config | how code is written: Prettier, ESLint, TypeScript | | @ebalzan/ci | how code is shipped: commit/PR-title rule, workflows, releases, repo rules |

Checking that a repo extends everything

npx --no-install ebalzan-config verify

It fails when the package is not a dependency, a static .prettierrc* or a legacy .eslintrc* holds its own copy of the rules, eslint.config.* imports no preset, or a tsconfig*.json does not reach @ebalzan/config/tsconfig/* through its extends chain. A repo with no tsconfig*.json skips the TypeScript check. Run it in each repo's PR checks.

Releasing

npm version minor   # or patch / major
git push --follow-tags

The tag runs .github/workflows/publish.yml. A rule change that can make a repo's lint fail is a major.