@opinionated-ts/config 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/lefthook.yml +11 -0
- package/package.json +1 -1
- package/tsconfig.json +1 -2
package/README.md
CHANGED
package/lefthook.yml
CHANGED
|
@@ -37,3 +37,14 @@ pre-push:
|
|
|
37
37
|
fail_text: |
|
|
38
38
|
Security vulnerabilities detected.
|
|
39
39
|
Run `bun audit fix` manually to try resolving them.
|
|
40
|
+
|
|
41
|
+
# Lint is repeated here, but over the WHOLE project instead of {staged_files}.
|
|
42
|
+
# Reason: in pre-commit, lint only runs on staged files, so a type change in
|
|
43
|
+
# one file can break integration/type-check in other files that weren't
|
|
44
|
+
# touched in that commit and therefore never went through the linter. Before
|
|
45
|
+
# pushing (once you have the full picture of all commits), it's worth
|
|
46
|
+
# running lint over the whole repo to catch those cross-file breakages
|
|
47
|
+
# before they reach the remote.
|
|
48
|
+
run-lint-full:
|
|
49
|
+
run: bun oxlint .
|
|
50
|
+
glob: "*.{ts,tsx,js,jsx}"
|
package/package.json
CHANGED