@resolid/config 2.0.2 → 2.1.1
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 +27 -2
- package/package.json +20 -13
- /package/{biome.json → config/biome.json} +0 -0
- /package/{biome.react.json → config/biome.react.json} +0 -0
- /package/{biome.tailwind.json → config/biome.tailwind.json} +0 -0
- /package/{tsconfig.base.json → config/tsconfig.base.json} +0 -0
- /package/{tsconfig.react.json → config/tsconfig.react.json} +0 -0
package/README.md
CHANGED
|
@@ -32,11 +32,36 @@ pnpm add -D @resolid/config
|
|
|
32
32
|
|
|
33
33
|
### Biome 配置
|
|
34
34
|
|
|
35
|
+
#### 普通配置
|
|
36
|
+
|
|
35
37
|
```json
|
|
36
38
|
{
|
|
37
|
-
"$schema": "https://biomejs.dev/schemas/1.
|
|
39
|
+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
|
|
38
40
|
"extends": ["@resolid/config/biome"]
|
|
39
41
|
}
|
|
40
42
|
```
|
|
41
43
|
|
|
42
|
-
|
|
44
|
+
#### React 项目
|
|
45
|
+
|
|
46
|
+
```json
|
|
47
|
+
{
|
|
48
|
+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
|
|
49
|
+
"extends": [
|
|
50
|
+
"@resolid/config/biome",
|
|
51
|
+
"@resolid/config/biome.react"
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
#### TailwindCSS 项目
|
|
57
|
+
|
|
58
|
+
```json
|
|
59
|
+
{
|
|
60
|
+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
|
|
61
|
+
"extends": [
|
|
62
|
+
"@resolid/config/biome",
|
|
63
|
+
"@resolid/config/biome.tailwind"
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
```
|
|
67
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@resolid/config",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"description": "Resolid 通用配置",
|
|
@@ -16,22 +16,27 @@
|
|
|
16
16
|
"provenance": true
|
|
17
17
|
},
|
|
18
18
|
"files": [
|
|
19
|
-
"
|
|
20
|
-
"biome.react.json",
|
|
21
|
-
"biome.tailwind.json",
|
|
22
|
-
"tsconfig.base.json",
|
|
23
|
-
"tsconfig.react.json"
|
|
19
|
+
"config"
|
|
24
20
|
],
|
|
25
21
|
"exports": {
|
|
26
|
-
"./tsconfig.base": "./tsconfig.base.json",
|
|
27
|
-
"./tsconfig.react": "./tsconfig.react.json",
|
|
28
|
-
"./biome": "./biome.json",
|
|
29
|
-
"./biome.react": "./biome.react.json",
|
|
30
|
-
"./biome.tailwind": "./biome.tailwind.json"
|
|
22
|
+
"./tsconfig.base": "./config/tsconfig.base.json",
|
|
23
|
+
"./tsconfig.react": "./config/tsconfig.react.json",
|
|
24
|
+
"./biome": "./config/biome.json",
|
|
25
|
+
"./biome.react": "./config/biome.react.json",
|
|
26
|
+
"./biome.tailwind": "./config/biome.tailwind.json"
|
|
31
27
|
},
|
|
32
28
|
"devDependencies": {
|
|
29
|
+
"@arethetypeswrong/cli": "^0.17.1",
|
|
33
30
|
"@biomejs/biome": "^1.9.4",
|
|
34
|
-
"
|
|
31
|
+
"@changesets/cli": "^2.27.10",
|
|
32
|
+
"@commitlint/cli": "^19.6.0",
|
|
33
|
+
"@commitlint/config-conventional": "^19.6.0",
|
|
34
|
+
"lefthook": "^1.9.0",
|
|
35
|
+
"typescript": "^5.7.2"
|
|
36
|
+
},
|
|
37
|
+
"engines": {
|
|
38
|
+
"node": "20.x",
|
|
39
|
+
"pnpm": "9.x"
|
|
35
40
|
},
|
|
36
41
|
"homepage": "https://www.resolid.tech",
|
|
37
42
|
"repository": {
|
|
@@ -39,6 +44,8 @@
|
|
|
39
44
|
"url": "https://github.com/huijiewei/resolid-config.git"
|
|
40
45
|
},
|
|
41
46
|
"scripts": {
|
|
42
|
-
"
|
|
47
|
+
"preinstall": "npx only-allow pnpm",
|
|
48
|
+
"check": "biome check --write .",
|
|
49
|
+
"check-exports": "attw --pack ."
|
|
43
50
|
}
|
|
44
51
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|