4 comments (4 comments)6 reactions (6 reactions)0 assignees (0 assignees)JavaScript2,734 forks (2,734 forks)batch import
enhancementhelp wantedrule
Repository metrics
- Stars
- 9,294 stars (9,294 stars)
- PR merge metrics
- No merged PRs in 30d (No merged PRs in 30d)
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