validate-lint

Run ESLint and Prettier to validate JavaScript/TypeScript code style.

7|3|Updated Oct 23, 2025
One-click install
npx skills add https://github.com/BerryKuipers/claude-code-toolkit --skill validate-lint
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: validate-lint
Source: https://github.com/BerryKuipers/claude-code-toolkit/tree/main/.claude/skills/quality/validate-lint
Command: npx skills add https://github.com/BerryKuipers/claude-code-toolkit --skill validate-lint

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires npm, eslint, prettier, grep, jq.

What problem does it solve?

Inconsistent code style and formatting lead to readability issues, merge conflicts, and wasted developer time. This Skill automates linting and formatting validation to enforce project-wide coding standards.

Core Features & Use Cases

  • Linter Detection & Execution: Automatically detects and runs common linters like ESLint and formatters like Prettier.
  • Error & Warning Reporting: Counts and categorizes linting errors and warnings, providing detailed output.
  • Affected File & Rule Identification: Pinpoints specific files with issues and lists the most frequently violated rules, aiding targeted fixes.
  • Use Case: Integrate this Skill into your pre-commit hooks or quality gate to ensure all code adheres to style guides before it's committed or reviewed.

Quick Start

Run lint validation on your project

Assumes ESLint and/or Prettier are configured in the project's package.json.

validate-lint

Output:

{

"status": "success",

"lint": {"status": "passing", "errors": 0, "warnings": 0, "files": []},

"canProceed": true

}

Frequently Asked Questions about validate-lint

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically check code style and formatting in my JavaScript project?

Code style validation automatically detects and runs ESLint and Prettier on your project to enforce consistent formatting and catch style violations. Configure ESLint in .eslintrc or eslint.config.js, then run the validation to receive structured results showing errors, warnings, affected files, and violated rules.

Can I integrate linting checks into my pre-commit workflow?

Yes. Linting validation runs ESLint and Prettier as pre-commit checks to ensure all code adheres to style guides before commits are made. It returns pass/fail status and detailed violation data, making it suitable for quality gates and automated checks in CI pipelines.

What does ESLint configuration look like, and do I need Prettier too?

ESLint requires a configuration file (.eslintrc, eslint.config.js, or package.json entry). Prettier is optional but recommended for formatting enforcement. Both tools work together in the validation process, with ESLint catching code quality issues and Prettier enforcing consistent formatting.

How do I identify which files and rules are causing linting failures?

Validation returns structured output that pinpoints specific files with issues and lists the most frequently violated rules. This granular reporting helps developers target fixes efficiently rather than addressing all violations at once.

What's the difference between linting errors and warnings in code validation?

Linting validation categorizes violations into errors—critical issues that typically block commits—and warnings—less severe style inconsistencies. The output counts both separately so you can prioritize fixes based on severity.

When should I run code validation during development?

Run validation before commits, during pre-refactor checks, and as a CI gate to catch style issues early. This prevents inconsistent code from reaching review and reduces merge conflicts caused by formatting differences across the team.