bochi 5.0.0 → 5.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 +13 -4
- package/biome.json +3 -2
- package/dprint.json +34 -0
- package/package.json +16 -8
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# bochi
|
|
2
2
|
|
|
3
|
-
`tsconfig.json` / `prettier` / `biome` base configs
|
|
3
|
+
`tsconfig.json` / `prettier` / `biome` / `dprint` base configs
|
|
4
4
|
|
|
5
|
-
> Required:
|
|
5
|
+
> *Required: TypeScript >= `5.5 beta`*
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -52,7 +52,7 @@ Common config:
|
|
|
52
52
|
|
|
53
53
|
#### React Project
|
|
54
54
|
|
|
55
|
-
> Required:
|
|
55
|
+
> *Required: TypeScript >= `5`*
|
|
56
56
|
|
|
57
57
|
```ts
|
|
58
58
|
{
|
|
@@ -61,7 +61,7 @@ Common config:
|
|
|
61
61
|
}
|
|
62
62
|
```
|
|
63
63
|
|
|
64
|
-
###
|
|
64
|
+
### Advanced
|
|
65
65
|
|
|
66
66
|
```ts
|
|
67
67
|
{
|
|
@@ -91,6 +91,15 @@ module.exports = require('bochi/prettier')
|
|
|
91
91
|
}
|
|
92
92
|
```
|
|
93
93
|
|
|
94
|
+
## Dprint
|
|
95
|
+
|
|
96
|
+
```ts
|
|
97
|
+
// dprint.json
|
|
98
|
+
{
|
|
99
|
+
"extends": "./node_modules/bochi/dprint.json"
|
|
100
|
+
}
|
|
101
|
+
```
|
|
102
|
+
|
|
94
103
|
## Package version
|
|
95
104
|
|
|
96
105
|
Package Name|Version
|
package/biome.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://biomejs.dev/schemas/1.
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/1.9.0/schema.json",
|
|
3
3
|
"files": {
|
|
4
4
|
"ignore": [
|
|
5
5
|
"**/node_modules/**",
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"enabled": true,
|
|
18
18
|
"indentStyle": "space",
|
|
19
19
|
"lineWidth": 80,
|
|
20
|
-
"indentWidth": 2
|
|
20
|
+
"indentWidth": 2,
|
|
21
|
+
"useEditorconfig": true
|
|
21
22
|
},
|
|
22
23
|
"javascript": {
|
|
23
24
|
"formatter": {
|
package/dprint.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lineWidth": 80,
|
|
3
|
+
"useTabs": false,
|
|
4
|
+
"indentWidth": 2,
|
|
5
|
+
"typescript": {
|
|
6
|
+
"semiColons": "asi",
|
|
7
|
+
"quoteStyle": "preferSingle",
|
|
8
|
+
"indentWidth": 2,
|
|
9
|
+
"useTabs": false,
|
|
10
|
+
"lineWidth": 80
|
|
11
|
+
},
|
|
12
|
+
"json": {
|
|
13
|
+
"indentWidth": 2,
|
|
14
|
+
"useTabs": false,
|
|
15
|
+
"lineWidth": 80
|
|
16
|
+
},
|
|
17
|
+
"excludes": [
|
|
18
|
+
"**/*-lock.json",
|
|
19
|
+
"**/*-lock.yaml",
|
|
20
|
+
"**/node_modules/**",
|
|
21
|
+
"**/dist/**",
|
|
22
|
+
"**/build/**",
|
|
23
|
+
"**/compiled/**",
|
|
24
|
+
"**/test/**",
|
|
25
|
+
"**/tests/**",
|
|
26
|
+
"**/coverage/**",
|
|
27
|
+
"**/fixtures/**",
|
|
28
|
+
"**/__fixtures__/**"
|
|
29
|
+
],
|
|
30
|
+
"plugins": [
|
|
31
|
+
"https://plugins.dprint.dev/typescript-0.95.8.wasm",
|
|
32
|
+
"https://plugins.dprint.dev/json-0.20.0.wasm"
|
|
33
|
+
]
|
|
34
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bochi",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0",
|
|
4
4
|
"description": "tsconfig.json base configs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tsconfig",
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"lib-native-esm.json",
|
|
21
21
|
"project.json",
|
|
22
22
|
"prettier.js",
|
|
23
|
-
"biome.json"
|
|
23
|
+
"biome.json",
|
|
24
|
+
"dprint.json"
|
|
24
25
|
],
|
|
25
26
|
"exports": {
|
|
26
27
|
"./package.json": "./package.json",
|
|
@@ -41,6 +42,9 @@
|
|
|
41
42
|
},
|
|
42
43
|
"./biome": {
|
|
43
44
|
"default": "./biome.json"
|
|
45
|
+
},
|
|
46
|
+
"./dprint": {
|
|
47
|
+
"default": "./dprint.json"
|
|
44
48
|
}
|
|
45
49
|
},
|
|
46
50
|
"scripts": {
|
|
@@ -48,16 +52,20 @@
|
|
|
48
52
|
"push": "npm publish --registry=https://registry.npmjs.com/"
|
|
49
53
|
},
|
|
50
54
|
"devDependencies": {
|
|
51
|
-
"@biomejs/biome": "^1.
|
|
52
|
-
"@types/node": "^18.19.
|
|
55
|
+
"@biomejs/biome": "^1.9.0",
|
|
56
|
+
"@types/node": "^18.19.50",
|
|
53
57
|
"commit-verify": "^1.1.0",
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
58
|
+
"dprint": "^0.50.1",
|
|
59
|
+
"husky": "^9.1.6",
|
|
60
|
+
"prettier": "^3.3.3",
|
|
61
|
+
"typescript": "5.6.2"
|
|
57
62
|
},
|
|
58
63
|
"publishConfig": {
|
|
59
64
|
"access": "public"
|
|
60
65
|
},
|
|
61
66
|
"license": "MIT",
|
|
62
|
-
"packageManager": "pnpm@
|
|
67
|
+
"packageManager": "pnpm@10.13.1",
|
|
68
|
+
"pnpm": {
|
|
69
|
+
"neverBuiltDependencies": []
|
|
70
|
+
}
|
|
63
71
|
}
|