Skip to content

Commit 9df42cd

Browse files
committed
Add pre-commit to lint source code before commit
1 parent 452ea99 commit 9df42cd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
"less-loader": "^2.2.3",
6161
"mocha": "^3.0.2",
6262
"phantomjs-prebuilt": "^2.1.7",
63+
"pre-commit": "^1.2.2",
6364
"style-loader": "^0.13.1",
6465
"url-loader": "^0.5.7",
6566
"vue": "^2.1.7",
@@ -74,5 +75,8 @@
7475
"peerDependencies": {
7576
"vue": "^2.1.7"
7677
},
77-
"license": "MIT"
78+
"license": "MIT",
79+
"pre-commit": [
80+
"lint"
81+
]
7882
}

0 commit comments

Comments
 (0)