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

@endo/eslint-plugin

v3.0.0

Published

ESLint plugin for using Endo

Readme

@endo/eslint-plugin

ESLint rules and shareable configs for Hardened JavaScript and Endo packages.

Installation

npm install --save-dev eslint @endo/eslint-plugin

Usage

ESLint 9+ (Flat Config)

In your eslint.config.js (or .mjs/.cjs):

import endoPlugin from '@endo/eslint-plugin';

export default [
  // Apply the recommended rules for Hardened JS code.
  ...endoPlugin.configs['flat/recommended'],
];

ESLint 8 (Legacy Config)

In your .eslintrc.json (or .eslintrc.js, etc.):

{
  "extends": ["plugin:@endo/recommended"]
}

Shareable Configs

recommended / flat/recommended

Core rules for code written to run under Hardened JavaScript (post-lockdown()).

// flat config
...endoPlugin.configs['flat/recommended']

// legacy
{ "extends": ["plugin:@endo/recommended"] }

Breaking change (v3): This config no longer bundles @jessie.js/eslint-plugin. Consumers who want the Jessie safe-await-separator rule and the use-jessie processor must install @jessie.js/eslint-plugin and configure it directly:

import jessie from '@jessie.js/eslint-plugin';
import endo from '@endo/eslint-plugin';

export default [
  ...endo.configs['flat/recommended'],
  ...jessie.configs['flat/recommended'],
  { processor: jessie.processors['use-jessie'] },
];

recommended-requiring-type-checking / flat/recommended-requiring-type-checking

Extends recommended and adds the restrict-comparison-operands rule, which requires TypeScript type information.

// flat config
...endoPlugin.configs['flat/recommended-requiring-type-checking']

// legacy
{ "extends": ["plugin:@endo/recommended-requiring-type-checking"] }

style / flat/style

Opinionated JS coding-style rules: @stylistic/eslint-plugin, jsdoc, and prettier.

...endoPlugin.configs['flat/style']

imports / flat/imports

Rules about how packages should use imports: require file extensions, disallow extraneous dependencies, prefer named exports.

...endoPlugin.configs['flat/imports']

strict / flat/strict

style + imports + recommended in one config.

...endoPlugin.configs['flat/strict']

internal / flat/internal

The opinionated baseline used by all packages within the Endo monorepo itself. Extends strict and adds TypeScript-ESLint. Not intended for external use.

...endoPlugin.configs['flat/internal']

ses / flat/ses

Extends internal with strict global-variable restrictions for SES bootstrap code that runs before lockdown().

...endoPlugin.configs['flat/ses']

daemon / flat/daemon (deprecated)

Alias for internal/flat/internal.


Rules

| Rule | Description | Fixable | |------|-------------|---------| | @endo/assert-fail-as-throw | Make assert.fail() count as a throw in ESLint's control-flow analysis | — | | @endo/harden-exports | Ensure each named export is immediately followed by harden() | 🔧 | | @endo/no-assign-to-exported-let-var-or-function | Disallow reassignment of exported let/var/function bindings | — | | @endo/no-harden-pattern-maker | Warn when hardening pattern-maker return values (they are already hardened) | — | | @endo/no-multi-name-local-export | Disallow exporting the same local binding under multiple names | — | | @endo/no-polymorphic-call | Disallow method calls on non-local receiver objects | — | | @endo/restrict-comparison-operands | Restrict </>/<=/>= to operands of compatible types | — |


Configuring Individual Rules

// flat config
export default [
  {
    plugins: { '@endo': endoPlugin },
    rules: {
      '@endo/harden-exports': 'error',
      '@endo/no-polymorphic-call': 'warn',
    },
  },
];
// legacy (.eslintrc.json)
{
  "plugins": ["@endo"],
  "rules": {
    "@endo/harden-exports": "error",
    "@endo/no-polymorphic-call": "warn"
  }
}

Compatibility

| ESLint version | How to use | |----------------|------------| | 9.x | eslint.config.js flat config, use flat/* configs | | 8.x | .eslintrc.* legacy config, use bare config names |

The plugin ships both legacy (recommended, internal, …) and flat (flat/recommended, flat/internal, …) configs so you can use whichever ESLint version your project requires.