Skip to content

Commit

Permalink
chore: use prettier everywhere
Browse files Browse the repository at this point in the history
To simplify the usage of prettier, use it on all files.

Also ran it on all existing files to ensure linting passes.
  • Loading branch information
toumorokoshi committed Nov 19, 2023
1 parent 8b3beae commit f099cf0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-publish-protos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
with:
buf_token: ${{ secrets.BUF_TOKEN }}
input: common-components/proto
draft: ${{ github.ref_name != 'main'}}
draft: ${{ github.ref_name != 'main'}}
4 changes: 2 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
4 changes: 2 additions & 2 deletions common-components/json_schema/decimal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ description: |
as well as that of a `decimal64`.
type: object
required:
- significand
- exponent
- significand
- exponent
additionalProperties: false
properties:
significand:
Expand Down
4 changes: 2 additions & 2 deletions common-components/json_schema/money.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion common-components/proto/buf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ lint:
- DEFAULT
except:
- PACKAGE_VERSION_SUFFIX
enum_zero_value_suffix: _UNSPECIFIED
enum_zero_value_suffix: _UNSPECIFIED

0 comments on commit f099cf0

Please sign in to comment.