@pengzhanbo/eslint-config-react 0.1.4 → 0.2.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.
Files changed (2) hide show
  1. package/README.md +28 -0
  2. package/package.json +9 -7
package/README.md ADDED
@@ -0,0 +1,28 @@
1
+ # @pengzhanbo/eslint-config-react
2
+
3
+ ## Install
4
+
5
+ ```sh
6
+ pnpm add eslint @pengzhanbo/eslint-config-react
7
+ ```
8
+
9
+ ## Config
10
+
11
+ `.eslintrc`/`.eslintrc.json`
12
+
13
+ ```json
14
+ {
15
+ "extends": "@pengzhanbo"
16
+ }
17
+ ```
18
+
19
+ **package.json**
20
+
21
+ ```json
22
+ {
23
+ "scripts": {
24
+ "lint": "eslint .",
25
+ "lint:fix": "eslint . --fix"
26
+ }
27
+ }
28
+ ```
package/package.json CHANGED
@@ -1,16 +1,18 @@
1
1
  {
2
2
  "name": "@pengzhanbo/eslint-config-react",
3
- "version": "0.1.4",
4
- "license": "MIT",
3
+ "version": "0.2.0",
5
4
  "author": "pengzhanbo <q942450674@outlook.com> (https://github/pengzhanbo/)",
6
- "homepage": "https://github.com/pengzhanbo/eslint-config",
5
+ "license": "MIT",
6
+ "homepage": "https://github.com/pengzhanbo/configs",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "https://github.com/pengzhanbo/eslint-config",
10
- "directory": "packages/react"
9
+ "url": "git@github.com:pengzhanbo/configs.git",
10
+ "directory": "packages/eslint-config-react"
11
11
  },
12
12
  "keywords": [
13
- "eslint-config"
13
+ "eslint-config",
14
+ "react",
15
+ "typescript"
14
16
  ],
15
17
  "main": "index.js",
16
18
  "files": [
@@ -20,7 +22,7 @@
20
22
  "eslint": ">=7.4.0"
21
23
  },
22
24
  "dependencies": {
23
- "@pengzhanbo/eslint-config-ts": "0.1.4",
25
+ "@pengzhanbo/eslint-config-ts": "0.2.0",
24
26
  "eslint-plugin-react": "^7.31.8",
25
27
  "eslint-plugin-react-hooks": "^4.6.0"
26
28
  },