@nannygoose-utils/eslint-config 1.0.0 → 1.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 +17 -0
- package/package.json +7 -7
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @nannygoose-utils/eslint-config
|
|
2
|
+
|
|
3
|
+
保姆鹅团队统一的 ESLint + Prettier 配置,支持React 技术栈。
|
|
4
|
+
|
|
5
|
+
## 📦 安装
|
|
6
|
+
|
|
7
|
+
使用 npm、yarn 或 pnpm 安装:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
# npm
|
|
11
|
+
npm install @nannygoose-utils/eslint-config --save-dev
|
|
12
|
+
|
|
13
|
+
# yarn
|
|
14
|
+
yarn add @nannygoose-utils/eslint-config --dev
|
|
15
|
+
|
|
16
|
+
# pnpm
|
|
17
|
+
pnpm add @nannygoose-utils/eslint-config --save-dev
|
package/package.json
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nannygoose-utils/eslint-config",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "保姆鹅-通用 React 项目 ESLint + Prettier 配置包(支持 Web、Taro、Electron 等所有 React 技术栈)",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
|
-
"
|
|
8
|
+
"version:patch": "npm version patch",
|
|
9
|
+
"release": "npm run version:patch && npm publish --access public"
|
|
9
10
|
},
|
|
10
|
-
|
|
11
|
+
"files": [
|
|
11
12
|
"index.js",
|
|
12
13
|
"prettier.config.js"
|
|
13
14
|
],
|
|
14
15
|
"keywords": [],
|
|
15
16
|
"author": "",
|
|
16
17
|
"license": "ISC",
|
|
17
|
-
"
|
|
18
|
+
"peerDependencies": {
|
|
18
19
|
"eslint": "^8.12.0",
|
|
19
20
|
"eslint-config-prettier": "^10.1.8",
|
|
20
21
|
"eslint-plugin-prettier": "^5.5.5",
|
|
21
|
-
"eslint-plugin-react": "^7.
|
|
22
|
-
"eslint-plugin-react-hooks": "^
|
|
22
|
+
"eslint-plugin-react": "^7.8.2",
|
|
23
|
+
"eslint-plugin-react-hooks": "^4.2.0",
|
|
23
24
|
"prettier": "^3.7.4"
|
|
24
25
|
}
|
|
25
26
|
}
|
|
26
|
-
|