@indigo-reemploi/eslint-config-client 1.2.1 → 2.0.1
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/package.json +6 -7
- package/src/eslint.mjs +15 -18
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@indigo-reemploi/eslint-config-client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Shared eslint config for Client",
|
|
5
5
|
"main": "./src/index.mjs",
|
|
6
6
|
"files": [
|
|
@@ -10,25 +10,24 @@
|
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"packageManager": "yarn@4.14.1",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@eslint-react/eslint-plugin": "^
|
|
13
|
+
"@eslint-react/eslint-plugin": "^5.8.1",
|
|
14
14
|
"@eslint/compat": "2.1.0",
|
|
15
15
|
"@eslint/js": "10.0.1",
|
|
16
16
|
"@types/eslint__js": "9.14.0",
|
|
17
|
-
"@typescript-eslint/parser": "8.59.
|
|
17
|
+
"@typescript-eslint/parser": "8.59.4",
|
|
18
18
|
"eslint-config-prettier": "10.1.8",
|
|
19
|
-
"eslint-plugin-better-tailwindcss": "^4.
|
|
19
|
+
"eslint-plugin-better-tailwindcss": "^4.5.0",
|
|
20
20
|
"eslint-plugin-import": "2.32.0",
|
|
21
21
|
"eslint-plugin-jest": "29.15.2",
|
|
22
22
|
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
23
23
|
"eslint-plugin-prettier": "5.5.5",
|
|
24
|
-
"eslint-plugin-react": "7.37.5",
|
|
25
24
|
"eslint-plugin-simple-import-sort": "13.0.0",
|
|
26
25
|
"eslint-plugin-unused-imports": "4.4.1",
|
|
27
26
|
"prettier-plugin-tailwindcss": "0.8.0",
|
|
28
|
-
"typescript-eslint": "8.59.
|
|
27
|
+
"typescript-eslint": "8.59.4"
|
|
29
28
|
},
|
|
30
29
|
"peerDependencies": {
|
|
31
|
-
"eslint": "10.
|
|
30
|
+
"eslint": "10.4.0",
|
|
32
31
|
"jest": "^29.7.0 || ^30.0.0",
|
|
33
32
|
"prettier": "3.8.3",
|
|
34
33
|
"typescript": "^6.0.3"
|
package/src/eslint.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import js from "@eslint/js";
|
|
|
3
3
|
import jest from "eslint-plugin-jest";
|
|
4
4
|
import jsxA11y from "eslint-plugin-jsx-a11y";
|
|
5
5
|
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
|
|
6
|
-
import
|
|
6
|
+
import eslintReact from "@eslint-react/eslint-plugin";
|
|
7
7
|
import simpleImportSort from "eslint-plugin-simple-import-sort";
|
|
8
8
|
import unusedImports from "eslint-plugin-unused-imports";
|
|
9
9
|
import tseslint from "typescript-eslint";
|
|
@@ -17,13 +17,11 @@ export default defineConfig(
|
|
|
17
17
|
tseslint.configs.recommended,
|
|
18
18
|
jest.configs["flat/recommended"],
|
|
19
19
|
jsxA11y.flatConfigs.recommended,
|
|
20
|
-
react.configs.flat.recommended,
|
|
21
20
|
{
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
},
|
|
21
|
+
files: ["**/*.{js,jsx,cjs,mjs,ts,tsx,cts,mts}"],
|
|
22
|
+
extends: [
|
|
23
|
+
eslintReact.configs["recommended-typescript"],
|
|
24
|
+
],
|
|
27
25
|
},
|
|
28
26
|
{
|
|
29
27
|
settings: {
|
|
@@ -83,21 +81,20 @@ export default defineConfig(
|
|
|
83
81
|
plugins: {
|
|
84
82
|
"better-tailwindcss": eslintPluginBetterTailwindcss,
|
|
85
83
|
},
|
|
86
|
-
rules: {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
},
|
|
84
|
+
// rules: {
|
|
85
|
+
// eslintPluginBetterTailwindcss.configs["recommended-error"].rules,
|
|
86
|
+
// "better-tailwindcss/enforce-consistent-line-wrapping": "off", // Conflict with prettier
|
|
87
|
+
// "better-tailwindcss/enforce-consistent-class-order": [
|
|
88
|
+
// "error",
|
|
89
|
+
// { order: "official" },
|
|
90
|
+
// ],
|
|
91
|
+
// "better-tailwindcss/no-unregistered-classes": "off",
|
|
92
|
+
// "better-tailwindcss/no-unknown-classes": "off",
|
|
93
|
+
// },
|
|
96
94
|
},
|
|
97
95
|
{
|
|
98
96
|
rules: {
|
|
99
97
|
"jest/expect-expect": "off",
|
|
100
|
-
"react/prop-types": "off",
|
|
101
98
|
"@typescript-eslint/no-empty-object-type": "off",
|
|
102
99
|
},
|
|
103
100
|
},
|