eslint-plugin-react-render-types
Enforce React component composition rules at lint time
All Skills in This Repository (5)
Pure Emerald Level Indicatorsweb-design-guidelines
Enforce Web Interface Guidelines compliance across UI code and design artifacts.
vercel-react-best-practices
Apply React and Next.js performance best practices to rendering, data fetching, and bundle size.
vercel-composition-patterns
Refactor React component libraries using compound components and context-driven composition.
react-render-types-composition
Enforce React component composition constraints with @renders type annotations in lint-time checks.
react-render-types-setup
Configure eslint-plugin-react-render-types with flat ESLint configs in TypeScript React projects.
Frequently Asked Questions
FAQPage SchemaHow 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โopenclaw
Run a personal AI assistant across your devices and chat apps
superpowers
Gives coding agents a disciplined workflow from idea to merged code
react
AI agent skills for building, testing, and porting React core