@pob/eslint-config-typescript-react 57.3.0 → 58.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,26 @@
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.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v57.3.1...v58.0.0) (2024-08-14)
7
+
8
+ ### ⚠ BREAKING CHANGES
9
+
10
+ * update eslint v9
11
+
12
+ ### Features
13
+
14
+ * update eslint v9 ([6f8647f](https://github.com/christophehurpeau/eslint-config-pob/commit/6f8647f45589e9a9387bd38b9881fd2035ab32ad))
15
+
16
+ Version bump for dependency: @pob/eslint-config
17
+ Version bump for dependency: @pob/eslint-config-typescript
18
+ Version bump for dependency: @pob/eslint-plugin
19
+
20
+
21
+ ## [57.3.1](https://github.com/christophehurpeau/eslint-config-pob/compare/v57.3.0...v57.3.1) (2024-08-11)
22
+
23
+ Version bump for dependency: @pob/eslint-config-typescript
24
+
25
+
6
26
  ## [57.3.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v57.2.0...v57.3.0) (2024-08-11)
7
27
 
8
28
  ### Features
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.0",
3
+ "version": "58.0.0",
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,15 +34,16 @@
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.0",
42
- "@pob/eslint-plugin": "57.0.0",
40
+ "@eslint/compat": "^1.1.1",
41
+ "@pob/eslint-config": "58.0.0",
42
+ "@pob/eslint-config-typescript": "58.0.0",
43
+ "@pob/eslint-plugin": "58.0.0",
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": {