microsoft / microsoft/beachball
Allow changes to amount of spaces for formatting package.json
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 815
- Forks
- 93
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 12
Description
We are using beachball, and our team uses 4 spaces instead of 2 spaces for formatting our package.json files.
When Beachball bump runs, it adjusts this to a hardcoded amount of spaces (2):
https://github.com/microsoft/beachball/blob/4d865c83ce4634c8e455268f10f3d8cc950872fd/packages/beachball/src/bump/performBump.ts#L29
Could we allow this to be user-configured?
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
Start at packages/beachball/src/bump/performBump.ts line 29 and trace how bump options are configured. Add a user-configurable package.json indentation setting while preserving the current two-space default; done means Beachball can format with four spaces when configured.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- release
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100