Browse Source

add gofmt as precommit hook

bergquist 8 years ago
parent
commit
734a2e59aa
1 changed files with 4 additions and 0 deletions
  1. 4 0
      package.json

+ 4 - 0
package.json

@@ -115,6 +115,10 @@
     "*.scss": [
       "prettier --write",
       "git add"
+    ],
+    "*.go": [
+      "gofmt -w -s",
+      "git add"
     ]
   },
   "prettier": {