Skip to content

Commit

Permalink
chore(bitgo): add .prettierrc.yml
Browse files Browse the repository at this point in the history
The toplevel `.prettierrc.yml` has `requirePragma: true` which means it
does not apply to most of the files in the bitgo module.

I have seen multiple PRs with incidental formatting changes, probably because
the IDE does not pick up the `.prettierrc.yml` in the bitgo module.

This PR adds a `.prettierrc.yml` to the bitgo module but does do the
reformatting yet. That will be in the next PR.

To verify the changes, check out the PR and run these instructions

```
git checkout BTC-0.prettier-bitgo
git reset HEAD^
yarn prettier --write .
git diff origin/BTC-0.prettier-bitgo # should be empty
```

Issue: BTC-0
  • Loading branch information
OttoAllmendinger committed Jun 28, 2023
1 parent 18f1c89 commit 1eb9c23
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/bitgo/.prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.json
*.yml
CHANGELOG.md
CHANGELOG.md
dist/
3 changes: 3 additions & 0 deletions modules/bitgo/.prettierrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
printWidth: 120
singleQuote: true
trailingComma: 'es5'

0 comments on commit 1eb9c23

Please sign in to comment.