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-lorem

v1.1.2

Published

ESLint plugin to prevent Lorem Ipsum usage

Readme

eslint-plugin-lorem

npm

Tired of placeholder text creeping into your production code? Meet eslint-plugin-lorem – a lightweight ESLint plugin designed to catch unwanted strings (like Lorem Ipsum) in your codebase before they ever see the light of day.

Why Use It?

  • Keep Your Code Clean:

    Prevent accidental placeholder text (and the inevitable scolding from the marketing team) from ending up in your production code.

  • Easy to Configure:

    With a simple setup, you can tailor the plugin to fit the specific needs of your project.

Features

  • Multi-file Support: Works seamlessly with JavaScript, React, Vue, Svelte, and HTML files.

  • Template Literal Detection: Scans both regular strings and template literals for unwanted placeholder text.

  • Customizable: Easily add or override the list of strings to check according to your project's needs.

  • Flexible Rule Disabling: Disable the rule on specific lines, blocks, or entire files as needed.

Quick Start

Add to your .eslintrc.json:

{
  "extends": ["plugin:lorem/recommended"]
}

In a future version we will support flat configuration (eslint.config.js).

Example Configuration

Add the following to your ESLint configuration file:

{
  "plugins": ["lorem"],
  "rules": {
    "lorem/no-lorem": ["error", {
      "strings": ["custom text"], // Add any additional strings you wish to check
      "override": true // Set to true to completely replace default strings
    }]
  }
}

This configuration tells ESLint to flag any occurrences of the specified strings, ensuring that your code remains professional and free from unwanted placeholder text.

Get Started

Install the plugin via npm:

npm install eslint-plugin-lorem --save-dev

Then integrate it into your ESLint configuration as shown above. Now you can rest easy knowing that any stray Lorem Ipsum or other placeholder text will be caught early in your development process.

Keep your codebase clean and professional with eslint-plugin-lorem—because placeholder text doesn't belong in production!


Disabling the Rule

Sometimes you may need to disable the rule:

  • For a Single Line:

    Copy
    // eslint-disable-next-line lorem/no-lorem
    const text = "Lorem ipsum dolor sit amet";
  • For a Block:

    /* eslint-disable lorem/no-lorem */
    const text1 = "Lorem ipsum dolor sit amet";
    const text2 = "Lorem ipsum dolor sit amet";
    /* eslint-enable lorem/no-lorem */
  • For an Entire File:

    Place at the top of the file:

    /* eslint-disable lorem/no-lorem */

Default Strings Checked

By default, the plugin checks for common placeholder strings such as:

  • "lorem"
  • "ipsum"
  • "לורם"
  • "איפסום"

License

This project is licensed under the MIT-0 License.