@geops/eslint-config-react 1.6.0-beta.2 → 1.6.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.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: {
@@ -42,5 +42,5 @@ export default defineConfig(
42
42
  settings: {
43
43
  react: { version: "detect" },
44
44
  },
45
- },
45
+ }
46
46
  );