@australiangreens/eslint-plugin-ag-internal 0.1.0 → 0.2.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.
@@ -2,6 +2,7 @@ import jsxA11yPlugin from 'eslint-plugin-jsx-a11y';
2
2
  import reactPlugin from 'eslint-plugin-react';
3
3
  import reactHooksPlugin from 'eslint-plugin-react-hooks';
4
4
  import reactRefreshPlugin from 'eslint-plugin-react-refresh';
5
+ import reactYouMightNotNeedAnEffectPlugin from 'eslint-plugin-react-you-might-not-need-an-effect';
5
6
  import { pluginName } from '../util.js';
6
7
  const config = [
7
8
  jsxA11yPlugin.flatConfigs.strict,
@@ -50,5 +51,9 @@ const config = [
50
51
  'react-refresh/only-export-components': 'off',
51
52
  },
52
53
  },
54
+ // All recommended rules in eslint-plugin-react-you-might-not-need-an-effect
55
+ // are enabled as warnings, unlike other plugins, we do not override this
56
+ // for now
57
+ reactYouMightNotNeedAnEffectPlugin.configs.recommended,
53
58
  ];
54
59
  export default config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@australiangreens/eslint-plugin-ag-internal",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "homepage": "https://github.com/australiangreens/eslint-plugin-ag-internal#readme",
@@ -38,13 +38,14 @@
38
38
  "eslint-plugin-jsx-a11y": "^6.10.2",
39
39
  "eslint-plugin-react": "^7.37.5",
40
40
  "eslint-plugin-react-hooks": "^5.2.0",
41
- "eslint-plugin-react-refresh": "^0.4.21",
41
+ "eslint-plugin-react-refresh": "^0.4.22",
42
+ "eslint-plugin-react-you-might-not-need-an-effect": "^0.5.4",
42
43
  "eslint-plugin-tsdoc": "^0.4.0",
43
- "typescript-eslint": "^8.44.1"
44
+ "typescript-eslint": "^8.45.0"
44
45
  },
45
46
  "devDependencies": {
46
47
  "@types/eslint-plugin-jsx-a11y": "^6.10.0",
47
- "@types/node": "^24.5.2",
48
+ "@types/node": "^24.6.0",
48
49
  "eslint": "^9.36.0",
49
50
  "globals": "^16.4.0",
50
51
  "rimraf": "^6.0.1",