lint-message

Write educational ESLint rule error messages with fix instructions.

2|1|Updated May 16, 2023
One-click install
npx skills add https://github.com/BluMintInc/eslint-custom-rules --skill lint-message
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lint-message
Source: https://github.com/BluMintInc/eslint-custom-rules/tree/main/.claude/skills/lint-message
Command: npx skills add https://github.com/BluMintInc/eslint-custom-rules --skill lint-message

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers write clear, educational, and actionable error messages for ESLint rules, transforming linting errors into learning opportunities.

Core Features & Use Cases

  • Structured Message Guidance: Provides a template for crafting effective messages ([What's wrong] → [Why it matters] → [How to fix]).
  • Educational Content: Emphasizes explaining underlying principles and preventing specific bugs.
  • Use Case: When creating a new ESLint rule, use this Skill to ensure its messages are understandable to junior developers and AI agents, promoting consistent code quality and faster onboarding.

Quick Start

Use the lint-message skill to learn how to write effective ESLint rule messages.

Frequently Asked Questions about lint-message

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

FAQPage Schema
How do I write effective ESLint error messages for custom rules?

To write effective ESLint error messages, structure them as What's wrong, Why it matters, and How to fix. This educates developers on underlying principles, prevents specific bugs, and provides clear, actionable remediation steps.

What should ESLint rule messages include to help junior developers?

ESLint rule messages should include the problem explanation, the underlying principle or bug risk, and specific remediation instructions. This transforms linting errors into teaching moments, promoting consistent code quality and faster onboarding for junior developers.

Can I use template variables in ESLint rule messages for context?

Yes, you can use template variables in ESLint rule messages to provide context-specific information. This allows you to dynamically insert relevant code details into the What's wrong, Why it matters, and How to fix structure for clearer guidance.

What is the best way to structure linting error messages for AI agents?

The best way to structure linting error messages for AI agents is using a What's wrong, Why it matters, and How to fix template. This clear structure ensures both AI agents and junior developers can understand the issue and apply corrective actions consistently.

Why do my custom ESLint rule messages fail to help developers fix code?

Custom ESLint rule messages often fail because they lack the Why it matters and How to fix context. Without explaining the underlying principle and offering actionable remediation steps, errors become blockers rather than educational opportunities for developers.

Does lint-message support best practices for explaining why an ESLint rule exists?

Yes, lint-message supports best practices for explaining why an ESLint rule exists by emphasizing the underlying principle and specific bug prevention. It guides you to include the educational context that makes the error message a learning opportunity.