@australiangreens/eslint-plugin-ag-internal 0.3.0 → 0.3.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/README.md +1 -1
- package/dist/configs/react.js +8 -4
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -89,7 +89,7 @@ recommendedJsOnly with the addition of the following:
|
|
|
89
89
|
jsx-runtime rules.
|
|
90
90
|
|
|
91
91
|
- [react-hooks plugin](https://www.npmjs.com/package/eslint-plugin-react-hooks)'s
|
|
92
|
-
|
|
92
|
+
two rules as errors.
|
|
93
93
|
|
|
94
94
|
- [react-refresh plugin](https://www.npmjs.com/package/eslint-plugin-react-refresh)'s
|
|
95
95
|
single rule.
|
package/dist/configs/react.js
CHANGED
|
@@ -33,14 +33,18 @@ const config = [
|
|
|
33
33
|
},
|
|
34
34
|
},
|
|
35
35
|
},
|
|
36
|
-
//
|
|
37
|
-
|
|
36
|
+
// reactHooksPlugin.configs.recommended references the plugin incorrectly as a
|
|
37
|
+
// string instead of an object, so won't work using our normal pattern.
|
|
38
|
+
// See https://github.com/facebook/react/issues/34679
|
|
39
|
+
// Luckily there are only two rules we just do it ourselves.
|
|
38
40
|
{
|
|
39
41
|
name: `${pluginName()}/react-hooks`,
|
|
42
|
+
plugins: {
|
|
43
|
+
'react-hooks': reactHooksPlugin,
|
|
44
|
+
},
|
|
40
45
|
rules: {
|
|
41
|
-
// This is a warning in recommended-latest, we treat as an error
|
|
42
46
|
'react-hooks/exhaustive-deps': 'error',
|
|
43
|
-
|
|
47
|
+
'react-hooks/rules-of-hooks': 'error',
|
|
44
48
|
},
|
|
45
49
|
},
|
|
46
50
|
reactRefreshPlugin.configs.recommended,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@australiangreens/eslint-plugin-ag-internal",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://github.com/australiangreens/eslint-plugin-ag-internal#readme",
|
|
@@ -37,19 +37,19 @@
|
|
|
37
37
|
"eslint-plugin-import": "^2.32.0",
|
|
38
38
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
39
39
|
"eslint-plugin-react": "^7.37.5",
|
|
40
|
-
"eslint-plugin-react-hooks": "^
|
|
41
|
-
"eslint-plugin-react-refresh": "^0.4.
|
|
42
|
-
"eslint-plugin-react-you-might-not-need-an-effect": "^0.5.
|
|
40
|
+
"eslint-plugin-react-hooks": "^6.1.0",
|
|
41
|
+
"eslint-plugin-react-refresh": "^0.4.23",
|
|
42
|
+
"eslint-plugin-react-you-might-not-need-an-effect": "^0.5.5",
|
|
43
43
|
"eslint-plugin-tsdoc": "^0.4.0",
|
|
44
44
|
"typescript-eslint": "^8.45.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/eslint-plugin-jsx-a11y": "^6.10.0",
|
|
48
|
-
"@types/node": "^24.6.
|
|
48
|
+
"@types/node": "^24.6.2",
|
|
49
49
|
"eslint": "^9.36.0",
|
|
50
50
|
"globals": "^16.4.0",
|
|
51
51
|
"rimraf": "^6.0.1",
|
|
52
|
-
"typescript": "^5.9.
|
|
52
|
+
"typescript": "^5.9.3"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"eslint": ">=9.26.0"
|