8 comments (8 comments)1 reaction (1 reaction)0 assignees (0 assignees)JavaScript8,630 stars (8,630 stars)2,797 forks (2,797 forks)batch import
enhancementhelp wanted
Description
Add same sorting behaviour to sort-default-props as to sort-props
Contributor guide
- Tech stack
- javascriptreact
- Domain
- toolingdeveloper experience
- Issue type
- feature
- DifficultyEstimated implementation difficulty for a new contributor, from 1 for very small changes to 5 for expert-level work.
- 3
- Estimated timeA rough time range for an experienced contributor to investigate, implement, test, and prepare a pull request.
- 1-2 days
- Activity statusHow available the issue appears right now: fresh, active, stale, blocked, or waiting on maintainer input.
- stale
- ClarityHow clearly the issue explains the expected change, acceptance criteria, and next step.
- clear
- Prerequisites
- Basic understanding of ESLint rule structureFamiliarity with AST traversalExperience with autofix implementation
- Newbie friendlinessA 1-100 score estimating how approachable this issue is for first-time contributors.
- 65
- Research direction
- Examine the existing 'sort props' rule implementation to understand the autofix pattern. The 'sort default props' rule currently lacks autofix; replicate the logic from 'sort props' adjusting for default props. Check the repository's rule files (e.g., `lib/rules/sort default props.js` and `lib/rules/sort props.js`) and any related tests to ensure consistency. Look through the issue comments for any suggested approaches or constraints.