Browse Source

Adds precommit-hook as an npm dependency. Automatically runs jshint before a commit.

j8
Boris Grozev 9 years ago
parent
commit
a4c844f169
1 changed files with 8 additions and 3 deletions
  1. 8
    3
      package.json

+ 8
- 3
package.json View File

@@ -25,9 +25,14 @@
25 25
       "async": "0.9.0",
26 26
       "retry": "0.6.1",
27 27
       "jssha": "1.5.0",
28
-      "socket.io-client": "1.3.6"
28
+      "socket.io-client": "1.3.6",
29
+      "jshint": "2.8.0",
30
+      "precommit-hook": "3.0.0"
29 31
   },
30
-  "devDependencies": {
32
+  "devDependencies": {},
33
+  "license": "Apache",
34
+  "scripts": {
35
+    "lint": "jshint ."
31 36
   },
32
-  "license": "Apache"
37
+  "pre-commit": ["lint"]
33 38
 }

Loading…
Cancel
Save