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

eslint-plugin-discordjs

v0.1.4

Published

ESLint rules for discord.js bots

Readme

npm node license

About

Type-aware ESLint rules for discord.js. Aside from the two prefer-* style rules, each rule flags a payload or command definition that fails at runtime, either in discord.js validation or at the Discord API. Rules check only values known at lint time and skip dynamic ones.

This plugin stands alone and works in any discord.js project, seedcord or otherwise.

Install

pnpm add -D eslint-plugin-discordjs

Requires ESLint 9.22.0+ flat config with typed linting (projectService), since most rules read types.

Use

// eslint.config.js
import { defineConfig } from 'eslint/config';
import discordjs from 'eslint-plugin-discordjs';
import tseslint from 'typescript-eslint';

export default defineConfig(
    // ...your existing config
    {
        files: ['**/*.ts'],
        extends: [discordjs.configs.recommended],
        languageOptions: {
            parser: tseslint.parser,
            parserOptions: {
                projectService: true,
                tsconfigRootDir: import.meta.dirname
            }
        }
    }
);

If your config already sets up typed linting, drop the languageOptions block and keep the scoped extends entry.

Rules

| Rule | Catches | | --- | --- | | no-mixed-message-format | components v2 builders mixed with content/embeds/poll/stickers, Discord rejects the payload | | require-components-v2-flag | v2 components without MessageFlags.IsComponentsV2 | | select-menu-min-exceeds-max | a minimum above the maximum, from setters or constructor data, the API rejects it | | no-discord-limit-exceeded | more items than a builder's hard cap (5 row components, 25 options/fields/choices), constructor data included | | no-conflicting-button-props | customId with url, a url or skuId on the wrong style, a Premium button with a customId, label, url, or emoji | | require-button-props | a sealed button missing its style or its style's required props (customId, url, skuId, label/emoji) | | no-choices-and-autocomplete | autocomplete and static choices on one slash option | | required-option-before-optional | a required slash option after an optional one | | valid-command-name | slash command and option names Discord rejects | | prefer-ephemeral-flag | the deprecated ephemeral: true reply option, autofixes to MessageFlags.Ephemeral | | prefer-v2-component | embed usage that components v2 can replace (style preference, warns) |

All rules run at error except the two prefer-* style rules, which warn.

seedcord

These rules are the discord.js half of the seedcord lint setup. seedcord bots add @seedcord/eslint-plugin, whose seedcord preset layers the framework rules over this plugin's recommended.