@geops/eslint-config-react 1.4.0-beta.0 → 1.5.0-beta.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.
- package/README.md +16 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,6 +6,20 @@ Run the following command to install the ESLint configuration for React projects
|
|
|
6
6
|
npm install --save-dev @geops/eslint-config-react
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
+
## Using flat config (eslint >= 9)
|
|
10
|
+
|
|
11
|
+
Then, create a `.eslintrc.mjs` file in the root of your project with the following content:
|
|
12
|
+
|
|
13
|
+
```javascript
|
|
14
|
+
import geopsFlatConfig from '@geops/eslint-config-react/flat';
|
|
15
|
+
|
|
16
|
+
export default [
|
|
17
|
+
...geopsFlatConfig,
|
|
18
|
+
];
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Using deprecated config (eslint < 9)
|
|
22
|
+
|
|
9
23
|
Then, create a `.eslintrc.json` file in the root of your project with the following content:
|
|
10
24
|
|
|
11
25
|
```javascript
|
|
@@ -13,3 +27,5 @@ Then, create a `.eslintrc.json` file in the root of your project with the follow
|
|
|
13
27
|
"extends": ["@geops/eslint-config-react"]
|
|
14
28
|
}
|
|
15
29
|
```
|
|
30
|
+
|
|
31
|
+
|