Skip to content

Commit fbc4b4e

Browse files
authored
🚚 Rename prettier scripts to format in package.json and CircleCI config (#760)
1 parent c8835c3 commit fbc4b4e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105
- restore-dependencies
106106
- run:
107107
name: Check format
108-
command: npm run prettier
108+
command: npm run format
109109

110110
lint:
111111
executor: node

bot-slack/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
"start": "node app.js",
99
"test": "jest",
1010
"coverage": "coverage app.js",
11-
"prettier": "prettier *.json *.js \"src/**/*.{js,jsx,ts,tsx}\"",
12-
"prettier:check": "npm run prettier -- --check",
13-
"prettier:write": "npm run prettier -- --write"
11+
"format": "prettier *.json *.js \"src/**/*.{js,jsx,ts,tsx}\"",
12+
"format:check": "npm run format -- --check",
13+
"format:write": "npm run format -- --write"
1414
},
1515
"dependencies": {
1616
"@slack/bolt": "^3.12.2",

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"start": "next start -p 8080",
1616
"start:local": "next start -p 3000",
1717
"start:e2e": "next start -p 3000",
18-
"prettier": "prettier --check '**/*.{json,js,jsx,ts,tsx,mjs}'",
19-
"prettier:write": "npm run prettier -- --write",
18+
"format": "prettier --check '**/*.{json,js,jsx,ts,tsx,mjs}'",
19+
"format:fix": "npm run format -- --write",
2020
"lint": "next lint",
2121
"lint:fix": "npm run lint -- --fix",
2222
"test:unit": "jest",

0 commit comments

Comments
 (0)