eslint-config-seekingalpha-react 10.31.1 → 10.33.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
@@ -1,5 +1,13 @@
1
1
  # Change Log
2
2
 
3
+ ## 10.33.0 - 2026-04-17
4
+
5
+ - [deps] upgrade `eslint-plugin-react-hooks` to version `7.1.0`
6
+
7
+ ## 10.32.0 - 2026-04-07
8
+
9
+ - [new] extend oxlint config
10
+
3
11
  ## 10.31.1 - 2026-03-12
4
12
 
5
13
  - [new] extend oxlint config
package/README.md CHANGED
@@ -6,7 +6,7 @@ This package includes the shareable ESLint config used by [SeekingAlpha](https:/
6
6
 
7
7
  Install ESLint and all [Peer Dependencies](https://nodejs.org/en/blog/npm/peer-dependencies/):
8
8
 
9
- npm install eslint@9.39.2 eslint-plugin-jsx-a11y@6.10.2 eslint-plugin-react@7.37.5 eslint-plugin-react-hooks@7.0.1 --save-dev
9
+ npm install eslint@9.39.2 eslint-plugin-jsx-a11y@6.10.2 eslint-plugin-react@7.37.5 eslint-plugin-react-hooks@7.1.0 --save-dev
10
10
 
11
11
  Install SeekingAlpha shareable ESLint:
12
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-seekingalpha-react",
3
- "version": "10.31.1",
3
+ "version": "10.33.0",
4
4
  "description": "SeekingAlpha's sharable React.js ESLint config",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -53,13 +53,13 @@
53
53
  "eslint": "9.39.2",
54
54
  "eslint-plugin-jsx-a11y": "6.10.2",
55
55
  "eslint-plugin-react": "7.37.5",
56
- "eslint-plugin-react-hooks": "7.0.1"
56
+ "eslint-plugin-react-hooks": "7.1.0"
57
57
  },
58
58
  "devDependencies": {
59
59
  "eslint": "9.39.2",
60
60
  "eslint-find-rules": "5.0.0",
61
61
  "eslint-plugin-jsx-a11y": "6.10.2",
62
62
  "eslint-plugin-react": "7.37.5",
63
- "eslint-plugin-react-hooks": "7.0.1"
63
+ "eslint-plugin-react-hooks": "7.1.0"
64
64
  }
65
65
  }
@@ -131,6 +131,12 @@ export default {
131
131
  },
132
132
  ],
133
133
  'react/forward-ref-uses-ref': 'error',
134
+ 'react/hook-use-state': [
135
+ 'error',
136
+ {
137
+ allowDestructuredState: true,
138
+ },
139
+ ],
134
140
  'react/iframe-missing-sandbox': 'error',
135
141
  'react/no-array-index-key': 'error',
136
142
  'react/no-children-prop': 'error',
@@ -23,6 +23,7 @@ export const ESLintPluginReactDisabled = {
23
23
  'react/forbid-dom-props': 'off',
24
24
  'react/forbid-elements': 'off',
25
25
  'react/forward-ref-uses-ref': 'off',
26
+ 'react/hook-use-state': 'off',
26
27
  'react/iframe-missing-sandbox': 'off',
27
28
  'react/no-array-index-key': 'off',
28
29
  'react/no-children-prop': 'off',