8
0
Pārlūkot izejas kodu

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

Aleksander Nowodzinski 6 gadi atpakaļ
vecāks
revīzija
c5e2c29171
1 mainītis faili ar 8 papildinājumiem un 4 dzēšanām
  1. 8 4
      packages/ckeditor5-ui/package.json

+ 8 - 4
packages/ckeditor5-ui/package.json

@@ -35,7 +35,7 @@
     "del": "^2.2.0",
     "eslint": "^5.5.0",
     "eslint-config-ckeditor5": "^1.0.9",
-    "husky": "^0.14.3",
+    "husky": "^1.3.1",
     "lint-staged": "^7.0.0",
     "lodash-cli": "^4"
   },
@@ -57,8 +57,7 @@
     "theme"
   ],
   "scripts": {
-    "lint": "eslint --quiet '**/*.js'",
-    "precommit": "lint-staged"
+    "lint": "eslint --quiet '**/*.js'"
   },
   "lint-staged": {
     "**/*.js": [
@@ -68,5 +67,10 @@
   "eslintIgnore": [
     "src/lib/**",
     "packages/**"
-  ]
+  ],
+  "husky": {
+    "hooks": {
+      "pre-commit": "lint-staged"
+    }
+  }
 }