diff --git a/package.json b/package.json index e5b9b3aa8..fd9678b37 100644 --- a/package.json +++ b/package.json @@ -23,13 +23,14 @@ }, "homepage": "https://github.com/vuejs/vue-loader", "scripts": { - "lint": "eslint lib test", - "lint:fix": "eslint lib test --fix", - "precommit": "lint-staged", + "lint": "eslint lib test --fix", "test": "eslint lib && mocha --slow 5000 --timeout 10000", "docs": "cd docs && gitbook install && gitbook serve", "docs:deploy": "bash ./docs/deploy.sh" }, + "gitHooks": { + "pre-commit": "lint-staged" + }, "lint-staged": { "lib/**/*.js": [ "eslint --fix", @@ -75,7 +76,7 @@ "gitbook-plugin-edit-link": "^2.0.2", "gitbook-plugin-github": "^3.0.0", "gitbook-plugin-theme-vuejs": "^1.1.0", - "husky": "^0.14.3", + "yorkie": "^1.0.3", "inject-loader": "^3.0.1", "js-yaml": "^3.9.1", "jsdom": "^9.2.1", diff --git a/yarn.lock b/yarn.lock index 1087c4314..cc6ffbd5c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2235,14 +2235,6 @@ https-browserify@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-1.0.0.tgz#ec06c10e0a34c0f2faf199f7fd7fc78fffd03c73" -husky@^0.14.3: - version "0.14.3" - resolved "https://registry.yarnpkg.com/husky/-/husky-0.14.3.tgz#c69ed74e2d2779769a17ba8399b54ce0b63c12c3" - dependencies: - is-ci "^1.0.10" - normalize-path "^1.0.0" - strip-indent "^2.0.0" - iconv-lite@0.4.19: version "0.4.19" resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.19.tgz#f7468f60135f5e5dad3399c0a81be9a1603a082b" @@ -4849,3 +4841,12 @@ yargs@~3.10.0: cliui "^2.1.0" decamelize "^1.0.0" window-size "0.1.0" + +yorkie@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/yorkie/-/yorkie-1.0.3.tgz#5c05db48c012def99c29b79685b6ba2e40c8c671" + dependencies: + execa "^0.8.0" + is-ci "^1.0.10" + normalize-path "^1.0.0" + strip-indent "^2.0.0"