Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Remove husky

Krystle Salazare2f329ad2a59
diff --git a/.husky/.gitignore b/.husky/.gitignore
deleted file mode 100644
index 31354ec13..000000000
--- a/.husky/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-_
diff --git a/.husky/pre-commit b/.husky/pre-commit
deleted file mode 100755
index 01170b47a..000000000
--- a/.husky/pre-commit
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-. "$(dirname "$0")/_/husky.sh"
-
-# Generate a new openverse.pot file if en.json has changes
-TRANSFILE=src/locales/en.json
-POTFILE=src/locales/po-files/openverse.pot
-CHANGED=$(git diff --staged --name-only HEAD)
-
-if [[ "$CHANGED" == *"$TRANSFILE"* ]] && [[ "$CHANGED" != *"$POTFILE"* ]]; then
- npm run i18n:generate-pot
- git add $POTFILE
-fi
-
-# Lint staged files
-npx lint-staged
diff --git a/.husky/pre-push b/.husky/pre-push
deleted file mode 100755
index 449fcdee1..000000000
--- a/.husky/pre-push
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-. "$(dirname "$0")/_/husky.sh"
-
-npm test
diff --git a/package.json b/package.json
index 47cd55f3f..439d12b99 100644
--- a/package.json
+++ b/package.json
@@ -31,7 +31,6 @@
"format:test": "prettier --check .",
"vue-i18n-extract": "vue-i18n-extract report -v './src/**/*.?(js|vue)' -l './src/locales/*.?(json)'",
"postinstall": "patch-package",
- "prepare": "husky install",
"i18n:get-valid-locales": "node src/locales/scripts/get-validated-locales",
"i18n:get-translations": "node src/locales/scripts/get-translations && npm run i18n:get-valid-locales",
"i18n:generate-pot": "node src/locales/scripts/json-to-pot",
@@ -96,7 +95,6 @@
"eslint-plugin-vue": "^7.8.0",
"eslint-plugin-vuejs-accessibility": "^0.6.1",
"glob": "^7.1.6",
- "husky": "^7.0.1",
"jest": "^26.6.3",
"jest-transform-stub": "^2.0.0",
"lint-staged": "^11.1.1",