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

@plugjs/eslint-plugin

v0.5.16

Published

Shared ESLint configurations and extras

Readme

PlugJS ESLint (v9) Shared Configuration

Provides shared ESLint v9 flat-config presets for PlugJS projects. It’s the easiest way to share consistent rules and plugins across repos.

Quick Setup

Just create a new eslint.config.mjs file following this template, your mileage might vary, and according to your specific needs you might need to add/remove stuff to fit your project:

import configurations from '@plugjs/eslint-plugin'

export default [
  ...configurations,

  // ===== DEFINE THE LOCATION OF OUR TSCONFIG.JSON FILES ======================
  {
    name: 'local/options',

    languageOptions: {
      parserOptions: {
        createDefaultProgram: false,
        project: [
          './tsconfig.json',
          './test/tsconfig.json',
        ],
      },
    },
  },

  // ===== ENSURE THAT OUR MAIN FILES DEPEND ONLY ON PROPER DEPENDENCIES =======
  {
    name: 'local/imports',

    files: [ 'src/**' ],
    rules: {
      // Turn _ON_ dependencies checks only for sources
      'import-x/no-extraneous-dependencies': [ 'error', {
        'devDependencies': false,
        'optionalDependencies': false,
        'peerDependencies': true,
        'bundledDependencies': false,
      } ],
    },
  },

  // ===== PROJECT LOCAL RULES =================================================
  // Add any extra rule not tied to a specific "files" pattern here, e.g.:
  // {
  //   name: 'local/rules',
  //
  //   rules: {
  //     'camelcase': 'off',
  //   },
  // },

  // ===== IGNORED FILES =======================================================
  // REMEMBER! Ignores *must* be in its own configuration, they can not coexist
  // with "rules", "languageOptions", "files", ... or anything else (ESLint v9
  // flat config). Otherwise ESLint will blatantly ignore the ignored files!
  {
    name: 'local/ignores',

    ignores: [
      'coverage/',
      'dist/',
      'node_modules/',
    ],
  },
]

Configurations

This includes a number of individual configurations:

  • plugjs/basic/base: basic configuration of ESLint rules.

  • plugjs/basic/stylistic: style shared between JavaScript and TypeScript.

  • plugjs/basic/unicorn: extra niceties from the ESLint Unicorn plugin.

  • plugjs/basic/importx: defines the style of our imports.

  • plugjs/javascript/shared: shared configuration for JavaScript files.

  • plugjs/javascript/commonjs: marks *.cjs files as commonjs.

  • plugjs/javascript/modules: marks *.mjs files as module.

  • plugjs/typescript/plugin: defines the "@typescript-eslint" plugin.

  • plugjs/typescript/options: configuration for "@typescript-eslint".

  • plugjs/typescript/overrides: our rules overriding recommended.

A set of grouped configurations are also available:

  • plugjs/basic: basic rules shared between JavaScript and TypeScript.
    • includes all plugjs/basic/... individual configurations
  • plugjs/javascript: rules specific to JavaScript code bases.
    • includes all plugjs/javascript/... individual configurations
  • plugjs/typescript: rules specific to TypeScript code bases.
    • includes all plugjs/typescript/... individual configurations and...
    • ...other rules from typescript-eslint/recommended: all other recommended Typescript rules, restricted to .ts, .cts, and .mts files.

The default configuration exported by the plugin includes all the configurations listed above and the base eslint/js/recommended configuration from ESLint.

Legal Stuff