lint-new
Installation
SKILL.md
Create a new ESLint rule named $ARGUMENTS in the eslintPluginScraps plugin.
Step 1: Choose Your Archetype
Read references/rule-archetypes.md and pick the archetype that matches your rule's intent:
| You want to... | Archetype | Reference to load |
|---|---|---|
| Rewrite import paths | Import rewrite | Inline — simple pattern |
| Validate token/value usage per CSS property | Property validation | style-collector-guide.md |
| Restrict JSX elements in specific props | JSX structural | rule-archetypes.md §Archetype 3 |
| Detect patterns in static CSS text | Template text analysis | rule-archetypes.md §Archetype 4 |
Read the relevant reference before writing code. The archetypes document which AST visitors to use, which shared utilities apply, and which patterns are NOT appropriate for each approach.
Step 2: Check Shared Utilities
Before writing AST traversal logic, check static/eslint/eslintPluginScraps/src/ast/ for reusable code: