@resolid/config 2.0.2 → 2.1.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
@@ -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.7.1/schema.json",
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.0.2",
3
+ "version": "2.1.0",
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
- "biome.json",
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.0",
33
30
  "@biomejs/biome": "^1.9.4",
34
- "typescript": "^5.6.3"
31
+ "@changesets/cli": "^2.27.10",
32
+ "@commitlint/cli": "^19.6.0",
33
+ "@commitlint/config-conventional": "^19.6.0",
34
+ "lefthook": "^1.8.5",
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,9 @@
39
44
  "url": "https://github.com/huijiewei/resolid-config.git"
40
45
  },
41
46
  "scripts": {
42
- "check": "biome check --write ."
47
+ "preinstall": "npx only-allow pnpm",
48
+ "postinstall": "lefthook install",
49
+ "check": "biome check --write .",
50
+ "check-exports": "attw --pack ."
43
51
  }
44
52
  }
File without changes
File without changes