Skip to content

Commit 4056ea7

Browse files
committed
Rename prettier command to format
1 parent 00f3bf5 commit 4056ea7

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ jobs:
8080
- name: Run type checking
8181
run: yarn tsc
8282

83-
prettier:
84-
name: Prettier
83+
format:
84+
name: Formatting
8585
runs-on: ubuntu-latest
8686

8787
steps:
@@ -109,8 +109,8 @@ jobs:
109109
- name: Install dependencies
110110
run: yarn --immutable
111111

112-
- name: Prettier
113-
run: yarn prettier
112+
- name: Run formatting
113+
run: yarn format
114114

115115
unit:
116116
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"scripts": {
1111
"build": "yarn workspace react-date-picker build",
1212
"dev": "yarn workspace react-date-picker watch & yarn workspace test dev",
13+
"format": "yarn workspaces foreach --all run format",
1314
"lint": "yarn workspaces foreach --all run lint",
1415
"postinstall": "husky",
15-
"prettier": "yarn workspaces foreach --all run prettier",
1616
"test": "yarn workspaces foreach --all run test",
1717
"tsc": "yarn workspaces foreach --all run tsc",
1818
"unit": "yarn workspaces foreach --all run unit"

packages/react-date-picker/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@
8585
"build-js-cjs-package": "echo '{\n \"type\": \"commonjs\"\n}' > dist/cjs/package.json",
8686
"clean": "rimraf dist",
8787
"copy-styles": "cpy 'src/**/*.css' dist",
88+
"format": "prettier --check . --cache",
8889
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
8990
"prepack": "yarn clean && yarn build",
90-
"prettier": "prettier --check . --cache",
91-
"test": "yarn lint && yarn tsc && yarn prettier && yarn unit",
91+
"test": "yarn lint && yarn tsc && yarn format && yarn unit",
9292
"tsc": "tsc",
9393
"unit": "vitest",
9494
"watch": "yarn build-js-esm --watch & yarn build-js-cjs --watch & nodemon --watch src --ext css --exec \"yarn copy-styles\""

test/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
"scripts": {
88
"build": "vite build",
99
"dev": "vite",
10-
"preview": "vite preview",
10+
"format": "prettier --check . --cache",
1111
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
12-
"prettier": "prettier --check . --cache",
13-
"test": "yarn lint && yarn tsc && yarn prettier",
12+
"preview": "vite preview",
13+
"test": "yarn lint && yarn tsc && yarn format",
1414
"tsc": "tsc"
1515
},
1616
"author": {

0 commit comments

Comments
 (0)