From e1bef9699b04a278641d72895c1ae13e35b82cd9 Mon Sep 17 00:00:00 2001 From: Otto Allmendinger Date: Wed, 28 Jun 2023 13:12:41 +0200 Subject: [PATCH] chore(bitgo): add .prettierrc.yml 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 --hard HEAD~ yarn prettier --write . git diff origin/BTC-0.prettier-bitgo # should be empty ``` Issue: BTC-0 --- modules/bitgo/.prettierignore | 3 ++- modules/bitgo/.prettierrc.yml | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 modules/bitgo/.prettierrc.yml diff --git a/modules/bitgo/.prettierignore b/modules/bitgo/.prettierignore index 41d0170217..e0f3d4c359 100644 --- a/modules/bitgo/.prettierignore +++ b/modules/bitgo/.prettierignore @@ -1,3 +1,4 @@ *.json *.yml -CHANGELOG.md \ No newline at end of file +CHANGELOG.md +dist/ diff --git a/modules/bitgo/.prettierrc.yml b/modules/bitgo/.prettierrc.yml new file mode 100644 index 0000000000..7c3d8dd32a --- /dev/null +++ b/modules/bitgo/.prettierrc.yml @@ -0,0 +1,3 @@ +printWidth: 120 +singleQuote: true +trailingComma: 'es5'