4 comments (4 comments)6 reactions (6 reactions)0 assignees (0 assignees)JavaScript2,731 forks (2,731 forks)batch import
enhancementhelp wantedrule
Repository metrics
- Stars
- 9,293 stars (9,293 stars)
- PR merge metrics
- PR metrics pending (PR metrics pending)
Description
I'd like to enforce only one exported component per file, regardless of function vs class.
Contributor guide
- Research direction
- Examine the current no multi comp rule implementation in the ESLint plugin. Understand how components are counted. Add a new option to the rule schema to allow users to specify 'exported' only. Modify the rule logic to count only exported components when that option is enabled. Write tests for the new functionality and update the documentation.
- Tech stack
- javascriptreact
- Domain
- tooling
- Issue type
- Feature
- Prerequisites
- JavaScriptESLint