@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 +20 -0
- package/lib/index.js +1 -1
- package/lib/plugins/jsx-a11y.js +3 -5
- package/lib/plugins/react-hooks.js +23 -4
- package/package.json +9 -8
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
package/lib/plugins/jsx-a11y.js
CHANGED
|
@@ -1,9 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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": "
|
|
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.
|
|
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": "^
|
|
37
|
+
"eslint": "^9.9.0"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@
|
|
41
|
-
"@pob/eslint-config
|
|
42
|
-
"@pob/eslint-
|
|
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.
|
|
45
|
-
"eslint-plugin-react": "7.
|
|
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": {
|