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

@defenseunicorns/eslint-config

v1.2.0

Published

A standardized eslint config for use in Typescript and Javascript code

Readme

Defense Unicorn Recommended Linter Configurations

This repository is ensures organizational code quality with a standard set of linter rules for Typescript & Javascript code. At present, use of the rulesets defined in this repository are not mandated.

Usage

Add this package to your project as a devDependency with:

npm install @defenseunicorns/eslint-config --save-dev

Two framework-agnostic rulesets are provided: recommended and strict. These rulesets work with any TypeScript or JavaScript project regardless of framework (React, Vue, Node.js, Express, etc.).

recommended Ruleset

The recommended ruleset provides a balanced set of linting rules suitable for most projects across the organization. Use this ruleset for general TypeScript/JavaScript projects. For now, this ruleset just warns on the eqeqeq rule.

Configure your eslint.config.mjs like this:

import { recommended } from '@defenseunicorns/eslint-config';

export default [...recommended];

strict Ruleset

The strict ruleset enforces more rigorous code quality standards and is ideal for projects that require higher consistency and fewer exceptions. For now, this ruleset just errors on the eqeqeq rule.

Configure your eslint.config.mjs like this:

import { strict } from '@defenseunicorns/eslint-config';

export default [...strict];

Overriding Rules

[!CAUTION] Overriding rules from this package defeats the purpose of the package to ensure org-wide code-quality. However, if you must override a rule, here's how:

In this example, eqeqeq is defined in the recommended ruleset. A similar pattern can be used for any of the eslint configuration options.

import { recommended } from '@defenseunicorns/eslint-config';

export default [
  ...recommended,
  {
    rules: {
      eqeqeq: 'off',
    },
  },
];

Adopting ESlint in All Repos

Apply linter configurations to N repos

To apply a standard config setting to a list of repos, use migrate-eslint.ts.

For example, npx ts-node -P draft/tsconfig.json migration/migrate-eslint.ts performs a migration process. You can use pepr-excellent-examples as a reference point on performing bulk-migrations.

If linting has not been previously configured, the repo will be initialized with an empty ruleset to be filled in later. If a linting ruleset exists on versions earlier that 9.X, then @eslint/migrate-config will migrate the config. If a linting ruleset exists on versions on 9.X, then eslint will be called.

Results of the eslint command are stored in each repository at /eslint-migration.log.

Common errors and warnings

(node:59582) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///[...]/eslint.config.js?mtime=1740695085181 is not specified and it doesn't parse as CommonJS.
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
To eliminate this warning, add "type": "module" to /[...]/package.json.

Resolution: Add "type": "module" to package.json.

  0:0  error  Parsing error: /[...]/*.js was not found by the project service. Consider either including it in the tsconfig.json or including it in allowDefaultProject

Resolution: Add "**/*.js" to include in tsconfig.json AND add "allowJs": true to compilerOptions in tsconfig.json.

  0:0  error  Parsing error: "parserOptions.project" has been provided for @typescript-eslint/parser.
The file was not found in any of the provided project(s): *.[js|mjs]

Resolution: Add those file paths to the ignores block of the eslint.config.mjs file.

  9:34  error  Parsing error: Unexpected token :

Resolution: Ensure that tsParser from @typescript-eslint/parser is in use. See sample languageOptions:

import tsParser from '@typescript-eslint/parser'
[...]
  {
    languageOptions: {
      parser: tsParser,
    }
  },
[...]

Known Issues

Projects with multiple configs (uncommon)