kvalita 1.0.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 +50 -0
- package/configs/biome.json +35 -0
- package/configs/commitlint.json +6 -0
- package/package.json +35 -0
package/README.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Kvalita
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/kvalita)
|
|
4
|
+
[](https://github.com/macieklamberski/kvalita/blob/main/LICENSE)
|
|
5
|
+
|
|
6
|
+
Shared linter configurations for TypeScript projects.
|
|
7
|
+
|
|
8
|
+
Kvalita provides reusable, opinionated configurations for maintaining consistent code quality across TypeScript projects.
|
|
9
|
+
|
|
10
|
+
## Installation
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
bun add -d kvalita
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Each configuration can be used independently - install only what your project needs.
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
### Biome Configuration
|
|
21
|
+
|
|
22
|
+
Install the required dependencies:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
bun add -d @biomejs/biome
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Create a `biome.json` file in your project root:
|
|
29
|
+
|
|
30
|
+
```json
|
|
31
|
+
{
|
|
32
|
+
"extends": ["kvalita/biome"]
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Commitlint Configuration
|
|
37
|
+
|
|
38
|
+
Install the required dependencies:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
bun add -d @commitlint/cli @commitlint/config-conventional
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Create a `commitlint.json` file in your project root:
|
|
45
|
+
|
|
46
|
+
```json
|
|
47
|
+
{
|
|
48
|
+
"extends": ["kvalita/commitlint"]
|
|
49
|
+
}
|
|
50
|
+
```
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
}
|
|
35
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "kvalita",
|
|
3
|
+
"description": "Shared linter configurations for TypeScript projects.",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "https://github.com/macieklamberski/kvalita.git"
|
|
7
|
+
},
|
|
8
|
+
"homepage": "https://github.com/macieklamberski/kvalita#readme",
|
|
9
|
+
"bugs": {
|
|
10
|
+
"url": "https://github.com/macieklamberski/kvalita/issues"
|
|
11
|
+
},
|
|
12
|
+
"author": "Maciej Lamberski",
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"type": "commonjs",
|
|
15
|
+
"files": [
|
|
16
|
+
"configs"
|
|
17
|
+
],
|
|
18
|
+
"exports": {
|
|
19
|
+
"./biome": "./configs/biome.json",
|
|
20
|
+
"./commitlint": "./configs/commitlint.json"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"prepare": "lefthook install"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@biomejs/biome": "^2.2.4",
|
|
27
|
+
"@commitlint/cli": "^20.0.0",
|
|
28
|
+
"@commitlint/config-conventional": "^20.0.0",
|
|
29
|
+
"conventional-changelog-conventionalcommits": "^9.1.0",
|
|
30
|
+
"lefthook": "^1.13.4",
|
|
31
|
+
"semantic-release": "^24.2.9",
|
|
32
|
+
"typescript": "^5.9.2"
|
|
33
|
+
},
|
|
34
|
+
"version": "1.0.0"
|
|
35
|
+
}
|