Skip to content

Commit fd6c6c8

Browse files
committed
Rename prettier command to format
1 parent 8a23a9c commit fd6c6c8

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ jobs:
7777
- name: Run type checking
7878
run: yarn tsc
7979

80-
prettier:
81-
name: Prettier
80+
format:
81+
name: Formatting
8282
runs-on: ubuntu-latest
8383

8484
steps:
@@ -106,5 +106,5 @@ jobs:
106106
- name: Install dependencies
107107
run: yarn --immutable
108108

109-
- name: Prettier
110-
run: yarn prettier
109+
- name: Run formatting
110+
run: yarn format

.lintstagedrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"*.{css,html,js,json,jsx,md,ts,tsx,yml}": "prettier --write"
2+
"*.{css,html,js,json,jsx,md,ts,tsx,yml}": "yarn format --write"
33
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
"scripts": {
77
"build": "vite build",
88
"dev": "vite serve",
9+
"format": "prettier --check . --cache",
910
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
1011
"postinstall": "husky",
11-
"prettier": "prettier --check . --cache",
1212
"preview": "vite preview",
13-
"test": "yarn lint && yarn tsc && yarn prettier",
13+
"test": "yarn lint && yarn tsc && yarn format",
1414
"tsc": "tsc"
1515
},
1616
"author": {

0 commit comments

Comments
 (0)