🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@huaiyou/hooks-git

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@huaiyou/hooks-git - npm Package Compare versions

Comparing version
2.2.2
to
2.2.3
+6
-0
CHANGELOG.md
# @huaiyou/hooks-git
## 2.2.3
### Patch Changes
- Fix lint-staged empty config error when no linting tools installed
## 2.2.2

@@ -4,0 +10,0 @@

+1
-1

@@ -17,3 +17,3 @@ #!/usr/bin/env node

const version = "2.2.2";
const version = "2.2.3";

@@ -20,0 +20,0 @@ const logger = {

@@ -9,3 +9,3 @@ #!/usr/bin/env node

const version = "2.2.2";
const version = "2.2.3";

@@ -12,0 +12,0 @@ const logger = {

@@ -41,4 +41,9 @@ 'use strict';

if (hasPrettier) {
config["*.{html,json,md,yml,yaml}"] = ["prettier --write"];
config["*.{json,md,yml,yaml}"] = ["prettier --write"];
}
if (Object.keys(config).length === 0) {
return {
"*": ["git add"]
};
}
return config;

@@ -45,0 +50,0 @@ };

@@ -37,4 +37,9 @@ import { existsSync, readFileSync } from 'node:fs';

if (hasPrettier) {
config["*.{html,json,md,yml,yaml}"] = ["prettier --write"];
config["*.{json,md,yml,yaml}"] = ["prettier --write"];
}
if (Object.keys(config).length === 0) {
return {
"*": ["git add"]
};
}
return config;

@@ -41,0 +46,0 @@ };

{
"name": "@huaiyou/hooks-git",
"version": "2.2.2",
"version": "2.2.3",
"description": "Git hooks configuration with Husky, Commitlint and Lint-staged",

@@ -5,0 +5,0 @@ "bin": {