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

@jperezmart/eslint-config

v1.0.0

Published

Shared ESLint flat configs: a Node/TypeScript base and a React variant

Readme

@jperezmart/eslint-config

Shared ESLint flat configs: a Node/TypeScript base and a React variant.

pnpm add -D @jperezmart/eslint-config eslint typescript

eslint and typescript are peer dependencies — you already have them. Every plugin the config registers is a real dependency of this package, so there is nothing else to install.

Use

// eslint.config.mjs
import base from '@jperezmart/eslint-config/base';

export default base;
// or, for a React package
import react from '@jperezmart/eslint-config/react';

export default react;

Both are plain flat-config arrays, so extend them by spreading:

import base from '@jperezmart/eslint-config/base';

export default [...base, { rules: { 'no-console': 'off' } }];

Subpaths

| Subpath | What it adds | | -------- | ---------------------------------------------------------------------------------------- | | /base | @eslint/js + typescript-eslint recommended, type-aware, import sorting, Prettier off | | /react | everything in /base, plus react-hooks rules and browser globals |

There is no /prettier subpath. It moved to @jperezmart/prettier-config, with no compatibility alias.

tsconfigRootDir

The base enables typescript-eslint's project service and defaults tsconfigRootDir to process.cwd() — the directory you run ESLint from. Override it only if that is not where your tsconfig.json lives:

export default [
  ...base,
  {
    languageOptions: {
      parserOptions: { tsconfigRootDir: import.meta.dirname },
    },
  },
];

Note this is a change from the copy that used to be vendored inside nest-casl and nest-mongodb, which defaulted to import.meta.dirname. In a published package that resolves to somewhere inside your node_modules, which is never what you want.

Turning off type-aware linting

The base is type-aware, which needs a TypeScript program. For plain JavaScript files, or a repo with no tsconfig.json:

export default [
  ...base,
  {
    languageOptions: { parserOptions: { projectService: false } },
    rules: { '@typescript-eslint/no-unnecessary-condition': 'off' },
  },
];

This repo does exactly that in its own eslint.config.mjs.

Two plugins the vendored copy had, and this package does not

Both were dropped on evidence, and both are one line to restore if you disagree.

eslint-plugin-turbo was registered and never used — no turbo/* rule was ever switched on. It cost every consuming repo a dependency and bought nothing. Enabling turbo/no-undeclared-env-vars was the alternative and was rejected: turning a rule on in a config five repos are adopting is a behaviour change, whereas dropping an inert plugin is not.

eslint-plugin-import was carried for one rule, import/no-extraneous-dependencies. Three findings retired it:

  1. [email protected] caps its peer range at ESLint 9 and is broken on 10 — context.parserOptions no longer exists, so its rules read undefined. no-default-export throws; no-extraneous-dependencies just stops reporting, with no warning of any kind.
  2. eslint-plugin-import-x, the maintained fork, does support ESLint 10 — but it pulls unrs-resolver, a native dependency with an install script that every consuming repo would have to approve.
  3. Neither matters: the rule cannot fire in a pnpm workspace anyway. Under pnpm's strict node_modules an undeclared import is unresolvable by construction, and the rule skips what it cannot resolve.

The smoke tests in this repo guard both classes: one asserts every rule the config enables actually loads under the installed ESLint, the other that every plugin registered has at least one rule using it.