From db81ce05873515af587a090baf3a0978db23a42f Mon Sep 17 00:00:00 2001 From: Yusuke Tsutsumi Date: Mon, 20 Nov 2023 10:16:30 -0800 Subject: [PATCH] chore: use prettier everywhere (#75) To simplify the usage of prettier, use it on all files. Also ran it on all existing files to ensure linting passes. --- .github/workflows/build-and-publish-protos.yaml | 2 +- .github/workflows/lint.yaml | 4 ++-- common-components/json_schema/decimal.yaml | 4 ++-- common-components/json_schema/money.yaml | 4 ++-- common-components/proto/buf.yaml | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-and-publish-protos.yaml b/.github/workflows/build-and-publish-protos.yaml index f60b0c47..1650528c 100644 --- a/.github/workflows/build-and-publish-protos.yaml +++ b/.github/workflows/build-and-publish-protos.yaml @@ -19,4 +19,4 @@ jobs: with: buf_token: ${{ secrets.BUF_TOKEN }} input: common-components/proto - draft: ${{ github.ref_name != 'main'}} \ No newline at end of file + draft: ${{ github.ref_name != 'main'}} diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 653e9a9f..9b12eaf2 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -11,6 +11,6 @@ jobs: steps: - uses: actions/checkout@v3 - name: Install prettier. - run: npm install --global prettier + run: npm install --global prettier@3.0.3 - name: Verify proper formatting. - run: prettier --check **/*.md **/*.md.j2 + run: prettier --check . diff --git a/common-components/json_schema/decimal.yaml b/common-components/json_schema/decimal.yaml index 0cb7ab4a..2e66c33b 100644 --- a/common-components/json_schema/decimal.yaml +++ b/common-components/json_schema/decimal.yaml @@ -14,8 +14,8 @@ description: | as well as that of a `decimal64`. type: object required: -- significand -- exponent + - significand + - exponent additionalProperties: false properties: significand: diff --git a/common-components/json_schema/money.yaml b/common-components/json_schema/money.yaml index b49bf425..af9ab16c 100644 --- a/common-components/json_schema/money.yaml +++ b/common-components/json_schema/money.yaml @@ -11,8 +11,8 @@ description: | `{"currency_code": "X-BTC", "quantity": {"significand": 15, "exponent": -1}}` type: object required: -- currency_code -- quantity + - currency_code + - quantity additionalProperties: false properties: currency_code: diff --git a/common-components/proto/buf.yaml b/common-components/proto/buf.yaml index f973afb1..fe1314ea 100644 --- a/common-components/proto/buf.yaml +++ b/common-components/proto/buf.yaml @@ -8,4 +8,4 @@ lint: - DEFAULT except: - PACKAGE_VERSION_SUFFIX - enum_zero_value_suffix: _UNSPECIFIED \ No newline at end of file + enum_zero_value_suffix: _UNSPECIFIED