Skip to content

Commit f454530

Browse files
committed
Update package.json and main.yml for format:check script
1 parent a6b7e22 commit f454530

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- run: npm install --no-package-lock
2525

2626
- name: Check formatting
27-
run: npm run format:check
27+
run: npm run format
2828

2929
- name: Check syntax
3030
run: npm run lint

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"test": "jest $npm_package_directories_test --coverage",
3030
"lint": "eslint ./src",
3131
"lint:fix": "eslint ./src --fix",
32-
"format": "prettier --write ./src",
32+
"format:check": "prettier --check ./src",
33+
"format:write": "prettier --write ./src",
3334
"npm:publish:dry-run": "npm publish --dry-run",
3435
"npm:publish": "npm publish --access public",
3536
"typecheck": "tsc --noEmit -p tsconfig.json --composite false",

0 commit comments

Comments
 (0)