@resolid/config 3.0.0 → 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.
- package/README.md +20 -3
- package/package.json +9 -9
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.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
|
-
"description": "
|
|
6
|
+
"description": "Eslint and Prettier config",
|
|
7
7
|
"author": "Huijie Wei",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"keywords": [
|
|
@@ -26,24 +26,24 @@
|
|
|
26
26
|
"./tsconfig.react": "./tsconfig/react.json"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@eslint/js": "^9.
|
|
29
|
+
"@eslint/js": "^9.17.0",
|
|
30
30
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
31
31
|
"eslint-plugin-n": "^17.15.0",
|
|
32
32
|
"eslint-plugin-react": "^7.37.2",
|
|
33
33
|
"eslint-plugin-react-compiler": "beta",
|
|
34
34
|
"eslint-plugin-react-hooks": "^5.1.0",
|
|
35
35
|
"eslint-plugin-react-refresh": "^0.4.16",
|
|
36
|
-
"globals": "^15.
|
|
36
|
+
"globals": "^15.14.0",
|
|
37
37
|
"prettier-plugin-organize-imports": "^4.1.0",
|
|
38
|
-
"typescript-eslint": "^8.18.
|
|
38
|
+
"typescript-eslint": "^8.18.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@arethetypeswrong/cli": "^0.17.
|
|
41
|
+
"@arethetypeswrong/cli": "^0.17.2",
|
|
42
42
|
"@changesets/changelog-github": "^0.5.0",
|
|
43
|
-
"@changesets/cli": "^2.27.
|
|
44
|
-
"@commitlint/cli": "^19.6.
|
|
43
|
+
"@changesets/cli": "^2.27.11",
|
|
44
|
+
"@commitlint/cli": "^19.6.1",
|
|
45
45
|
"@commitlint/config-conventional": "^19.6.0",
|
|
46
|
-
"lefthook": "^1.
|
|
46
|
+
"lefthook": "^1.10.0",
|
|
47
47
|
"prettier": "^3.4.2"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|