From 79863fa749e7dd820546f97bad875889108bc36e Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Thu, 25 Jan 2024 11:01:55 +1100 Subject: [PATCH] Remove automatic pre-commit hook It slows down the `git commit` command even when you don't edit any CSS or JS files. It also restricts you when committing work in progress. In my opinion, the linting should happen in your IDE, not when committing. But you can install your own pre-commit hook if you like. We still have CI to check all contributions. --- .husky/pre-commit | 4 ---- package.json | 2 -- yarn.lock | 5 ----- 3 files changed, 11 deletions(-) delete mode 100755 .husky/pre-commit diff --git a/.husky/pre-commit b/.husky/pre-commit deleted file mode 100755 index ee76864644..0000000000 --- a/.husky/pre-commit +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - - yarn pretty-quick --check --staged diff --git a/package.json b/package.json index c9bec5f193..96e032f244 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,6 @@ }, "license": "AGPL-3.0", "scripts": { - "prepare": "husky install", "pretty-quick": "pretty-quick" }, "jest": { @@ -41,7 +40,6 @@ "webpack": "~4" }, "devDependencies": { - "husky": "^8.0.0", "jasmine-core": "~5.1.1", "jest": "^27.4.7", "karma": "~6.4.2", diff --git a/yarn.lock b/yarn.lock index e104a0e578..807755e4af 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4542,11 +4542,6 @@ human-signals@^2.1.0: resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0" integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw== -husky@^8.0.0: - version "8.0.3" - resolved "https://registry.yarnpkg.com/husky/-/husky-8.0.3.tgz#4936d7212e46d1dea28fef29bb3a108872cd9184" - integrity sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg== - iconv-lite@0.4.24: version "0.4.24" resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b"