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 CHANGED
@@ -13,17 +13,14 @@ 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 - install only what your project needs.
16
+ This will automatically install all required dependencies.
17
17
 
18
- ## Usage
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
- Install the required dependencies:
21
+ ## Usage
23
22
 
24
- ```bash
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
- Install the required dependencies:
35
+ Create a `commitlint.json` file in your project root:
39
36
 
40
- ```bash
41
- bun add -d @commitlint/cli @commitlint/config-conventional
37
+ ```json
38
+ {
39
+ "extends": ["kvalita/commitlint"]
40
+ }
42
41
  ```
43
42
 
44
- Create a `commitlint.json` file in your project root:
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": ["kvalita/commitlint"]
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.
@@ -1,35 +1,36 @@
1
1
  {
2
- "$schema": "../node_modules/@biomejs/biome/configuration_schema.json",
3
- "formatter": {
4
- "useEditorconfig": true,
5
- "formatWithErrors": true,
6
- "lineWidth": 100
7
- },
8
- "javascript": {
9
- "formatter": {
10
- "semicolons": "asNeeded",
11
- "quoteStyle": "single"
12
- }
13
- },
14
- "css": {
15
- "formatter": {
16
- "quoteStyle": "single"
17
- }
18
- },
19
- "linter": {
20
- "rules": {
21
- "style": {
22
- "noParameterAssign": "warn",
23
- "useConsistentArrayType": {
24
- "level": "error",
25
- "options": {
26
- "syntax": "generic"
27
- }
28
- }
29
- },
30
- "complexity": {
31
- "useArrowFunction": "error"
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
  }
@@ -0,0 +1,8 @@
1
+ {
2
+ "plugins": [
3
+ ["@semantic-release/commit-analyzer", { "preset": "conventionalcommits" }],
4
+ ["@semantic-release/release-notes-generator", { "preset": "conventionalcommits" }],
5
+ "@semantic-release/npm",
6
+ "@semantic-release/github"
7
+ ]
8
+ }
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.0.0",
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.4",
38
+ "lefthook": "^1.13.6",
31
39
  "semantic-release": "^24.2.9",
32
40
  "typescript": "^5.9.2"
33
41
  },
34
- "version": "1.0.0"
42
+ "version": "1.2.0"
35
43
  }