Browse Source

Upgraded version of husky.

Kamil Piechaczek 6 years ago
parent
commit
108c46d865
1 changed files with 8 additions and 4 deletions
  1. 8 4
      packages/ckeditor5-basic-styles/package.json

+ 8 - 4
packages/ckeditor5-basic-styles/package.json

@@ -22,7 +22,7 @@
     "@ckeditor/ckeditor5-utils": "^11.1.0",
     "eslint": "^5.5.0",
     "eslint-config-ckeditor5": "^1.0.9",
-    "husky": "^0.14.3",
+    "husky": "^1.3.1",
     "lint-staged": "^7.0.0"
   },
   "engines": {
@@ -43,8 +43,7 @@
     "theme"
   ],
   "scripts": {
-    "lint": "eslint --quiet '**/*.js'",
-    "precommit": "lint-staged"
+    "lint": "eslint --quiet '**/*.js'"
   },
   "lint-staged": {
     "**/*.js": [
@@ -54,5 +53,10 @@
   "eslintIgnore": [
     "src/lib/**",
     "packages/**"
-  ]
+  ],
+  "husky": {
+    "hooks": {
+      "pre-commit": "lint-staged"
+    }
+  }
 }