From 57f3c261522bb717050c7d162392e4b3e45b9939 Mon Sep 17 00:00:00 2001 From: David Bauer <db@dotcore.net> Date: Mon, 19 Apr 2021 11:52:56 +0200 Subject: [PATCH] Update lint-staged --- .husky/pre-commit | 1 + package.json | 12 ++++-------- yarn.lock | 2 +- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 36af219..6aeb8f2 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -2,3 +2,4 @@ . "$(dirname "$0")/_/husky.sh" npx lint-staged +npx lint-staged diff --git a/package.json b/package.json index f3f74d3..74f5266 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "scripts": { "lint": "eslint .", "start": "node index.js", - "dev": "nodemon index.js | pino-pretty" + "dev": "nodemon index.js | pino-pretty", + "prepare": "husky install" }, "author": "Open-Xchange", "license": "CC-BY-NC-SA-2.5", @@ -29,17 +30,12 @@ "eslint-plugin-import": "^2.22.1", "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^5.1.0", - "husky": ">=4", + "husky": ">=6", "lint-staged": ">=10", "nodemon": "^2.0.7", "pino-pretty": "^4.7.1" }, - "husky": { - "hooks": { - "pre-commit": "lint-staged" - } - }, "lint-staged": { - "*.js(on)?": "eslint --cache --fix" + "*.js": "eslint --cache --fix" } } diff --git a/yarn.lock b/yarn.lock index 26dd2ad..64b95ca 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1352,7 +1352,7 @@ human-signals@^1.1.1: resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-1.1.1.tgz#c5b1cd14f50aeae09ab6c59fe63ba3395fe4dfa3" integrity sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw== -husky@>=4: +husky@>=6: version "6.0.0" resolved "https://registry.yarnpkg.com/husky/-/husky-6.0.0.tgz#810f11869adf51604c32ea577edbc377d7f9319e" integrity sha512-SQS2gDTB7tBN486QSoKPKQItZw97BMOd+Kdb6ghfpBc0yXyzrddI0oDV5MkDAbuB4X2mO3/nj60TRMcYxwzZeQ== -- GitLab