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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@alextheman/eslint-plugin

v5.4.2

Published

A package to provide custom ESLint rules and configs

Readme

@alextheman/eslint-plugin

This is my personal ESLint plugin. It provides custom ESLint rules along with some base configs that you can just drop straight into your project with minimal setup.

Installation

To install this plugin into your project, you can do so with the following command:

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

Since most of the time, you will be using this plugin only to check your code as opposed to using it at runtime, we recommend installing it as a dev dependency. If you are using this in your own ESLint plugin, however, we recommend installing it as a peer dependency

npm install --save-peer @alextheman/eslint-plugin

Configs

The Config Groups

The configs of this plugin are structured in a very particular way. We have our general configs in src/configs/general, our plugin configs in src/configs/plugin, our personal internal configs in src/configs/personal, and our combined configs in src/configs/combined. In all three cases, we use the ESLint flat config style as that's the most up-to-date config style and allows for more flexibility than just using a package.json or .eslintrc.

The general configs are to be used for defining a ruleset that does NOT rely on the custom plugin rules. They must ONLY use external rules.

The plugin configs are to be used for defining a ruleset that ONLY relies on the custom plugin rules. They must NOT use any external rules. This ensures that, for any users who just want a few recommended configs for only the plugin's rules, they can choose from the ones provided without also having to deal with a bunch of other external rules polluting it as well.

The personal configs are to be used for defining a ruleset to primarily be used in my own projects. They are likely to change according to the needs of my own projects without taking public usage into account and is therefore not recommended to be used outside of my own projects.

Lastly, the combined configs may use combinations of both external rules and custom rules. They will most frequently extend configs from any group. It is the most likely one to break on new updates, so I would recommend against using configs from this group in production code and go with one of the other more stable ones (unless you're me and actually control the plugin entirely).

Usage

The configs are defined on the configs property of the plugin. All general rules are prefixed with general/, and likewise for the plugin and combined rules. All rulesets themselves are given in kebab-case. With that in mind, an example usage in eslint.config.js may look like this:

import plugin from "@alextheman/eslint-plugin"

export default plugin.configs["general/typescript-base"]

If you want to extend this, you can do so by spreading the rules into an array and adding extra configuration properties:

import plugin from "@alextheman/eslint-plugin"

export default [
    ...plugin.configs["general/typescript-base"],
    {
        rules: {
            "no-unused-vars": "off"
        }
    }
]