@geops/eslint-config-react 1.6.0-beta.2 → 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
@@ -1,12 +1,12 @@
1
1
  import eslint from "@eslint/js";
2
2
  import { defineConfig } from "eslint/config";
3
- import cypressPlugin from "eslint-plugin-cypress/flat";
3
+ import cypress from "eslint-plugin-cypress/flat";
4
4
  import jsxA11y from "eslint-plugin-jsx-a11y";
5
- import mochaPlugin from "eslint-plugin-mocha";
5
+ import mocha from "eslint-plugin-mocha";
6
6
  import perfectionist from "eslint-plugin-perfectionist";
7
- import prettierPlugin from "eslint-plugin-prettier/recommended";
8
- import reactPlugin from "eslint-plugin-react";
9
- import reactHooksPlugin from "eslint-plugin-react-hooks";
7
+ import prettier from "eslint-plugin-prettier/recommended";
8
+ import react from "eslint-plugin-react";
9
+ import reactHooks from "eslint-plugin-react-hooks";
10
10
  import globals from "globals";
11
11
  import tseslint from "typescript-eslint";
12
12
 
@@ -16,14 +16,14 @@ export default defineConfig(
16
16
  eslint.configs.recommended,
17
17
  tseslint.configs.recommendedTypeChecked,
18
18
  tseslint.configs.stylisticTypeChecked,
19
- cypressPlugin.configs.recommended,
19
+ cypress.configs.recommended,
20
20
  jsxA11y.flatConfigs.recommended,
21
- mochaPlugin.configs.recommended,
21
+ mocha.configs.recommended,
22
22
  perfectionist.configs["recommended-alphabetical"],
23
- reactPlugin.configs.flat.recommended,
24
- reactPlugin.configs.flat["jsx-runtime"], // Avoid having the React-in-jsx-scope rule activated
25
- reactHooksPlugin.configs.flat.recommended,
26
- prettierPlugin,
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
27
  {
28
28
  languageOptions: {
29
29
  globals: {
package/package.json CHANGED
@@ -1,24 +1,25 @@
1
1
  {
2
2
  "name": "@geops/eslint-config-react",
3
- "version": "1.6.0-beta.2",
3
+ "version": "1.7.0-beta.0",
4
4
  "dependencies": {
5
5
  "eslint-config-prettier": "^10.1.8",
6
- "eslint-plugin-cypress": "^5.2.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.1",
9
+ "eslint-plugin-perfectionist": "^5.6.0",
10
10
  "eslint-plugin-prettier": "^5.5.4",
11
11
  "eslint-plugin-react": "^7.37.5",
12
12
  "eslint-plugin-react-hooks": "^7.0.1",
13
- "globals": "^16.4.0",
14
- "typescript-eslint": "^8.46.2"
13
+ "globals": "^17.3.0",
14
+ "peers": "^0.1.0",
15
+ "typescript-eslint": "^8.45.0"
15
16
  },
16
17
  "exports": {
17
18
  ".": "./index.js",
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
  }