Skip to content

Commit c18a34d

Browse files
committed
Add git pre-push linter hook
1 parent 33ee442 commit c18a34d

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

package.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "module-alias",
33
"description": "Create aliases of directories and register custom module paths",
4-
"version": "2.2.0",
4+
"version": "2.2.1",
55
"author": {
66
"name": "Nick Gavrilov",
77
"email": "artnikpro@gmail.com"
@@ -10,7 +10,8 @@
1010
"test": "npm run lint && npm run testonly",
1111
"testonly": "NODE_ENV=test mocha test/specs.js",
1212
"testonly-watch": "NODE_ENV=test mocha -w test/specs.js",
13-
"lint": "standard"
13+
"lint": "standard",
14+
"lint-test": "npm run lint && npm run test"
1415
},
1516
"bugs": {
1617
"url": "https://github.com/ilearnio/module-alias/issues"
@@ -38,8 +39,14 @@
3839
"devDependencies": {
3940
"chai": "^3.5.0",
4041
"hello-world-classic": "ilearnio/hello-world-classic",
42+
"husky": "^3.0.2",
4143
"mocha": "^2.4.5",
4244
"semver": "^6.1.1",
4345
"standard": "^12.0.1"
46+
},
47+
"husky": {
48+
"hooks": {
49+
"pre-push": "yarn lint-test"
50+
}
4451
}
4552
}

0 commit comments

Comments
 (0)