@ministryofjustice/hmpps-precommit-hooks 2.0.2 → 3.0.1
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/CHANGELOG.md +12 -4
- package/LICENSE.md +1 -1
- package/default-hooks.yaml +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
# Change log
|
|
2
2
|
|
|
3
|
+
## 3.0.1
|
|
4
|
+
|
|
5
|
+
Excludes snapshot test files from trailing-whitespace hook
|
|
6
|
+
|
|
7
|
+
## 3.0.0
|
|
8
|
+
|
|
9
|
+
Drops support for node engine 20 (no longer maintained) and adds 26 (will be LTS later this year).
|
|
10
|
+
|
|
3
11
|
## 2.0.2
|
|
4
12
|
|
|
5
|
-
Change default precommit config to run linting, typechecks and tests if the package-lock.json file changes
|
|
13
|
+
Change default precommit config to run linting, typechecks and tests if the package-lock.json file changes
|
|
6
14
|
|
|
7
15
|
## 2.0.1
|
|
8
16
|
|
|
9
|
-
Fixing config.toml location
|
|
17
|
+
Fixing config.toml location
|
|
10
18
|
|
|
11
19
|
## 2.0.0
|
|
12
20
|
|
|
@@ -16,8 +24,8 @@ Fixing config.toml location
|
|
|
16
24
|
- Husky is automatically uninstalled during `npm install` if present
|
|
17
25
|
- Existing husky hooks are automatically removed
|
|
18
26
|
- prek is installed via Homebrew
|
|
19
|
-
- installs and configures [devsecops-hooks](https://github.com/ministryofjustice/devsecops-hooks) by default
|
|
20
|
-
|
|
27
|
+
- installs and configures [devsecops-hooks](https://github.com/ministryofjustice/devsecops-hooks) by default
|
|
28
|
+
|
|
21
29
|
### New Features
|
|
22
30
|
|
|
23
31
|
- Added `.pre-commit-config.yaml` configuration file with default hooks
|
package/LICENSE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2026 Crown Copyright (Ministry of Justice)
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/default-hooks.yaml
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ministryofjustice/hmpps-precommit-hooks",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "Precommit hooks for HMPPS typescript projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"precommit"
|
|
@@ -31,6 +31,6 @@
|
|
|
31
31
|
"default-hooks.yaml"
|
|
32
32
|
],
|
|
33
33
|
"engines": {
|
|
34
|
-
"node": "
|
|
34
|
+
"node": "22 || 24 || 26"
|
|
35
35
|
}
|
|
36
36
|
}
|