浏览代码

Internal: Upgraded husky and the pre-commit hook configuration (see: ckeditor/ckeditor#1492).

Aleksander Nowodzinski 6 年之前
父节点
当前提交
3e86564281
共有 1 个文件被更改,包括 8 次插入4 次删除
  1. 8 4
      packages/ckeditor5-cloud-services/package.json

+ 8 - 4
packages/ckeditor5-cloud-services/package.json

@@ -17,7 +17,7 @@
     "@ckeditor/ckeditor5-editor-classic": "^11.0.2",
     "eslint": "^5.5.0",
     "eslint-config-ckeditor5": "^1.0.9",
-    "husky": "^0.14.3",
+    "husky": "^1.3.1",
     "lint-staged": "^7.0.0"
   },
   "engines": {
@@ -38,8 +38,7 @@
     "theme"
   ],
   "scripts": {
-    "lint": "eslint --quiet '**/*.js'",
-    "precommit": "lint-staged"
+    "lint": "eslint --quiet '**/*.js'"
   },
   "lint-staged": {
     "**/*.js": [
@@ -49,5 +48,10 @@
   "eslintIgnore": [
     "src/lib/**",
     "packages/**"
-  ]
+  ],
+  "husky": {
+    "hooks": {
+      "pre-commit": "lint-staged"
+    }
+  }
 }