@geops/eslint-config-react 1.6.0 → 1.7.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/flat/index.cjs ADDED
@@ -0,0 +1,46 @@
1
+ const eslint = require("@eslint/js");
2
+ const { defineConfig } from require("eslint/config");
3
+ const cypress from require("eslint-plugin-cypress/flat");
4
+ const jsxA11y from require("eslint-plugin-jsx-a11y");
5
+ const mocha from require("eslint-plugin-mocha");
6
+ const perfectionist from require("eslint-plugin-perfectionist");
7
+ const prettier from require("eslint-plugin-prettier/recommended");
8
+ const react from require("eslint-plugin-react");
9
+ const reactHooks from require("eslint-plugin-react-hooks");
10
+ const globals from require("globals");
11
+ const tseslint from require("typescript-eslint");
12
+
13
+ const rules from "../rules.json" with { type: "json" };
14
+
15
+ export default defineConfig(
16
+ eslint.configs.recommended,
17
+ tseslint.configs.recommendedTypeChecked,
18
+ tseslint.configs.stylisticTypeChecked,
19
+ cypress.configs.recommended,
20
+ jsxA11y.flatConfigs.recommended,
21
+ mocha.configs.recommended,
22
+ perfectionist.configs["recommended-alphabetical"],
23
+ react.configs.flat.recommended,
24
+ react.configs.flat["jsx-runtime"], // Avoid having the React-in-jsx-scope rule activated
25
+ reactHooks.configs.recommended,
26
+ prettier,
27
+ {
28
+ languageOptions: {
29
+ globals: {
30
+ ...globals.browser,
31
+ ...globals.es2020,
32
+ ...globals.jest,
33
+ ...globals.mocha,
34
+ ...globals.node,
35
+ },
36
+ parserOptions: {
37
+ projectService: true,
38
+ tsconfigRootDir: import.meta.dirname,
39
+ },
40
+ },
41
+ rules: rules,
42
+ settings: {
43
+ react: { version: "detect" },
44
+ },
45
+ }
46
+ );
package/flat/index.mjs CHANGED
@@ -42,5 +42,5 @@ export default defineConfig(
42
42
  settings: {
43
43
  react: { version: "detect" },
44
44
  },
45
- }
45
+ },
46
46
  );
package/package.json CHANGED
@@ -1,16 +1,17 @@
1
1
  {
2
2
  "name": "@geops/eslint-config-react",
3
- "version": "1.6.0",
3
+ "version": "1.7.0-beta.0",
4
4
  "dependencies": {
5
5
  "eslint-config-prettier": "^10.1.8",
6
- "eslint-plugin-cypress": "^4.3.0",
6
+ "eslint-plugin-cypress": "^6.1.0",
7
7
  "eslint-plugin-jsx-a11y": "^6.10.2",
8
8
  "eslint-plugin-mocha": "^11.2.0",
9
- "eslint-plugin-perfectionist": "^4.15.0",
9
+ "eslint-plugin-perfectionist": "^5.6.0",
10
10
  "eslint-plugin-prettier": "^5.5.4",
11
11
  "eslint-plugin-react": "^7.37.5",
12
- "eslint-plugin-react-hooks": "^6.1.0",
13
- "globals": "^16.0.0",
12
+ "eslint-plugin-react-hooks": "^7.0.1",
13
+ "globals": "^17.3.0",
14
+ "peers": "^0.1.0",
14
15
  "typescript-eslint": "^8.45.0"
15
16
  },
16
17
  "exports": {
@@ -18,7 +19,7 @@
18
19
  "./flat": "./flat/index.mjs"
19
20
  },
20
21
  "peerDependencies": {
21
- "eslint": "^8 || ^9",
22
+ "eslint": "^10",
22
23
  "typescript": "^5"
23
24
  }
24
25
  }