kvalita 1.2.0 → 1.3.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
CHANGED
|
@@ -51,3 +51,22 @@ Create a `release.json` file in your project root:
|
|
|
51
51
|
```
|
|
52
52
|
|
|
53
53
|
This configuration uses the `conventionalcommits` preset, which supports the `feat!:` syntax for breaking changes.
|
|
54
|
+
|
|
55
|
+
### [Lefthook](https://github.com/evilmartians/lefthook) Configuration
|
|
56
|
+
|
|
57
|
+
Create a `lefthook.json` file in your project root and extend the hooks you need:
|
|
58
|
+
|
|
59
|
+
```json
|
|
60
|
+
{
|
|
61
|
+
"extends": [
|
|
62
|
+
"node_modules/kvalita/configs/lefthook-biome.json",
|
|
63
|
+
"node_modules/kvalita/configs/lefthook-typescript.json",
|
|
64
|
+
"node_modules/kvalita/configs/lefthook-commitlint.json"
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
**Available hooks:**
|
|
70
|
+
- `lefthook-biome.json` - Lints and formats staged files with Biome (pre-commit)
|
|
71
|
+
- `lefthook-typescript.json` - Type checks TypeScript files (pre-commit)
|
|
72
|
+
- `lefthook-commitlint.json` - Validates commit messages (commit-msg)
|
package/configs/commitlint.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
2
|
+
"$schema": "https://json.schemastore.org/commitlintrc.json",
|
|
3
|
+
"extends": ["@commitlint/config-conventional"],
|
|
4
|
+
"rules": {
|
|
5
|
+
"subject-case": [2, "always", "sentence-case"]
|
|
6
|
+
}
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/lefthook.json",
|
|
3
|
+
"pre-commit": {
|
|
4
|
+
"parallel": true,
|
|
5
|
+
"commands": {
|
|
6
|
+
"lint:biome": {
|
|
7
|
+
"glob": "*.{ts,tsx,js,jsx,json,jsonc,css,graphql,gql}",
|
|
8
|
+
"run": "bunx @biomejs/biome check --write --no-errors-on-unmatched --files-ignore-unknown=true {staged_files}",
|
|
9
|
+
"stage_fixed": true
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
package/package.json
CHANGED
|
@@ -28,7 +28,9 @@
|
|
|
28
28
|
"@commitlint/cli": ">=19.0.0",
|
|
29
29
|
"@commitlint/config-conventional": ">=19.0.0",
|
|
30
30
|
"conventional-changelog-conventionalcommits": ">=8.0.0",
|
|
31
|
-
"
|
|
31
|
+
"lefthook": ">=1.0.0",
|
|
32
|
+
"semantic-release": ">=23.0.0",
|
|
33
|
+
"typescript": ">=5.0.0"
|
|
32
34
|
},
|
|
33
35
|
"devDependencies": {
|
|
34
36
|
"@biomejs/biome": "^2.2.4",
|
|
@@ -37,7 +39,7 @@
|
|
|
37
39
|
"conventional-changelog-conventionalcommits": "^9.1.0",
|
|
38
40
|
"lefthook": "^1.13.6",
|
|
39
41
|
"semantic-release": "^24.2.9",
|
|
40
|
-
"typescript": "^5.9.
|
|
42
|
+
"typescript": "^5.9.3"
|
|
41
43
|
},
|
|
42
|
-
"version": "1.
|
|
44
|
+
"version": "1.3.0"
|
|
43
45
|
}
|