HorusGoulHorusGoulCommunityยท5 Agent Skills Included

eslint-plugin-react-render-types

Enforce React component composition rules at lint time

Enforces which React components can render inside others using simple @renders JSDoc annotations, checked automatically at lint time. Catches wrong children, invalid slot props, and broken design system rules before code ships, without manual code review. Includes setup, composition patterns, and IDE integration so teams adopt typed component constraints quickly.
npx skills add HorusGoul/eslint-plugin-react-render-types --all -g -y
Available:

Gives your AI agent the project architecture, build and test commands, and workflow rules it needs to correctly develop and validate changes to this ESLint plugin.

All Skills in This Repository (5)

Pure Emerald Level Indicators

Frequently Asked Questions

FAQPage Schema
How to install eslint-plugin-react-render-types?โ–ผ

Run `npx skills add HorusGoul/eslint-plugin-react-render-types --all -g -y` in your terminal to install all skills in this suite globally.

What does eslint-plugin-react-render-types do?โ–ผ

It brings Flow-style Render Types to TypeScript through @renders JSDoc annotations, so ESLint errors when a component renders the wrong child, such as a Button inside a Menu that only accepts MenuItem.

How do I restrict which components a React component accepts?โ–ผ

Add an @renders annotation like `/** @renders {MenuItem} */` to the component or prop, and the plugin validates every usage at lint time, including cross-file cases.

Does it require special ESLint configuration?โ–ผ

Yes, it requires typed linting with `projectService: true` in your flat config so the plugin can use TypeScript's type checker for cross-file component resolution.

Does it work with AI coding assistants?โ–ผ

Yes. The included skills teach your AI agent the setup steps and composition patterns, and the IDE language service plugin adds go-to-definition, hover, and rename support for @renders annotations.

Related Repositories in Software Engineering

View All in Software Engineeringโ†’