@indigo-reemploi/eslint-config-client 1.2.1 → 2.0.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.
Files changed (2) hide show
  1. package/package.json +4 -5
  2. package/src/eslint.mjs +5 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indigo-reemploi/eslint-config-client",
3
- "version": "1.2.1",
3
+ "version": "2.0.0",
4
4
  "description": "Shared eslint config for Client",
5
5
  "main": "./src/index.mjs",
6
6
  "files": [
@@ -10,22 +10,21 @@
10
10
  "license": "MIT",
11
11
  "packageManager": "yarn@4.14.1",
12
12
  "dependencies": {
13
- "@eslint-react/eslint-plugin": "^4.2.3",
13
+ "@eslint-react/eslint-plugin": "^5.7.7",
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.2",
17
+ "@typescript-eslint/parser": "8.59.3",
18
18
  "eslint-config-prettier": "10.1.8",
19
19
  "eslint-plugin-better-tailwindcss": "^4.4.1",
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.2"
27
+ "typescript-eslint": "8.59.3"
29
28
  },
30
29
  "peerDependencies": {
31
30
  "eslint": "10.3.0",
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 react from "eslint-plugin-react";
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
- rules: {
23
- // from eslint-config-airbnb
24
- "react/display-name": ["off", { ignoreTranspilerName: false }],
25
- "react/react-in-jsx-scope": "off",
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: {
@@ -97,7 +95,6 @@ export default defineConfig(
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
  },