Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-plugin-vibe-check

cahaseler206MIT1.4.3

ESLint rules to provide warnings and guardrails for AI coding assistance

eslint, eslintplugin, ai, guardrails, code quality, best practices, eslint-plugin, eslintconfig

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

changelog

1.4.3 (2025-04-26)

Bug Fixes

  • correct Claude CLI usage in autofix workflow (e05fe7e)

1.4.2 (2025-04-26)

Bug Fixes

  • Correct CLI command name to 'claude' (7485e9c)
  • Use correct npm package and CLI command name (533a22b)

1.4.1 (2025-04-26)

Bug Fixes

  • Improve Claude autofix workflow to handle issue content safely (796e926)

1.4.0 (2025-04-26)

Bug Fixes

  • remove incorrect yarn package manager entry and update package-lock.json (4dbb193)
  • Update Claude autofix workflow to use official non-interactive mode (35eac7d)

Features

  • add Claude Autofix GitHub Action (47834c2)

1.3.1 (2025-04-25)

Bug Fixes

  • add support for legacy ESLint plugin format (45b00e8)
  • enhance JSX comment fixer and add error handling tests (b332849)

1.3.0 (2025-04-19)

Features

1.2.1 (2025-04-19)

Bug Fixes

  • resolve semantic-release version conflict (906d243)

1.2.0 (2025-04-19)

Bug Fixes

  • add required permissions for semantic-release (707e4a4)
  • ci: resolve ESLint config parsing error (b8ace6f)
  • update Node.js version requirement for semantic-release (2c918ca)

Features

  • rule: add VSCode quickfix for no-changelog-comments rule (5809f02)

Changelog

All notable changes to this project will be documented in this file.