@resolid/config 3.0.1 → 3.0.2

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.
Files changed (2) hide show
  1. package/README.md +20 -3
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -85,8 +85,25 @@ export default [...eslintBowser, ...eslintNode];
85
85
 
86
86
  ```bash
87
87
  npx @eslint/config-inspector@latest
88
- ```
89
-
90
- ## 致谢
88
+ ```
89
+
90
+ ## Prettier 设置
91
+
92
+ ```js
93
+ // .prettierrc.js
94
+
95
+ import prettierConfig from "@resolid/config/prettier";
96
+
97
+ /**
98
+ * @type {import("prettier").Config}
99
+ */
100
+ const config = {
101
+ ...prettierConfig,
102
+ };
103
+
104
+ export default config;
105
+ ```
106
+
107
+ ## 致谢
91
108
 
92
109
  - [ESLint Config Inspector](https://github.com/eslint/config-inspector) 用于检查和理解 ESLint 平面配置的可视化工具。
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@resolid/config",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
- "description": "Resolid 通用配置",
6
+ "description": "Eslint and Prettier config",
7
7
  "author": "Huijie Wei",
8
8
  "license": "MIT",
9
9
  "keywords": [
@@ -38,12 +38,12 @@
38
38
  "typescript-eslint": "^8.18.1"
39
39
  },
40
40
  "devDependencies": {
41
- "@arethetypeswrong/cli": "^0.17.1",
41
+ "@arethetypeswrong/cli": "^0.17.2",
42
42
  "@changesets/changelog-github": "^0.5.0",
43
43
  "@changesets/cli": "^2.27.11",
44
44
  "@commitlint/cli": "^19.6.1",
45
45
  "@commitlint/config-conventional": "^19.6.0",
46
- "lefthook": "^1.9.3",
46
+ "lefthook": "^1.10.0",
47
47
  "prettier": "^3.4.2"
48
48
  },
49
49
  "peerDependencies": {