`keep-sorted` for subset of object keys
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- tooling
Research direction
Start by locating the keep-sorted handling in the repository and reproduce the reported error using the object example and the command/command path. Done means a keep-sorted comment can apply to one group of object keys independently while other groups remain separate, without the unable-to-find error.
Written by the indexing model from the issue text.
Description
Clear and concise description of the problem
For example, suppose you have:
const object = {
// Group of entries
b: true,
c: true,
a: true,
// Other group of entries
z: true,
x: true,
y: true,
}
It would be nice if I could add keep-sorted above a group of entries to sort them separately. Right now adding the comment above one of the groups results in:
[keep-sorted] error: Unable to find object/array/interface to sort command/command
Suggested solution
Allow keep-sorted above a group of entries
Alternative
No response
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
- Dominant language
- TypeScript
- Stars
- 372
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from antfu/eslint-plugin-command
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
antfu/eslint-plugin-command#45 · 2 comments · 2 reactions ·
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
antfu/eslint-plugin-command#33 · 1 reaction ·
-
help wanted
Difficulty 3/5 1-2 days Newbie friendliness 35/100
antfu/eslint-plugin-command#26 · 3 comments ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
antfu/eslint-plugin-command#17 · 2 comments ·
All issues in antfu/eslint-plugin-command
Similar issues
-
triage
Difficulty 1/5 Under an hour Newbie friendliness 64/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
ranxianglei/billion-context#7860 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
-
agent-oc-find-bugs api complexity → simple payment-methods recurring contributions reviewed stripe
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
opencollective/opencollective#9177 ·