kvalita 1.0.0 → 1.2.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 +17 -14
- package/configs/biome.json +34 -33
- package/configs/semantic-release.json +8 -0
- package/package.json +12 -4
package/README.md
CHANGED
|
@@ -13,17 +13,14 @@ Kvalita provides reusable, opinionated configurations for maintaining consistent
|
|
|
13
13
|
bun add -d kvalita
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
This will automatically install all required dependencies.
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
### Biome Configuration
|
|
18
|
+
> [!NOTE]
|
|
19
|
+
> All tools are installed together for simplicity, even if you only use some of the configurations. This ensures all CLIs and configs work correctly and avoids resolution issues.
|
|
21
20
|
|
|
22
|
-
|
|
21
|
+
## Usage
|
|
23
22
|
|
|
24
|
-
|
|
25
|
-
bun add -d @biomejs/biome
|
|
26
|
-
```
|
|
23
|
+
### [Biome](https://github.com/biomejs/biome) Configuration
|
|
27
24
|
|
|
28
25
|
Create a `biome.json` file in your project root:
|
|
29
26
|
|
|
@@ -33,18 +30,24 @@ Create a `biome.json` file in your project root:
|
|
|
33
30
|
}
|
|
34
31
|
```
|
|
35
32
|
|
|
36
|
-
### Commitlint Configuration
|
|
33
|
+
### [Commitlint](https://github.com/conventional-changelog/commitlint) Configuration
|
|
37
34
|
|
|
38
|
-
|
|
35
|
+
Create a `commitlint.json` file in your project root:
|
|
39
36
|
|
|
40
|
-
```
|
|
41
|
-
|
|
37
|
+
```json
|
|
38
|
+
{
|
|
39
|
+
"extends": ["kvalita/commitlint"]
|
|
40
|
+
}
|
|
42
41
|
```
|
|
43
42
|
|
|
44
|
-
|
|
43
|
+
### [Semantic Release](https://github.com/semantic-release/semantic-release) Configuration
|
|
44
|
+
|
|
45
|
+
Create a `release.json` file in your project root:
|
|
45
46
|
|
|
46
47
|
```json
|
|
47
48
|
{
|
|
48
|
-
"extends":
|
|
49
|
+
"extends": "kvalita/semantic-release"
|
|
49
50
|
}
|
|
50
51
|
```
|
|
52
|
+
|
|
53
|
+
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,27 @@
|
|
|
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
|
},
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"@biomejs/biome": ">=2.0.0",
|
|
28
|
+
"@commitlint/cli": ">=19.0.0",
|
|
29
|
+
"@commitlint/config-conventional": ">=19.0.0",
|
|
30
|
+
"conventional-changelog-conventionalcommits": ">=8.0.0",
|
|
31
|
+
"semantic-release": ">=23.0.0"
|
|
32
|
+
},
|
|
25
33
|
"devDependencies": {
|
|
26
34
|
"@biomejs/biome": "^2.2.4",
|
|
27
|
-
"@commitlint/cli": "^20.
|
|
35
|
+
"@commitlint/cli": "^20.1.0",
|
|
28
36
|
"@commitlint/config-conventional": "^20.0.0",
|
|
29
37
|
"conventional-changelog-conventionalcommits": "^9.1.0",
|
|
30
|
-
"lefthook": "^1.13.
|
|
38
|
+
"lefthook": "^1.13.6",
|
|
31
39
|
"semantic-release": "^24.2.9",
|
|
32
40
|
"typescript": "^5.9.2"
|
|
33
41
|
},
|
|
34
|
-
"version": "1.
|
|
42
|
+
"version": "1.2.0"
|
|
35
43
|
}
|