Sfoglia il codice sorgente

chore: added pre-commit hook for linting

Signed-off-by: Sebastian Haas <sebastian@haas.tech>
Sebastian Haas 8 anni fa
parent
commit
23926ac776
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      package.json

+ 4 - 0
package.json

@@ -11,6 +11,9 @@
     "postinstall": "grunt typings",
     "prepublish": "grunt build:dist"
   },
+  "pre-commit": [
+    "lint"
+  ],
   "files": [
     "dist",
     "AUTHORS",
@@ -77,6 +80,7 @@
     "karma-xml2js-preprocessor": "^0.0.3",
     "mocha": "^3.0.1",
     "phantomjs-prebuilt": "^2.1.8",
+    "pre-commit": "^1.2.2",
     "tsify": "^3.0.0",
     "tslint": "^5.0.0",
     "typedoc": "^0.5.7",