summary refs log tree commit diff stats
path: root/package.json
diff options
context:
space:
mode:
Diffstat (limited to 'package.json')
-rw-r--r--package.json9
1 files changed, 9 insertions, 0 deletions
diff --git a/package.json b/package.json
index 45ef027..c53c13c 100644
--- a/package.json
+++ b/package.json
@@ -6,15 +6,24 @@
   "repository": "https://git.alanpearce.eu/homestead",
   "author": "Alan Pearce <alan@alanpearce.eu>",
   "license": "MIT",
+  "lint-staged": {
+    "*.js": [
+      "prettier-standard",
+      "git add"
+    ]
+  },
   "scripts": {
     "dev:assist": "auto-install --yarn",
     "format": "prettier-standard 'src/**/*.js'",
+    "precommit": "lint-staged",
     "test": "ava '**/*.test.js'",
     "test:watch": "ava --watch '**/*.test.js'"
   },
   "devDependencies": {
     "auto-install": "^1.7.4",
     "ava": "^0.19.1",
+    "husky": "^0.13.4",
+    "lint-staged": "^3.6.1",
     "prettier-standard": "^5.1.0",
     "standard": "^10.0.2",
     "supertest": "^3.0.0"