@pob/eslint-config-typescript-react 57.3.1 → 58.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/CHANGELOG.md CHANGED
@@ -3,6 +3,28 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [58.0.1](https://github.com/christophehurpeau/eslint-config-pob/compare/v58.0.0...v58.0.1) (2024-08-25)
7
+
8
+ Version bump for dependency: @pob/eslint-config
9
+ Version bump for dependency: @pob/eslint-config-typescript
10
+ Version bump for dependency: @pob/eslint-plugin
11
+
12
+
13
+ ## [58.0.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v57.3.1...v58.0.0) (2024-08-14)
14
+
15
+ ### ⚠ BREAKING CHANGES
16
+
17
+ * update eslint v9
18
+
19
+ ### Features
20
+
21
+ * update eslint v9 ([6f8647f](https://github.com/christophehurpeau/eslint-config-pob/commit/6f8647f45589e9a9387bd38b9881fd2035ab32ad))
22
+
23
+ Version bump for dependency: @pob/eslint-config
24
+ Version bump for dependency: @pob/eslint-config-typescript
25
+ Version bump for dependency: @pob/eslint-plugin
26
+
27
+
6
28
  ## [57.3.1](https://github.com/christophehurpeau/eslint-config-pob/compare/v57.3.0...v57.3.1) (2024-08-11)
7
29
 
8
30
  Version bump for dependency: @pob/eslint-config-typescript
package/lib/index.js CHANGED
@@ -51,7 +51,7 @@ export default (url) => {
51
51
  }),
52
52
  ...reactConfigs(compat),
53
53
  ...reactHooksConfigs(compat),
54
- ...jsxA11yConfigs(compat),
54
+ ...jsxA11yConfigs,
55
55
  ].map((config) => ({
56
56
  ...config,
57
57
  files: [`**/*.${extensions}`],
@@ -1,5 +1,3 @@
1
- export default (compat) =>
2
- compat.config({
3
- plugins: ["jsx-a11y"],
4
- extends: ["plugin:jsx-a11y/strict"],
5
- });
1
+ import jsxA11y from "eslint-plugin-jsx-a11y";
2
+
3
+ export default [jsxA11y.flatConfigs.strict];
@@ -1,9 +1,28 @@
1
- export default (compat) =>
2
- compat.config({
3
- plugins: ["react-hooks"],
1
+ import { fixupPluginRules } from "@eslint/compat";
2
+
3
+ function legacyPlugin(compat, name, alias = name) {
4
+ const plugin = compat.plugins(name)[0]?.plugins?.[alias];
5
+
6
+ if (!plugin) {
7
+ throw new Error(`Unable to resolve plugin ${name} and/or alias ${alias}`);
8
+ }
9
+
10
+ return fixupPluginRules(plugin);
11
+ }
12
+
13
+ export default (compat) => [
14
+ {
15
+ plugins: {
16
+ "react-hooks": legacyPlugin(
17
+ compat,
18
+ "eslint-plugin-react-hooks",
19
+ "react-hooks",
20
+ ),
21
+ },
4
22
 
5
23
  rules: {
6
24
  "react-hooks/rules-of-hooks": "error",
7
25
  "react-hooks/exhaustive-deps": "error",
8
26
  },
9
- });
27
+ },
28
+ ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pob/eslint-config-typescript-react",
3
- "version": "57.3.1",
3
+ "version": "58.0.1",
4
4
  "description": "eslint config files",
5
5
  "keywords": [],
6
6
  "author": "Christophe Hurpeau <christophe@hurpeau.com> (http://christophe.hurpeau.com/)",
@@ -13,7 +13,7 @@
13
13
  "homepage": "https://github.com/christophehurpeau/eslint-config-pob",
14
14
  "type": "module",
15
15
  "engines": {
16
- "node": ">=18.12.0"
16
+ "node": ">=18.18.0"
17
17
  },
18
18
  "sideEffects": false,
19
19
  "main": "./lib/index.js",
@@ -34,19 +34,20 @@
34
34
  "pob": {},
35
35
  "prettier": "@pob/root/prettier-config",
36
36
  "peerDependencies": {
37
- "eslint": "^8.56.0"
37
+ "eslint": "^9.9.0"
38
38
  },
39
39
  "dependencies": {
40
- "@pob/eslint-config": "57.3.0",
41
- "@pob/eslint-config-typescript": "57.3.1",
42
- "@pob/eslint-plugin": "57.0.0",
40
+ "@eslint/compat": "^1.1.1",
41
+ "@pob/eslint-config": "58.0.1",
42
+ "@pob/eslint-config-typescript": "58.0.1",
43
+ "@pob/eslint-plugin": "58.0.1",
43
44
  "eslint-plugin-import": "2.29.1",
44
- "eslint-plugin-jsx-a11y": "6.8.0",
45
- "eslint-plugin-react": "7.34.1",
45
+ "eslint-plugin-jsx-a11y": "6.9.0",
46
+ "eslint-plugin-react": "7.35.0",
46
47
  "eslint-plugin-react-hooks": "4.6.2"
47
48
  },
48
49
  "devDependencies": {
49
- "@types/react": "18.3.3",
50
+ "@types/react": "18.3.4",
50
51
  "react": "18.3.1",
51
52
  "typescript": "5.5.4"
52
53
  }