Skip to content

Commit 49526bc

Browse files
committed
👷 ci(.husky/pre-commit): added pretty-quick to pre-commmit and to .depcheckrc.json
added a package to pre-commit and updated dependabot to update github actions and ignore eslint and semantic-release
1 parent deca725 commit 49526bc

File tree

5 files changed

+89
-27
lines changed

5 files changed

+89
-27
lines changed

.depcheckrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"jest-snapshot",
55
"quick-lint-js",
66
"prettier-plugin-organize-imports",
7+
"pretty-quick",
78
"typedoc",
89
"typedoc-plugin-coverage",
910
"typedoc-plugin-extras",

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,16 @@ updates:
99
directory: '/' # Location of package manifests
1010
schedule:
1111
interval: 'weekly' # Runs every Monday
12+
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#ignore
13+
ignore:
14+
# Ignore updates to the 'semantic-release' package
15+
# semantic release currently needs to keep the version before <23 which is version 22.0.12 as of May 3rd 2024
16+
- dependency-name: 'semantic-release'
17+
# Ignore updates to the 'eslint' package
18+
# @typescript-eslint/eslint-plugin@7.8.0 currently doesn't support eslint v9.0.0+ as of May 3rd 2024 so use eslint:^8.57.0, and preventing it from updating with renovate for now
19+
- dependency-name: 'eslint'
20+
#https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
21+
- package-ecosystem: 'github-actions' # See documentation for possible values
22+
directory: '/' # Location of package manifests
23+
schedule:
24+
interval: 'weekly' # Runs every Monday

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33
npx validate-branch-name
44
bun run depcheck:ci
5+
bun pretty-quick --staged

package-lock.json

Lines changed: 46 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -139,22 +139,22 @@
139139
"cz-gitmoji-adapter": {
140140
"scopes": [
141141
".depcheckrc.json",
142-
".eslintignore",
143142
".eslintrc.json",
143+
".eslintignore",
144144
".gitignore",
145145
".prettierignore",
146-
".prettierrc.json",
147146
"license",
148147
"readme-api.md",
148+
".prettierrc.json",
149149
"readme.md",
150-
"commitlint.config.ts",
150+
"commit-template.hbs",
151151
"default-template.hbs",
152+
"commitlint.config.ts",
152153
"jest.config.json",
153154
"package-lock.json",
154155
"package.json",
155-
"commit-template.hbs",
156-
"renovate.json",
157156
"release.config.ts",
157+
"renovate.json",
158158
"tsconfig.json",
159159
"typedoc.json",
160160
".vscode/settings.json",
@@ -164,20 +164,28 @@
164164
"repo_management_files/cz-emoji-template-extract.js",
165165
"repo_management_files/cz-emoji-type-extract.js",
166166
"repo_management_files/cz-type-extract.js",
167+
"repo_management_files/directorystructuredocument.md",
167168
"repo_management_files/errorswarningsresolutions.md",
168169
"repo_management_files/extractfilescopes.js",
169170
"repo_management_files/fileswithgitmojis.md",
170171
"repo_management_files/genericcommitmessages.md",
171-
"repo_management_files/directorystructuredocument.md",
172+
"repo_management_files/gitmojisemver-extract.js",
172173
"repo_management_files/initializationinfo.md",
173174
"repo_management_files/issues.sh",
174-
"repo_management_files/gitmojisemver-extract.js",
175175
"repo_management_files/labels.sh",
176176
"repo_management_files/packagejsondocument.md",
177177
"repo_management_files/usefultipsandtricks.md",
178+
".github/dependabot.yml",
179+
".github/workflows/build.yml",
180+
".github/workflows/depcheck.yml",
181+
".github/workflows/docs.yml",
182+
".github/workflows/lint.yml",
183+
".github/workflows/pr.yml",
184+
".github/workflows/release.yml",
185+
".github/workflows/test.yml",
186+
".husky/commit-msg",
178187
".husky/pre-commit",
179188
".husky/prepare-commit-msg",
180-
".husky/commit-msg",
181189
".husky/_/.gitignore",
182190
".husky/_/applypatch-msg",
183191
".husky/_/commit-msg",
@@ -189,39 +197,31 @@
189197
".husky/_/post-rewrite",
190198
".husky/_/pre-applypatch",
191199
".husky/_/pre-auto-gc",
192-
".husky/_/pre-commit",
193200
".husky/_/pre-push",
194201
".husky/_/pre-rebase",
202+
".husky/_/pre-commit",
195203
".husky/_/prepare-commit-msg",
196-
".github/dependabot.yml",
197-
".github/workflows/build.yml",
198-
".github/workflows/depcheck.yml",
199-
".github/workflows/docs.yml",
200-
".github/workflows/lint.yml",
201-
".github/workflows/pr.yml",
202-
".github/workflows/release.yml",
203-
".github/workflows/test.yml",
204204
"src/app.ts",
205-
"src/bin/.gitkeep",
206205
"src/configs/.gitkeep",
207-
"src/models/.gitkeep",
208-
"src/controllers/.gitkeep",
209206
"src/middleware/.gitkeep",
207+
"src/bin/.gitkeep",
210208
"src/plugins/.gitkeep",
209+
"src/controllers/.gitkeep",
211210
"src/routes/.gitkeep",
212-
"src/utils/.gitkeep",
211+
"src/models/.gitkeep",
213212
"src/views/.gitkeep",
214-
"test/.gitkeep",
213+
"src/utils/.gitkeep",
215214
"test/app.test.ts",
215+
"test/.gitkeep",
216216
"test/configs/.gitkeep",
217-
"test/controllers/.gitkeep",
218-
"test/bin/.gitkeep",
219217
"test/middleware/.gitkeep",
220-
"test/models/.gitkeep",
221218
"test/plugins/.gitkeep",
222219
"test/routes/.gitkeep",
220+
"test/models/.gitkeep",
221+
"test/bin/.gitkeep",
222+
"test/views/.gitkeep",
223223
"test/utils/.gitkeep",
224-
"test/views/.gitkeep"
224+
"test/controllers/.gitkeep"
225225
],
226226
"questions": {
227227
"scope": "Specify a scope: "
@@ -271,6 +271,7 @@
271271
"oxlint": "0.6.1",
272272
"prettier": "3.3.3",
273273
"prettier-plugin-organize-imports": "4.0.0",
274+
"pretty-quick": "^4.0.0",
274275
"quick-lint-js": "3.2.0",
275276
"semantic-release": "22.0.12",
276277
"semantic-release-config-gitmoji": "1.5.3",
@@ -293,4 +294,4 @@
293294
}
294295
}
295296
}
296-
}
297+
}

0 commit comments

Comments
 (0)