Skip to content

Commit 883d21f

Browse files
authored
chore: rename pretty to format (@Miodec) (monkeytypegame#7183)
In preparation for switching to oxfmt
1 parent 2fcc86d commit 883d21f

File tree

4 files changed

+23
-23
lines changed

4 files changed

+23
-23
lines changed

.github/workflows/pretty-fix.yml renamed to .github/workflows/fix-formatting.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Prettier Fix
1+
name: Fix formatting
22

33
env:
44
PNPM_VERSION: "9.6.0"
@@ -13,9 +13,9 @@ on:
1313
types: [labeled]
1414

1515
jobs:
16-
prettify:
16+
format:
1717
runs-on: ubuntu-latest
18-
if: github.event.label.name == 'prettify'
18+
if: github.event.label.name == 'format'
1919
steps:
2020
- name: Checkout code
2121
uses: actions/checkout@v4
@@ -33,8 +33,8 @@ jobs:
3333
with:
3434
version: ${{ env.PNPM_VERSION }}
3535

36-
- name: Install prettier
37-
run: pnpm add -g prettier@3.6.2
36+
- name: Install formatter
37+
run: pnpm install -D -w prettier
3838

3939
- name: Get changed files
4040
id: get-changed-files
@@ -52,7 +52,7 @@ jobs:
5252
return changedFiles.filter(file=> file.status !== "removed").map(file => file.filename).join(' ');
5353
5454
55-
- name: Run Prettier fix
55+
- name: Fix formatting
5656
run: |
5757
CHANGED_FILES=$(echo ${{ steps.get-changed-files.outputs.result }})
5858
if [ -n "$CHANGED_FILES" ]; then
@@ -62,9 +62,9 @@ jobs:
6262
- name: Commit changes
6363
uses: stefanzweifel/git-auto-commit-action@v5
6464
with:
65-
commit_message: "prettier fix"
65+
commit_message: "fix formatting"
6666

6767
- name: Remove label
6868
uses: actions-ecosystem/action-remove-labels@v1
6969
with:
70-
labels: prettify
70+
labels: format

.github/workflows/pretty-check.yml renamed to .github/workflows/formatting-check.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Prettier Check
1+
name: Formatting check
22

33
env:
44
PNPM_VERSION: "9.6.0"
@@ -13,7 +13,7 @@ permissions:
1313
contents: read
1414

1515
concurrency:
16-
group: group-pretty-check-${{ github.ref }}-${{ github.workflow }}
16+
group: group-format-check-${{ github.ref }}-${{ github.workflow }}
1717
cancel-in-progress: true
1818

1919
jobs:
@@ -35,7 +35,7 @@ jobs:
3535
with:
3636
version: ${{ env.PNPM_VERSION }}
3737

38-
- name: Install Prettier deps only
38+
- name: Install formatter
3939
run: pnpm install -D -w prettier
4040

4141

@@ -54,7 +54,7 @@ jobs:
5454
);
5555
return changedFiles.filter(file=> file.status !== "removed").map(file => file.filename).join(' ');
5656
57-
- name: Check pretty (changed files)
57+
- name: Check formatting (changed files)
5858
run: |
5959
CHANGED_FILES=$(echo ${{ steps.get-changed-files.outputs.result }})
6060
if [ -n "$CHANGED_FILES" ]; then

docs/CONTRIBUTING_ADVANCED.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ If you are on a UNIX system and you get a spawn error, run npm with `sudo`.
153153

154154
## Standards and Guidelines
155155

156-
Code style is enforced by [Prettier](https://prettier.io/docs/en/install.html), which automatically runs every time you make a commit.
156+
Code formatting is enforced by [Prettier](https://prettier.io/docs/en/install.html), which automatically runs every time you make a commit.
157157

158158
For guidelines on commit messages, adding themes, languages, or quotes, please refer to [CONTRIBUTING.md](./CONTRIBUTING.md). Following these guidelines will increase the chances of getting your change accepted.
159159

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,16 @@
4343
"hotfix-fe": "monkeytype-release --hotfix --fe",
4444
"hotfix-be": "monkeytype-release --hotfix --be",
4545
"hotfix-dry": "monkeytype-release --hotfix --dry",
46-
"pretty-check": "prettier --check .",
47-
"pretty-check-be": "prettier --check ./backend",
48-
"pretty-check-fe": "prettier --check ./frontend/src",
49-
"pretty-check-assets": "prettier --check ./frontend/static",
50-
"pretty-check-pkg": "prettier --check ./packages",
51-
"pretty-fix": "prettier --write .",
52-
"pretty-fix-be": "prettier --write ./backend",
53-
"pretty-fix-fe": "prettier --write ./frontend/src",
54-
"pretty-fix-assets": "prettier --write ./frontend/static",
55-
"pretty-fix-pkg": "prettier --write ./packages",
46+
"format-check": "prettier --check .",
47+
"format-check-be": "prettier --check ./backend",
48+
"format-check-fe": "prettier --check ./frontend/src",
49+
"format-check-assets": "prettier --check ./frontend/static",
50+
"format-check-pkg": "prettier --check ./packages",
51+
"format-fix": "prettier --write .",
52+
"format-fix-be": "prettier --write ./backend",
53+
"format-fix-fe": "prettier --write ./frontend/src",
54+
"format-fix-assets": "prettier --write ./frontend/static",
55+
"format-fix-pkg": "prettier --write ./packages",
5656
"lint-json-assets": "cd frontend && eslint \"./static/**/*.json\"",
5757
"check-assets": "turbo check-assets --filter @monkeytype/frontend",
5858
"check-assets-quotes": "turbo check-assets --filter @monkeytype/frontend -- quotes",

0 commit comments

Comments
 (0)