← Back to Coding and Programming
šŸ’» Coding and Programming ChatGPT beginner

Act as a Senior JavaScript Developer with 5+ years of experience writing custom ESLint rules

šŸ“‹ The Prompt — Copy & Paste Ready
Explain step-by-step how to write a custom ESLint rule for [PROJECT_TYPE] that enforces [SPECIFIC_CODE_STYLE_OR_PATTERN]. Include details on: 1. Setting up the ESLint plugin structure 2. Writing the rule logic using [AST_TYPE] (Abstract Syntax Tree) traversal 3. Testing the rule with [TESTING_LIBRARY] 4. Integrating it into an existing [BUILD_TOOL] workflow Provide code examples for a rule that catches [COMMON_MISTAKE_OR_ANTI_PATTERN] in [FRAMEWORK_OR_LIBRARY] projects, with configuration options for [SEVERITY_LEVEL] and [CUSTOM_OPTIONS].

How to use this prompt

1
Click Copy Full Prompt above.
2
Replace all [BRACKETS] with your details.
3
Paste into ChatGPT, Claude or Gemini and hit send.

Rate this prompt

ā˜… ā˜… ā˜… ā˜… ā˜…
Tap a star to rate

Comments (0)

Frequently Asked Questions

Custom ESLint rules help enforce team-specific coding standards, reducing bugs and improving code consistency. They also streamline code reviews by automating style and pattern checks, saving development time.
Custom rules catch project-specific anti-patterns early, ensuring maintainable and scalable code. They also help onboard new developers by enforcing best practices automatically.
Custom rules are great for enforcing naming conventions, preventing deprecated API usage, or restricting unsafe patterns. They can also validate architectural decisions like module boundaries or state management practices.
With 5+ years of JavaScript experience, writing basic rules is straightforward using AST patterns. Complex rules require deeper AST knowledge but offer powerful ways to enforce advanced coding standards.
Yes, custom rules work seamlessly with frameworks by analyzing JSX, template syntax, or framework-specific patterns. They can enforce React hook dependencies or Vue prop validation automatically.
Related Keywords
act as a senior javascript developer with 5+ years of experience writing custom eslint rules, free coding and programming prompts, coding and programming chatgpt prompts, ai prompts for coding and programming, coding and programming prompt template, chatgpt coding and programming 2026, best coding and programming ai prompts, act as a senior javascript developer with 5+ years of experience writing custom eslint rules chatgpt, coding and programming claude prompts, free ai prompt coding and programming, coding and programming prompt generator, coding and programming ai assistant, promptxy coding and programming
āœ“ Prompt copied!