Skip to content

Commit 914bf54

Browse files
committed
👷 ci(.husky/pre-commit): adding depcheck:ci to pre-commit hook
adding depcheck
1 parent 8d79053 commit 914bf54

File tree

2 files changed

+23
-21
lines changed

2 files changed

+23
-21
lines changed

.husky/pre-commit

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
# validate branch name before commit
2-
npx validate-branch-name
2+
3+
npx validate-branch-name
4+
bun run depcheck:ci

package.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -140,45 +140,37 @@
140140
".eslintignore",
141141
".eslintrc.json",
142142
".gitignore",
143-
".prettierrc.json",
144143
".prettierignore",
145-
"readme-api.md",
144+
".prettierrc.json",
145+
"license",
146146
"readme.md",
147+
"readme-api.md",
147148
"commit-template.hbs",
148149
"commitlint.config.ts",
149-
"license",
150150
"default-template.hbs",
151151
"emojitypescommitmessages.txt",
152-
"jest.config.json",
153152
"package-lock.json",
153+
"jest.config.json",
154154
"package.json",
155155
"release.config.ts",
156156
"renovate.json",
157-
"typedoc.json",
158157
"tsconfig.json",
158+
"typedoc.json",
159159
".vscode/settings.json",
160160
"public/.gitkeep",
161161
"repo_management_files/branchnamingconventions.md",
162-
"repo_management_files/cz-emoji-type-extract.js",
163162
"repo_management_files/cz-type-extract.js",
163+
"repo_management_files/cz-emoji-type-extract.js",
164164
"repo_management_files/directorystructuredocument.md",
165165
"repo_management_files/extractfilescopes.js",
166166
"repo_management_files/genericcommitmessages.md",
167167
"repo_management_files/gitmojisemver-extract.js",
168168
"repo_management_files/issues.sh",
169169
"repo_management_files/labels.sh",
170170
"repo_management_files/packagejsondocument.md",
171-
".github/dependabot.yml",
172-
".github/workflows/build.yml",
173-
".github/workflows/depcheck.yml",
174-
".github/workflows/docs.yml",
175-
".github/workflows/lint.yml",
176-
".github/workflows/release.yml",
177-
".github/workflows/pr.yml",
178-
".github/workflows/test.yml",
179-
".husky/commit-msg",
180171
".husky/pre-commit",
181172
".husky/prepare-commit-msg",
173+
".husky/commit-msg",
182174
".husky/_/.gitignore",
183175
".husky/_/applypatch-msg",
184176
".husky/_/commit-msg",
@@ -190,19 +182,27 @@
190182
".husky/_/post-rewrite",
191183
".husky/_/pre-applypatch",
192184
".husky/_/pre-auto-gc",
193-
".husky/_/pre-push",
194185
".husky/_/pre-commit",
186+
".husky/_/pre-push",
195187
".husky/_/pre-rebase",
196188
".husky/_/prepare-commit-msg",
189+
".github/dependabot.yml",
190+
".github/workflows/build.yml",
191+
".github/workflows/depcheck.yml",
192+
".github/workflows/docs.yml",
193+
".github/workflows/lint.yml",
194+
".github/workflows/pr.yml",
195+
".github/workflows/release.yml",
196+
".github/workflows/test.yml",
197197
"src/app.ts",
198198
"src/bin/.gitkeep",
199199
"src/configs/.gitkeep",
200+
"src/controllers/.gitkeep",
201+
"src/middleware/.gitkeep",
200202
"src/models/.gitkeep",
201203
"src/plugins/.gitkeep",
202-
"src/utils/.gitkeep",
203204
"src/routes/.gitkeep",
204-
"src/controllers/.gitkeep",
205-
"src/middleware/.gitkeep",
205+
"src/utils/.gitkeep",
206206
"src/views/.gitkeep",
207207
"test/.gitkeep",
208208
"test/app.test.ts",
@@ -212,8 +212,8 @@
212212
"test/middleware/.gitkeep",
213213
"test/plugins/.gitkeep",
214214
"test/routes/.gitkeep",
215-
"test/utils/.gitkeep",
216215
"test/models/.gitkeep",
216+
"test/utils/.gitkeep",
217217
"test/views/.gitkeep"
218218
],
219219
"questions": {

0 commit comments

Comments
 (0)