Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Internal: Upgraded husky and the pre-commit hook configuration (see: …
Browse files Browse the repository at this point in the history
…ckeditor/ckeditor#1492).
  • Loading branch information
oleq committed Jan 31, 2019
2 parents fb1d1ed + dfa6ccf commit 7602865
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": {
Expand All @@ -86,5 +85,10 @@
"eslintIgnore": [
"build/**",
"packages/**"
]
],
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
}
}

0 comments on commit 7602865

Please sign in to comment.