8
0
Kamil Piechaczek 7 лет назад
Родитель
Сommit
3c0e806e63
1 измененных файлов с 6 добавлено и 2 удалено
  1. 6 2
      package.json

+ 6 - 2
package.json

@@ -74,7 +74,7 @@
     "eslint": "^5.5.0",
     "eslint-config-ckeditor5": "^1.0.9",
     "glob": "^7.1.2",
-    "husky": "^0.14.3",
+    "husky": "^1.3.1",
     "lint-staged": "^7.0.0",
     "mgit2": "^0.10.0",
     "mini-css-extract-plugin": "^0.4.0",
@@ -101,7 +101,6 @@
   },
   "scripts": {
     "lint": "eslint --quiet '**/*.js'",
-    "precommit": "lint-staged",
     "test": "node --max_old_space_size=4096 node_modules/@ckeditor/ckeditor5-dev-tests/bin/test.js",
     "manual": "node --max_old_space_size=4096 node_modules/@ckeditor/ckeditor5-dev-tests/bin/test-manual.js",
     "bootstrap": "mgit sync && yarn install",
@@ -139,5 +138,10 @@
     "nohoist": [
       "**/husky"
     ]
+  },
+  "husky": {
+    "hooks": {
+      "pre-commit": "lint-staged"
+    }
   }
 }