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

@mdor/eslint-node-config

v0.0.1

Published

Shared ESLint flat configuration with Node.js best practices for MDOR projects

Readme

@mdor/eslint-node-config

Shared ESLint flat configuration for Node.js projects. It composes @mdor/eslint-config with the maintained eslint-plugin-n recommended rules for ES modules and CommonJS.

Requirements

  • Node.js 22.13 or newer
  • npm 10 or newer
  • ESLint 10.8 or newer within the 10.x release line (^10.8.0)
  • ESM ESLint configuration

Install

npm install --save-dev @mdor/eslint-node-config

Consumers do not install @mdor/eslint-config or eslint-plugin-n separately; they are runtime dependencies of this package. ESLint remains a peer dependency because the consuming project owns and runs the linter. npm 7 and newer installs a compatible ESLint peer automatically when needed. Package managers configured not to install peers automatically require ESLint ^10.8.0 to be added explicitly.

Use

// eslint.config.mjs
import mdorNodeConfig from "@mdor/eslint-node-config";

export default mdorNodeConfig;

Compose project-specific overrides after the shared configuration:

import mdorNodeConfig from "@mdor/eslint-node-config";

export default [
  ...mdorNodeConfig,
  {
    files: ["scripts/**/*.js"],
    rules: {
      "n/no-process-exit": "off",
    },
  },
];

The preset treats .js and .mjs files as ES modules and .cjs files as CommonJS. It reads the supported Node.js version from the consuming project's package.json#engines.node, following eslint-plugin-n behavior.

Public API

  • The default and named eslintNodeConfig exports contain the complete flat configuration array.
  • nodeModuleConfig exposes the Node.js ES-module layer.
  • nodeCommonJsConfig exposes the Node.js CommonJS layer.

The package is ESM-only and ships TypeScript declarations. Formatting rules are left to Prettier.

Runtime enforcement

The package declares Node.js and npm requirements through engines. npm reports incompatible consumer environments and rejects them when engine-strict=true. The matching devEngines policy uses onFail: "error" when this package is developed directly with npm.

Activate the repository runtime before running package commands:

nvm use 22.13.0

Repository source configuration

The MDOR monorepo consumes both workspace sources through relative imports while avoiding duplicate base rules:

// eslint.config.mjs
import mdorConfig from "./packages/eslint-config/index.js";
import { nodeCommonJsConfig, nodeModuleConfig } from "./packages/eslint-node-config/index.js";

export default [...mdorConfig, nodeModuleConfig, nodeCommonJsConfig];

Validate and release

npm run typecheck --workspace @mdor/eslint-node-config
npm test --workspace @mdor/eslint-node-config
npm pack --workspace @mdor/eslint-node-config --dry-run
npm run release-patch-try --workspace @mdor/eslint-node-config

Publishing requires npm authentication with access to the @mdor organization.