@geops/eslint-config-react 1.5.0-beta.1 → 1.5.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 +17 -5
- package/index.js +16 -1
- package/package-lock.json +5200 -0
- package/package.json +7 -7
package/flat/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import perfectionist from "eslint-plugin-perfectionist";
|
|
|
5
5
|
import prettier from "eslint-plugin-prettier/recommended";
|
|
6
6
|
import react from "eslint-plugin-react";
|
|
7
7
|
import tseslint from "typescript-eslint";
|
|
8
|
-
import pluginCypress from
|
|
8
|
+
import pluginCypress from "eslint-plugin-cypress/flat";
|
|
9
9
|
import globals from "globals";
|
|
10
10
|
// FlatCompat convert old definition to the new ones
|
|
11
11
|
const compat = new FlatCompat();
|
|
@@ -22,7 +22,7 @@ export default [
|
|
|
22
22
|
...globals.mocha,
|
|
23
23
|
...globals.vitest,
|
|
24
24
|
...pluginCypress.globals,
|
|
25
|
-
}
|
|
25
|
+
},
|
|
26
26
|
},
|
|
27
27
|
settings: {
|
|
28
28
|
react: { version: "detect" },
|
|
@@ -47,10 +47,22 @@ export default [
|
|
|
47
47
|
prettier,
|
|
48
48
|
{
|
|
49
49
|
rules: {
|
|
50
|
-
"
|
|
50
|
+
"@next/next/google-font-display": "warn",
|
|
51
|
+
"@next/next/google-font-preconnect": "warn",
|
|
52
|
+
"@next/next/no-page-custom-font": "warn",
|
|
53
|
+
"@next/next/no-img-element": "warn",
|
|
54
|
+
"@typescript-eslint/no-empty-function": "warn",
|
|
55
|
+
"@typescript-eslint/no-unsafe-member-access": "warn",
|
|
56
|
+
"@typescript-eslint/no-unsafe-call": "warn",
|
|
57
|
+
"@typescript-eslint/no-unsafe-assignment": "warn",
|
|
58
|
+
"@typescript-eslint/prefer-nullish-coalescing": "warn",
|
|
51
59
|
curly: "error",
|
|
52
|
-
"
|
|
60
|
+
"arrow-body-style": ["error", "always"],
|
|
61
|
+
"no-console": "warn",
|
|
62
|
+
"prefer-template": "error",
|
|
63
|
+
"react-hooks/exhaustive-deps": "error",
|
|
64
|
+
"react-compiler/react-compiler": "warn",
|
|
53
65
|
},
|
|
54
|
-
}
|
|
66
|
+
}
|
|
55
67
|
),
|
|
56
68
|
];
|
package/index.js
CHANGED
|
@@ -20,7 +20,12 @@ module.exports = {
|
|
|
20
20
|
},
|
|
21
21
|
plugins: ["eslint-plugin-react-compiler"],
|
|
22
22
|
rules: {
|
|
23
|
-
"
|
|
23
|
+
"arrow-body-style": ["error", "always"],
|
|
24
|
+
curly: "error",
|
|
25
|
+
"no-console": "warn",
|
|
26
|
+
"prefer-template": "error",
|
|
27
|
+
"react-hooks/exhaustive-deps": "error",
|
|
28
|
+
"react-compiler/react-compiler": "warn",
|
|
24
29
|
"jsx-a11y/click-events-have-key-events": "error",
|
|
25
30
|
"perfectionist/sort-imports": [
|
|
26
31
|
"error",
|
|
@@ -57,8 +62,18 @@ module.exports = {
|
|
|
57
62
|
"perfectionist/sort-modules": "off",
|
|
58
63
|
"react-compiler/react-compiler": "error",
|
|
59
64
|
"react/destructuring-assignment": "error",
|
|
65
|
+
"@next/next/google-font-display": "warn",
|
|
66
|
+
"@next/next/google-font-preconnect": "warn",
|
|
67
|
+
"@next/next/no-page-custom-font": "warn",
|
|
68
|
+
"@next/next/no-img-element": "warn",
|
|
69
|
+
"@typescript-eslint/consistent-type-imports": "error",
|
|
60
70
|
"@typescript-eslint/no-shadow": "error",
|
|
61
71
|
"@typescript-eslint/no-use-before-define": "error",
|
|
72
|
+
"@typescript-eslint/no-empty-function": "warn",
|
|
73
|
+
"@typescript-eslint/no-unsafe-member-access": "warn",
|
|
74
|
+
"@typescript-eslint/no-unsafe-call": "warn",
|
|
75
|
+
"@typescript-eslint/no-unsafe-assignment": "warn",
|
|
76
|
+
"@typescript-eslint/prefer-nullish-coalescing": "warn",
|
|
62
77
|
},
|
|
63
78
|
settings: {
|
|
64
79
|
react: { version: "detect" },
|