eslint-plugin

Automate ESLint plugin and rule authoring with test-driven development.

Updated Apr 5, 2026
One-click install
npx skills add https://github.com/pohlai88/afenda-vite-react --skill eslint-plugin-pohlai88
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: eslint-plugin
Source: https://github.com/pohlai88/afenda-vite-react/tree/main/.agents/skills/eslint-plugin
Command: npx skills add https://github.com/pohlai88/afenda-vite-react --skill eslint-plugin-pohlai88

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Author custom ESLint plugins and rules with test-driven development, enabling reliable rule authoring and consistent linting across projects.

Core Features & Use Cases

  • Test-driven rule development: Write tests before implementing rules using @typescript-eslint/rule-tester.
  • Flexible config support: Works with flat ESLint configs (ESLint 9+) and legacy formats.
  • Comprehensive rule coverage: Supports problem, suggestion, and layout rules, including auto-fixers and type-aware rules.
  • Use case: Create a new lint rule for project conventions and publish as a plugin for team-wide enforcement.

Quick Start

Create a new ESLint rule with tests and integrate it into a plugin using the flat config pattern.

Frequently Asked Questions about eslint-plugin

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

FAQPage Schema
How do I write custom ESLint rules with test-driven development?▼

To write custom ESLint rules with test-driven development, you write tests first using @typescript-eslint/rule-tester, then implement the rule logic to pass those tests. This approach ensures reliable rule authoring and consistent linting across projects.

Can I use ESLint flat config format when authoring custom lint plugins?▼

Yes, you can use ESLint flat config format when authoring custom lint plugins. The workflow fully supports flat configs for ESLint 9+ alongside legacy formats, ensuring cross-version compatibility for your published rules.

Does this ESLint plugin authoring workflow support TypeScript type-aware rules?▼

Yes, this ESLint plugin authoring workflow supports TypeScript type-aware rules. It handles problem, suggestion, and layout rules, including auto-fixers, by leveraging @typescript-eslint/rule-tester for comprehensive rule coverage in JavaScript and TypeScript codebases.

What is the best way to create an ESLint plugin for team-wide project conventions?▼

The best way to create an ESLint plugin for team-wide conventions is to author custom rules with test-driven development, validate them using @typescript-eslint/rule-tester, and package them as a reusable plugin for consistent enforcement across projects.

How do I test ESLint rules before publishing a plugin?▼

You test ESLint rules before publishing by leveraging @typescript-eslint/rule-tester to validate problem, suggestion, and layout rules. This test-driven workflow ensures your auto-fixers and type-aware rules function reliably across legacy and flat config formats.