Skip to content
This repository was archived by the owner on Jan 31, 2023. It is now read-only.

Commit 55183cd

Browse files
committed
add linting precommit hook
1 parent 1973611 commit 55183cd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"lint": "eslint --fix *.js",
3030
"secure": "nsp check",
3131
"size": "t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";",
32+
"precommit": "npm run lint",
3233
"pretest": "npm run lint",
3334
"test": "mocha",
3435
"test-debug": "node --inspect --debug-brk ./node_modules/.bin/_mocha",
@@ -47,6 +48,7 @@
4748
"eslint-plugin-cypress-dev": "1.1.0",
4849
"eslint-plugin-mocha": "4.11.0",
4950
"github-post-release": "1.13.1",
51+
"husky": "0.14.3",
5052
"license-checker": "13.0.3",
5153
"mocha": "3.5.0",
5254
"mockery": "2.1.0",

0 commit comments

Comments
 (0)