Skip to content

Commit

Permalink
Merge pull request #230 from ckeditor/i/2253
Browse files Browse the repository at this point in the history
Internal: Upgraded husky to v8.
  • Loading branch information
pomek committed Nov 28, 2022
2 parents 14e1e9e + 06b1426 commit c4c21a8
Show file tree
Hide file tree
Showing 4 changed files with 6,465 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

# @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
# For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license

. "$(dirname -- "$0")/_/husky.sh"

yarn lint-staged
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"chai": "^4.3.6",
"eslint": "^7.32.0",
"eslint-config-ckeditor5": "^4.0.0",
"husky": "^8.0.2",
"karma": "^6.3.17",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^3.1.1",
Expand All @@ -40,6 +41,7 @@
"karma-sinon": "^1.0.5",
"karma-sourcemap-loader": "^0.3.8",
"karma-webpack": "^5.0.0",
"lint-staged": "^10.2.11",
"lodash-es": "^4.17.21",
"minimist": "^1.2.5",
"mocha": "^7.2.0",
Expand All @@ -54,6 +56,7 @@
"npm": ">=5.7.1"
},
"scripts": {
"postinstall": "node ./scripts/postinstall.js",
"build": "webpack --mode production",
"develop": "webpack --mode development --watch",
"changelog": "node ./scripts/changelog.js",
Expand All @@ -80,5 +83,10 @@
"homepage": "https://github.com/ckeditor/ckeditor5-vue",
"eslintIgnore": [
"dist/**"
]
],
"lint-staged": {
"**/*.js": [
"eslint --quiet"
]
}
}
10 changes: 10 additions & 0 deletions scripts/postinstall.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md.
*/

'use strict';

/* eslint-env node */

require( 'husky' ).install();
Loading

0 comments on commit c4c21a8

Please sign in to comment.