Skip to content

Commit 5444270

Browse files
committed
Rename prettier command to format
1 parent 353dd77 commit 5444270

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
@@ -74,8 +74,8 @@ jobs:
7474
- name: Run type checking
7575
run: yarn tsc
7676

77-
prettier:
78-
name: Prettier
77+
format:
78+
name: Formatting
7979
runs-on: ubuntu-latest
8080

8181
steps:
@@ -103,8 +103,8 @@ jobs:
103103
- name: Install dependencies
104104
run: yarn --immutable
105105

106-
- name: Prettier
107-
run: yarn prettier
106+
- name: Run formatting
107+
run: yarn format
108108

109109
unit:
110110
name: Unit tests

.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
@@ -18,11 +18,11 @@
1818
"build-cjs": "tsc --project tsconfig.build.json --outDir dist/cjs --module commonjs --moduleResolution node --verbatimModuleSyntax false",
1919
"build-cjs-package": "echo '{\n \"type\": \"commonjs\"\n}' > dist/cjs/package.json",
2020
"clean": "rimraf dist",
21+
"format": "prettier --check . --cache",
2122
"lint": "eslint .",
2223
"postinstall": "husky",
2324
"prepack": "yarn clean && yarn build",
24-
"prettier": "prettier --check . --cache",
25-
"test": "yarn lint && yarn tsc && yarn prettier && yarn unit",
25+
"test": "yarn lint && yarn tsc && yarn format && yarn unit",
2626
"tsc": "tsc",
2727
"unit": "vitest --typecheck"
2828
},

0 commit comments

Comments
 (0)