Upgraded version of husky.
Showing
... | @@ -51,7 +51,7 @@ | ... | @@ -51,7 +51,7 @@ |
"@ckeditor/ckeditor5-upload": "^10.0.4", | "@ckeditor/ckeditor5-upload": "^10.0.4", | ||
"eslint": "^5.5.0", | "eslint": "^5.5.0", | ||
"eslint-config-ckeditor5": "^1.0.7", | "eslint-config-ckeditor5": "^1.0.7", | ||
"husky": "^0.14.3", | "husky": "^1.3.1", | ||
"lint-staged": "^7.0.0", | "lint-staged": "^7.0.0", | ||
"postcss-loader": "^3.0.0", | "postcss-loader": "^3.0.0", | ||
"raw-loader": "^1.0.0", | "raw-loader": "^1.0.0", | ||
... | @@ -75,7 +75,6 @@ | ... | @@ -75,7 +75,6 @@ |
"scripts": { | "scripts": { | ||
"build": "webpack --mode production", | "build": "webpack --mode production", | ||
"lint": "eslint --quiet '**/*.js'", | "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" | "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": { | "lint-staged": { | ||
... | @@ -86,5 +85,10 @@ | ... | @@ -86,5 +85,10 @@ |
"eslintIgnore": [ | "eslintIgnore": [ | ||
"build/**", | "build/**", | ||
"packages/**" | "packages/**" | ||
] | ], | ||
"husky": { | |||
"hooks": { | |||
"pre-commit": "lint-staged" | |||
} | |||
} | |||
} | } |
Please register or sign in to comment