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-verb-nouns

v1.1.0

Published

ESLint plugin that catches incorrect use of noun forms like 'setup', 'login', 'signup' when verb forms are needed

Downloads

18,183

Readme

eslint-plugin-verb-nouns

Catch incorrect use of noun forms like "setup", "login", "signup" when verb forms ("set up", "log in", "sign up") are needed.

Why would I want this?

Words like "setup", "login", and "signup" are nouns or adjectives. When used as verbs, they should be written as two words: "set up", "log in", and "sign up".

  • Noun/Adjective: "The login screen", "Initial setup", "Signup form"
  • Verb: "Log in to your account", "Set up your profile", "Sign up for free"

This rule uses heuristics to catch the most common mistakes in UI copy (buttons, labels, placeholders) while allowing legitimate noun usage.

Is this really necessary?

I get it. This is pedantic, and it usually results in one-character changes. But nonetheless, it's a mistake so common that even LLMs mess it up all the time. Once you see it, you'll never unsee it.

Install

npm i -D eslint eslint-plugin-verb-nouns
yarn add -D eslint eslint-plugin-verb-nouns
pnpm add -D eslint eslint-plugin-verb-nouns
bun add -d eslint eslint-plugin-verb-nouns

Tested with ESLint 8.57+, 9.x, and 10 alpha.

Usage (flat config, ESLint 9+/10)

// eslint.config.mjs
import verbNouns from "eslint-plugin-verb-nouns";

export default [
  {
    plugins: { "verb-nouns": verbNouns },
    rules: {
      "verb-nouns/no-verb-noun-confusion": "error",
    },
  },
];

Usage (eslintrc, ESLint 8)

// .eslintrc.cjs
module.exports = {
  plugins: ["verb-nouns"],
  rules: {
    "verb-nouns/no-verb-noun-confusion": "error",
  },
  extends: ["plugin:verb-nouns/legacy"],
};

What the rule catches

The no-verb-noun-confusion rule flags likely verb usage of:

  • "Setup" → should be "Set up"
  • "Login" → should be "Log in"
  • "Signup" → should be "Sign up"

Examples

// ❌ Bad - these are verbs, should be two words
<button>Setup</button>
<button>Login</button>
<button>Signup</button>
<button>Setup your account</button>
<button>Login to continue</button>
<button aria-label="Signup now">Join</button>

// ✅ Good - proper verb forms
<button>Set up</button>
<button>Log in</button>
<button>Sign up</button>
<button>Set up your account</button>
<button>Log in to continue</button>
<button aria-label="Sign up now">Join</button>

// ✅ Good - noun/adjective usage (allowed)
<h1>Initial setup</h1>
<h1>Login screen</h1>
<p>Complete the signup form</p>

Heuristics

The rule only checks:

  • JSX text content
  • String literals in aria-label, title, and placeholder attributes

It allows known noun phrases like "initial setup", "login screen", "signup form", etc.

Options

None. The rule is purposefully minimal.

Contributing / Development

  • npm run lint — lint sources and tests
  • npm run test — run rule tests (Vitest + ESLint RuleTester)
  • npm run build — bundle to dist/ via TSUP (ESM + d.ts)

License

MIT