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

@phoenix35/eslint-config

v1.8.0

Published

Complete ESLint shareable config for beginners

Readme

@phoenix35/eslint-config

Complete ESLint shareable config for beginners.

Preliminary thoughts

What do you prefer?

/* curly */
while (true) { // mandatory curly braces for multi-line
  if (condition) // optional curly braces for single-line
    doSomething();
  else
    doSomethingElse();
}
// or
while (true) { // mandatory curly braces for all blocks
  if (condition) {
    doSomething();
  } else {
    doSomethingElse();
  }
}
/* @stylistic/js/quotes */
"Hello, world!"; // double quotes
// or
'Hello, world!'; // single quotes
/* @stylistic/js/nonblock-statement-body-position */
if (condition)
  doStuff(); // statement below the control
// or
if (condition) doStuff(); // statement beside the control

How to use

Make sure your node version is up-to-date.
LTS version is 20.16.0 right now, this config will not work with anything below.

Make an "engines" field in the package.json of your project

  "engines": {
    "node": ">= 20.16.0"
  }

The version should be >= LTS or a later node.js version you use.

Create a eslint.config.mjs file in the same directory as your package.json.

// eslint.config.mjs
// import line

export default [
  ...importedDefault,
  {
    rules: {
      // curly braces for all blocks
      /* "curly": [ "error", "all" ], /**/
      // single quotes
      /* "@stylistic/js/quotes": [ "error", "single", { avoidEscape: true } ], /**/
      // statement beside the control
      /* "@stylistic/js/nonblock-statement-body-position": [ "error", "beside" ], /**/
    }
  }
];

Uncomment the line for each rule you want to follow, by removing the /* at the beginning of said line.
The exact content needs to be adapted to the type of project

- Browser project

You need to install the regular package

npm install -D eslint @phoenix35/eslint-config
// eslint.config.mjs
import browserDefault from "@phoenix35/eslint-config/browser";

export default [
  ...browserDefault,
  {
    rules: {
      // your rules
    }
  }
];

- Node.js project

You need to install the full package with optional dependencies

npm install -D eslint
npm install -D --include=optional @phoenix35/eslint-config
// eslint.config.mjs
import nodeDefault from "@phoenix35/eslint-config/node";

export default [
  ...nodeDefault,
  {
    rules: {
      // your rules
    }
  }
];

- Fullstack project

You need to install the package with optional dependencies (see Node.js project)

Have a eslint.config.mjs file following "browser project" in the parent directory containing browser-specific code and another following "node project" next to your top-level package.json.

- Userscript

Works for Greasemonkey and Violentmonkey

npm install -D eslint @phoenix35/eslint-config
// eslint.config.mjs
import monkeyDefault from "@phoenix35/eslint-config/userscript";

export default [
  ...monkeyDefault,
  {
    rules: {
      // your rules
    }
  }
];

- WebExtension project

npm install -D eslint @phoenix35/eslint-config
// eslint.config.mjs
import extensionDefault from "@phoenix35/eslint-config/webextensions";

export default [
  ...extensionDefault,
  {
    rules: {
      // your rules
    }
  }
];

- A Polymorphic library

npm install -D eslint @phoenix35/eslint-config
// eslint.config.mjs
import baseDefault from "@phoenix35/eslint-config";

export default [
  ...baseDefault,
  {
    rules: {
      // your rules
    }
  }
];

Now what

Start coding. You're done here.