Internal: Upgraded husky and the pre-commit hook configuration (see: ckeditor/ckeditor#1492).
Showing
| ... | ... | @@ -51,7 +51,7 @@ |
| "@ckeditor/ckeditor5-upload": "^10.0.4", | ||
| "eslint": "^5.5.0", | ||
| "eslint-config-ckeditor5": "^1.0.7", | ||
| "husky": "^0.14.3", | ||
| "husky": "^1.3.1", | ||
| "lint-staged": "^7.0.0", | ||
| "postcss-loader": "^3.0.0", | ||
| "raw-loader": "^1.0.0", | ||
| ... | ... | @@ -75,7 +75,6 @@ |
| "scripts": { | ||
| "build": "webpack --mode production", | ||
| "lint": "eslint --quiet '**/*.js'", | ||
| "precommit": "lint-staged", | ||
| "preversion": "npm run build; if [ -n \"$(git status src/ckeditor.js build/ --porcelain)\" ]; then git add -u src/ckeditor.js build/ && git commit -m 'Internal: Build.'; fi" | ||
| }, | ||
| "lint-staged": { | ||
| ... | ... | @@ -86,5 +85,10 @@ |
| "eslintIgnore": [ | ||
| "build/**", | ||
| "packages/**" | ||
| ] | ||
| ], | ||
| "husky": { | ||
| "hooks": { | ||
| "pre-commit": "lint-staged" | ||
| } | ||
| } | ||
| } |
Please register or sign in to comment