From 2769f4c2e0056fd99f5f7d4113c1b05dcb21f0c3 Mon Sep 17 00:00:00 2001 From: Bryan Date: Thu, 6 Jan 2022 13:02:05 -0800 Subject: [PATCH] chore: Formatting - bring .prettierrc over from cdr/m (#9) This brings over the same `.prettierrc` we used in `cdr/m`, and runs the formatter w/ the new settings --- .github/workflows/coder.yaml | 5 +++-- .prettierrc | 14 ++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 .prettierrc diff --git a/.github/workflows/coder.yaml b/.github/workflows/coder.yaml index 7ddc3f366a..c3f61e7104 100644 --- a/.github/workflows/coder.yaml +++ b/.github/workflows/coder.yaml @@ -93,8 +93,9 @@ jobs: - run: go install gotest.tools/gotestsum@latest - # Windows is not happy with backslashed commands. - - run: gotestsum --jsonfile="gotests.json" --packages="./..." -- -covermode=atomic -coverprofile="gotests.coverage" + - run: + gotestsum --jsonfile="gotests.json" --packages="./..." -- + -covermode=atomic -coverprofile="gotests.coverage" - uses: codecov/codecov-action@v2 with: diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000000..8d35cecf3c --- /dev/null +++ b/.prettierrc @@ -0,0 +1,14 @@ +{ + "printWidth": 120, + "semi": false, + "trailingComma": "all", + "overrides": [ + { + "files": ["./README.md", "**/*.yaml", "**/*.yml"], + "options": { + "printWidth": 80, + "proseWrap": "always" + } + } + ] +} \ No newline at end of file