eslint-custom

Automate creation and publishing of custom ESLint rules and plugins.

187|20|Updated Nov 20, 2025
One-click install
npx skills add https://github.com/TheBushidoCollective/han --skill eslint-custom
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: eslint-custom
Source: https://github.com/TheBushidoCollective/han/tree/main/jutsu/jutsu-eslint/skills/eslint-custom
Command: npx skills add https://github.com/TheBushidoCollective/han --skill eslint-custom

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides comprehensive guidance for building custom ESLint rules and plugins to enforce coding standards and best practices in JavaScript/TypeScript projects.

Core Features & Use Cases

  • Rule Development: Create and publish custom ESLint rules.
  • AST Traversal: Learn techniques to walk the AST and identify patterns.
  • Integration & Publishing: Prepare rules for distribution via npm.

Quick Start

Implement a simple rule that flags console.log usage and publish it as an ESLint plugin.

Frequently Asked Questions about eslint-custom

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

FAQPage Schema
How do I create a custom ESLint rule for my JavaScript project?

Custom ESLint rules are created by writing rule modules that traverse the AST to detect code patterns, then registering them in a plugin. Define a rule object with metadata and a create function that uses visitors to inspect nodes and report violations matching your coding standards.

What is AST traversal and why do I need it for ESLint plugins?

AST traversal walks the Abstract Syntax Tree—a parsed representation of your code—to identify specific patterns. ESLint uses it to inspect nodes like function declarations or variable assignments, enabling custom rules to enforce patterns beyond built-in linters.

Can I publish my custom ESLint rules to npm?

Yes, custom ESLint rules can be packaged as npm plugins with proper configuration and published to the npm registry. Publishing requires setting up your rule templates, test scaffolding, and CI/CD integration to distribute your plugin for team or community use.

Do I need to know AST structure to write ESLint rules?

Understanding AST node types and visitor patterns is essential for writing effective rules. You need to know which nodes represent your target code patterns—like Identifier, FunctionDeclaration, or CallExpression—to properly traverse and inspect them.

How do I integrate custom ESLint rules into my CI/CD pipeline?

Integrate custom rules by configuring your ESLint setup in CI/CD to load your plugin, then run eslint as a build step to enforce rules automatically. This enables consistent linting across pull requests and deployments before code reaches production.

What's the best way to test custom ESLint rules before publishing?

Test scaffolding involves writing test cases that validate rule behavior against both valid and invalid code patterns. ESLint provides testing utilities to verify rules report violations correctly and generate accurate fix suggestions before npm publication.