@huaiyou/hooks-git
Advanced tools
+6
-0
| # @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 = { |
+1
-1
@@ -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 @@ }; |
+1
-1
| { | ||
| "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": { |
53059
0.51%1265
0.8%