@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.
Files changed (2) hide show
  1. package/README.md +16 -0
  2. 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
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geops/eslint-config-react",
3
- "version": "1.4.0-beta.0",
3
+ "version": "1.5.0-beta.0",
4
4
  "dependencies": {
5
5
  "eslint-config-prettier": "^10.0.1",
6
6
  "eslint-plugin-cypress": "^4.1.0",