@geops/eslint-config-react 1.6.0-beta.0 → 1.6.0-beta.2
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 +12 -12
- package/package.json +5 -5
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
|
|
3
|
+
import cypressPlugin from "eslint-plugin-cypress/flat";
|
|
4
4
|
import jsxA11y from "eslint-plugin-jsx-a11y";
|
|
5
|
-
import
|
|
5
|
+
import mochaPlugin from "eslint-plugin-mocha";
|
|
6
6
|
import perfectionist from "eslint-plugin-perfectionist";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
7
|
+
import prettierPlugin from "eslint-plugin-prettier/recommended";
|
|
8
|
+
import reactPlugin from "eslint-plugin-react";
|
|
9
|
+
import reactHooksPlugin 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
|
-
|
|
19
|
+
cypressPlugin.configs.recommended,
|
|
20
20
|
jsxA11y.flatConfigs.recommended,
|
|
21
|
-
|
|
21
|
+
mochaPlugin.configs.recommended,
|
|
22
22
|
perfectionist.configs["recommended-alphabetical"],
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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,
|
|
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
|
);
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geops/eslint-config-react",
|
|
3
|
-
"version": "1.6.0-beta.
|
|
3
|
+
"version": "1.6.0-beta.2",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"eslint-config-prettier": "^10.1.8",
|
|
6
6
|
"eslint-plugin-cypress": "^5.2.0",
|
|
7
7
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
8
8
|
"eslint-plugin-mocha": "^11.2.0",
|
|
9
|
-
"eslint-plugin-perfectionist": "^4.15.
|
|
9
|
+
"eslint-plugin-perfectionist": "^4.15.1",
|
|
10
10
|
"eslint-plugin-prettier": "^5.5.4",
|
|
11
11
|
"eslint-plugin-react": "^7.37.5",
|
|
12
|
-
"eslint-plugin-react-hooks": "^
|
|
13
|
-
"globals": "^16.
|
|
14
|
-
"typescript-eslint": "^8.
|
|
12
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
13
|
+
"globals": "^16.4.0",
|
|
14
|
+
"typescript-eslint": "^8.46.2"
|
|
15
15
|
},
|
|
16
16
|
"exports": {
|
|
17
17
|
".": "./index.js",
|