eslint-config-fe 2.1.0 → 2.1.1
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/.github/workflows/npm-publish.yml +0 -1
- package/README.md +1 -19
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
## Installation
|
|
11
11
|
|
|
12
12
|
```bash
|
|
13
|
-
npm install --save-dev eslint
|
|
13
|
+
npm install --save-dev eslint eslint-config-fe
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
## Usage
|
|
@@ -27,30 +27,12 @@ npm install --save-dev eslint @babel/core @babel/eslint-parser @babel/eslint-plu
|
|
|
27
27
|
|
|
28
28
|
[learn more](https://github.com/fengxinming/eslint-config-fe/blob/main/index.js)
|
|
29
29
|
|
|
30
|
-
#### Base rules .eslintrc
|
|
31
|
-
|
|
32
|
-
```js
|
|
33
|
-
{
|
|
34
|
-
extends: ["fe/base"]
|
|
35
|
-
}
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
[learn more](https://github.com/fengxinming/eslint-config-fe/blob/main/base.js)
|
|
39
|
-
|
|
40
30
|
### React eslint config
|
|
41
31
|
|
|
42
32
|
```bash
|
|
43
33
|
npm install --save-dev @babel/preset-react eslint-plugin-react eslint-plugin-react-hooks
|
|
44
34
|
```
|
|
45
35
|
|
|
46
|
-
#### babel.config.js
|
|
47
|
-
|
|
48
|
-
```js
|
|
49
|
-
module.exports = {
|
|
50
|
-
presets: ['@babel/preset-react']
|
|
51
|
-
};
|
|
52
|
-
```
|
|
53
|
-
|
|
54
36
|
#### .eslintrc
|
|
55
37
|
|
|
56
38
|
```js
|