Use object literal shorthand
Open
Nobody has claimed this yet.
accepting PR
- Dominant language
- JavaScript
- Stars
- 4k
- Forks
- 1.9k
- Avg merge
- 7h 53m
- Merged PRs (30d)
- 1
Description
What information was incorrect, unhelpful, or incomplete?
After https://github.com/mdn/content/pull/39657, we need to use the shorthand syntax such as { salt } instead of { salt: salt }. We could simply run ESLint over the cod examples.
What did you expect to see?
Modern code
Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
No response
Contributor 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.
Research direction
No specific files or tests are named. Start by locating the code examples that contain object properties repeated as { salt: salt }, then run ESLint over the examples as suggested. Done means the applicable examples use object-literal shorthand and the lint check passes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- Half a day
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100