|
|
@@ -48,7 +48,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",
|
|
|
@@ -72,7 +72,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": {
|
|
|
@@ -83,5 +82,10 @@
|
|
|
"eslintIgnore": [
|
|
|
"build/**",
|
|
|
"packages/**"
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ "husky": {
|
|
|
+ "hooks": {
|
|
|
+ "pre-commit": "lint-staged"
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|