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

@wearerequired/eslint-config

v7.0.0

Published

required coding standard for JavaScript.

Downloads

682

Readme

required JavaScript Coding Standard

required coding standard for JavaScript, based on the rules provided by @wordpress/eslint-plugin.

Installation

This package is an ESLint shareable configuration. Install it together with its peer dependencies:

npm install --save-dev @wearerequired/eslint-config eslint @wordpress/eslint-plugin "prettier@npm:wp-prettier@^3"

npm 7+ installs peer dependencies automatically, so listing them is optional for a working install — but installing them explicitly keeps them pinned in your package.json (and visible to editors/CI). Use wp-prettier, not the standard Prettier: the config relies on the parenSpacing option, which only wp-prettier provides.

Requires ESLint 9 or 10 and @wordpress/eslint-plugin 25 or newer.

Note — ESLint 10: works when ESLint is provided by @wordpress/scripts (v32+, the recommended WordPress setup) — it bundles ESLint 10 and @wordpress/eslint-plugin 25 in a controlled tree. For a standalone direct ESLint 10 install (no @wordpress/scripts), the classic eslint-plugin-import@2 bundled by @wordpress/eslint-plugin still stops at ESLint 9 in its peer range, so npm nests the TypeScript import resolver and it fails to load (typescript with invalid interface loaded as resolver); install eslint-import-resolver-typescript as a direct dependency or use --legacy-peer-deps there. This resolves once WordPress moves to eslint-plugin-import-x (see WordPress/gutenberg#76654).

Usage

This package exports a flat config. Create an eslint.config.js file in your project root:

const config = require( '@wearerequired/eslint-config' );

module.exports = config;

To add your own overrides, spread the config into an array:

const config = require( '@wearerequired/eslint-config' );

module.exports = [
	...config,
	{
		rules: {
			// Your project-specific overrides.
		},
	},
];

Migrating from v6

  1. Remove .eslintrc* and .eslintignore and add an eslint.config.js as shown above (move ignore patterns into an { ignores: [ … ] } config object).
  2. Update eslint to ^9 and @wordpress/eslint-plugin to >=25.
  3. If you install ESLint via wearerequired/lint-action, make sure your version supports ESLint 9 / flat config.
  4. Prefer npm ci over npm i in CI so installs are reproducible.
  5. Browser globals are no longer predefined (this matches the WordPress default). If you lint .js / .jsx files that use bare DOM-only globals (MutationObserver, getComputedStyle, IntersectionObserver, …), add them via languageOptions.globals in your eslint.config.js or access them through window.. TypeScript files are unaffected (no-undef is off for TS).

a required open source product - let's get in touch