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-vibe-check

v1.4.3

Published

ESLint rules to provide warnings and guardrails for AI coding assistance

Downloads

416

Readme

eslint-plugin-vibe-check

ESLint rules to provide warnings and guardrails for AI coding assistance

Installation

npm install eslint-plugin-vibe-check --save-dev

Requirements

  • Node.js >=20.8.1
  • ESLint >=8.0.0

Compatibility

This plugin supports both:

  • ESLint Flat Config (modern format using eslint.config.js)
  • Legacy ESLint Config (traditional format using .eslintrc.* files)

Usage

Traditional Config (.eslintrc)

Add vibe-check to the plugins section of your .eslintrc configuration file:

{
  "plugins": ["vibe-check"]
}

Then configure the rules you want to use:

{
  "rules": {
    "vibe-check/max-file-lines": ["warn", { "max": 300 }]
  }
}

Or use one of the provided configurations:

{
  "extends": ["plugin:vibe-check/recommended"]
}

For stricter enforcement (all rules as errors):

{
  "extends": ["plugin:vibe-check/strict"]
}

Flat Config (eslint.config.js)

For ESLint's new flat config format:

import vibeCheck from 'eslint-plugin-vibe-check/eslint.config.js';

export default [
  // Your other configs...
  vibeCheck,
  
  // Or configure individually:
  {
    plugins: {
      'vibe-check': vibeCheck.plugins['vibe-check']
    },
    rules: {
      'vibe-check/max-file-lines': ['warn', { max: 300 }]
    }
  }
];

For stricter enforcement (all rules as errors):

import vibeCheckStrict from 'eslint-plugin-vibe-check/eslint.config.strict.js';

export default [
  // Your other configs...
  vibeCheckStrict
];

Or you can use the flat configuration directly:

import vibeCheckPlugin from 'eslint-plugin-vibe-check';

export default [
  {
    plugins: {
      'vibe-check': vibeCheckPlugin
    },
    rules: {
      'vibe-check/max-file-lines': 'warn',
      'vibe-check/no-placeholder-comments': 'warn',
      'vibe-check/no-hardcoded-credentials': 'warn',
      'vibe-check/no-changelog-comments': 'warn',
      'vibe-check/never-assume': 'error'
    }
  }
];

Or use one of the predefined configurations:

import vibeCheckPlugin from 'eslint-plugin-vibe-check';

export default [
  {
    plugins: {
      'vibe-check': vibeCheckPlugin
    },
    extends: ['plugin:vibe-check/recommended'] // or 'plugin:vibe-check/strict'
  }
];

Rules

max-file-lines

Warns when a file exceeds a configurable maximum number of lines (default: 300).

Options

  • max: The maximum number of lines allowed in a file (default: 300)

Example

{
  "rules": {
    "vibe-check/max-file-lines": ["warn", { "max": 250 }]
  }
}

no-placeholder-comments

Catches placeholder comments indicating shortcuts or unimplemented features (e.g., "in a real app", "TODO: make secure").

no-hardcoded-credentials

Detects hardcoded API keys, tokens, passwords, and other sensitive credentials.

no-changelog-comments

Flags comments containing changelog-like terms such as "added", "updated", "fixed", "changed", etc., that often appear when AI tools explain their changes in comments. This rule is fixable - the VSCode quick fix feature (lightbulb) or ESLint's --fix option will automatically remove these comments.

never-assume

Detects comments containing forms of the word "assume" (such as "assume", "assuming", "assumed", etc.) and flags them as errors. Making assumptions about a codebase can lead to errors and bugs. Instead of making assumptions, developers should check and validate their understanding before making decisions.

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Run tests to ensure they pass: npm test
  4. Commit your changes (git commit -m 'Add some amazing feature')
  5. Push to the branch (git push origin feature/amazing-feature)
  6. Open a Pull Request

Using Claude Autofix

You can also request Claude to automatically fix issues:

  1. Create a new issue describing the bug or enhancement
  2. Add the claude-fix label to the issue
  3. The Claude Autofix workflow will attempt to fix the issue automatically
  4. If successful, a new pull request will be created with the fix

For more details, see the Claude Autofix documentation.

Release Process

This project uses semantic-release for automated versioning and releases:

  1. When changes are merged to the main branch, semantic-release analyzes commit messages
  2. Version numbers are automatically determined based on semantic commit messages
    • fix: - Patch release (1.0.0 -> 1.0.1)
    • feat: - Minor release (1.0.0 -> 1.1.0)
    • feat!:, fix!:, refactor!:, etc. - Major release (1.0.0 -> 2.0.0)
  3. CHANGELOG.md is automatically updated with release notes
  4. A GitHub release is created with the same notes
  5. The package is published to npm automatically

To contribute changes that will be released:

  1. Make your changes following the Conventional Commits specification
  2. Create a PR and merge it to the main branch
  3. The GitHub Actions workflow will handle releasing and publishing automatically