Skip to content

Build your personal knowledge base with Trilium Notes

remove husky

zadam80eaf1065653
diff --git a/.eslintrc.js b/.eslintrc.js
index 1bf363f7a9..2e6b919022 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -55,7 +55,6 @@ module.exports = {
'config',
'overrides',
'pnpm',
- 'husky',
'lint-staged',
'eslintConfig',
],
diff --git a/.husky/.gitignore b/.husky/.gitignore
deleted file mode 100644
index 31354ec138..0000000000
--- a/.husky/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-_
diff --git a/.husky/pre-commit b/.husky/pre-commit
deleted file mode 100644
index d5b5fd41c7..0000000000
--- a/.husky/pre-commit
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-. "$(dirname "$0")/_/husky.sh"
-
-#npx lint-staged
diff --git a/package-lock.json b/package-lock.json
index 57dceb6bcd..7180472f6d 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -98,7 +98,6 @@
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jsonc": "2.13.0",
"esm": "3.2.25",
- "husky": "8.0.3",
"jasmine": "5.1.0",
"jsdoc": "4.0.2",
"jsonc-eslint-parser": "2.4.0",
@@ -8040,21 +8039,6 @@
"ms": "^2.0.0"
}
},
- "node_modules/husky": {
- "version": "8.0.3",
- "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz",
- "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==",
- "dev": true,
- "bin": {
- "husky": "lib/bin.js"
- },
- "engines": {
- "node": ">=14"
- },
- "funding": {
- "url": "https://github.com/sponsors/typicode"
- }
- },
"node_modules/iconv-corefoundation": {
"version": "1.1.7",
"resolved": "https://registry.npmjs.org/iconv-corefoundation/-/iconv-corefoundation-1.1.7.tgz",
@@ -21316,12 +21300,6 @@
"ms": "^2.0.0"
}
},
- "husky": {
- "version": "8.0.3",
- "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz",
- "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==",
- "dev": true
- },
"iconv-corefoundation": {
"version": "1.1.7",
"resolved": "https://registry.npmjs.org/iconv-corefoundation/-/iconv-corefoundation-1.1.7.tgz",
diff --git a/package.json b/package.json
index da8ab13700..01e78438d6 100644
--- a/package.json
+++ b/package.json
@@ -32,8 +32,7 @@
"test-es6": "node -r esm spec-es6/attribute_parser.spec.js ",
"test": "npm run test-jasmine && npm run test-es6",
"postinstall": "rimraf ./node_modules/canvas",
- "lint": "eslint . --cache",
- "prepare": "husky install || echo 'Husky install failed, expected on flatpak build'"
+ "lint": "eslint . --cache"
},
"dependencies": {
"@braintree/sanitize-url": "6.0.4",
@@ -121,7 +120,6 @@
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jsonc": "2.13.0",
"esm": "3.2.25",
- "husky": "8.0.3",
"jasmine": "5.1.0",
"jsdoc": "4.0.2",
"jsonc-eslint-parser": "2.4.0",