Skip to content

Commit 26a7075

Browse files
committed
Add a precommit task
1 parent 3c88b7d commit 26a7075

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
"description": "GitHub Actions Workflow Generator for MATLAB website",
55
"type": "module",
66
"scripts": {
7-
"lint": "eslint public/scripts/ --ext .js",
7+
"precommit": "npm run format && npm run lint && npm run test",
88
"format": "prettier --write .",
9+
"lint": "eslint public/scripts/ --ext .js",
910
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
1011
},
1112
"jest": {

0 commit comments

Comments
 (0)