kvalita 1.0.0 → 1.1.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 +21 -3
- package/configs/biome.json +34 -33
- package/configs/semantic-release.json +8 -0
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -13,11 +13,11 @@ Kvalita provides reusable, opinionated configurations for maintaining consistent
|
|
|
13
13
|
bun add -d kvalita
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
-
Each configuration can be used independently -
|
|
16
|
+
Each configuration can be used independently - import only what your project needs.
|
|
17
17
|
|
|
18
18
|
## Usage
|
|
19
19
|
|
|
20
|
-
### Biome Configuration
|
|
20
|
+
### [Biome](https://github.com/biomejs/biome) Configuration
|
|
21
21
|
|
|
22
22
|
Install the required dependencies:
|
|
23
23
|
|
|
@@ -33,7 +33,7 @@ Create a `biome.json` file in your project root:
|
|
|
33
33
|
}
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
### Commitlint Configuration
|
|
36
|
+
### [Commitlint](https://github.com/conventional-changelog/commitlint) Configuration
|
|
37
37
|
|
|
38
38
|
Install the required dependencies:
|
|
39
39
|
|
|
@@ -48,3 +48,21 @@ Create a `commitlint.json` file in your project root:
|
|
|
48
48
|
"extends": ["kvalita/commitlint"]
|
|
49
49
|
}
|
|
50
50
|
```
|
|
51
|
+
|
|
52
|
+
### [Semantic Release](https://github.com/semantic-release/semantic-release) Configuration
|
|
53
|
+
|
|
54
|
+
Install the required dependencies:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
bun add -d semantic-release conventional-changelog-conventionalcommits
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Create a `release.json` file in your project root:
|
|
61
|
+
|
|
62
|
+
```json
|
|
63
|
+
{
|
|
64
|
+
"extends": "kvalita/semantic-release"
|
|
65
|
+
}
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
This configuration uses the `conventionalcommits` preset, which supports the `feat!:` syntax for breaking changes.
|
package/configs/biome.json
CHANGED
|
@@ -1,35 +1,36 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
2
|
+
"$schema": "../node_modules/@biomejs/biome/configuration_schema.json",
|
|
3
|
+
"root": false,
|
|
4
|
+
"formatter": {
|
|
5
|
+
"useEditorconfig": true,
|
|
6
|
+
"formatWithErrors": true,
|
|
7
|
+
"lineWidth": 100
|
|
8
|
+
},
|
|
9
|
+
"javascript": {
|
|
10
|
+
"formatter": {
|
|
11
|
+
"semicolons": "asNeeded",
|
|
12
|
+
"quoteStyle": "single"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"css": {
|
|
16
|
+
"formatter": {
|
|
17
|
+
"quoteStyle": "single"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"linter": {
|
|
21
|
+
"rules": {
|
|
22
|
+
"style": {
|
|
23
|
+
"noParameterAssign": "warn",
|
|
24
|
+
"useConsistentArrayType": {
|
|
25
|
+
"level": "error",
|
|
26
|
+
"options": {
|
|
27
|
+
"syntax": "generic"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"complexity": {
|
|
32
|
+
"useArrowFunction": "error"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
35
36
|
}
|
package/package.json
CHANGED
|
@@ -17,19 +17,20 @@
|
|
|
17
17
|
],
|
|
18
18
|
"exports": {
|
|
19
19
|
"./biome": "./configs/biome.json",
|
|
20
|
-
"./commitlint": "./configs/commitlint.json"
|
|
20
|
+
"./commitlint": "./configs/commitlint.json",
|
|
21
|
+
"./semantic-release": "./configs/semantic-release.json"
|
|
21
22
|
},
|
|
22
23
|
"scripts": {
|
|
23
24
|
"prepare": "lefthook install"
|
|
24
25
|
},
|
|
25
26
|
"devDependencies": {
|
|
26
27
|
"@biomejs/biome": "^2.2.4",
|
|
27
|
-
"@commitlint/cli": "^20.
|
|
28
|
+
"@commitlint/cli": "^20.1.0",
|
|
28
29
|
"@commitlint/config-conventional": "^20.0.0",
|
|
29
30
|
"conventional-changelog-conventionalcommits": "^9.1.0",
|
|
30
|
-
"lefthook": "^1.13.
|
|
31
|
+
"lefthook": "^1.13.6",
|
|
31
32
|
"semantic-release": "^24.2.9",
|
|
32
33
|
"typescript": "^5.9.2"
|
|
33
34
|
},
|
|
34
|
-
"version": "1.
|
|
35
|
+
"version": "1.1.0"
|
|
35
36
|
}
|