eslint-config-seekingalpha-react 10.33.0 → 10.35.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.35.0 - 2026-04-27
|
|
4
|
+
|
|
5
|
+
- [new] extend oxlint config
|
|
6
|
+
|
|
7
|
+
## 10.34.0 - 2026-04-17
|
|
8
|
+
|
|
9
|
+
- [deps] upgrade `eslint-plugin-react-hooks` to version `7.1.1`
|
|
10
|
+
|
|
3
11
|
## 10.33.0 - 2026-04-17
|
|
4
12
|
|
|
5
13
|
- [deps] upgrade `eslint-plugin-react-hooks` to version `7.1.0`
|
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.1.
|
|
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.1 --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.
|
|
3
|
+
"version": "10.35.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.1.
|
|
56
|
+
"eslint-plugin-react-hooks": "7.1.1"
|
|
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.1.
|
|
63
|
+
"eslint-plugin-react-hooks": "7.1.1"
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -75,6 +75,18 @@ export default {
|
|
|
75
75
|
],
|
|
76
76
|
'react/checked-requires-onchange-or-readonly': 'error',
|
|
77
77
|
'react/display-name': 'off',
|
|
78
|
+
'react/forbid-component-props': [
|
|
79
|
+
'error',
|
|
80
|
+
{
|
|
81
|
+
forbid: [
|
|
82
|
+
'style',
|
|
83
|
+
{
|
|
84
|
+
propName: 'className',
|
|
85
|
+
allowedFor: ['Button', 'Icon', 'Link'],
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
},
|
|
89
|
+
],
|
|
78
90
|
'react/forbid-dom-props': [
|
|
79
91
|
'error',
|
|
80
92
|
{
|
|
@@ -142,6 +154,7 @@ export default {
|
|
|
142
154
|
'react/no-children-prop': 'error',
|
|
143
155
|
'react/no-danger-with-children': 'error',
|
|
144
156
|
'react/no-did-mount-set-state': 'off',
|
|
157
|
+
'react/no-did-update-set-state': 'off',
|
|
145
158
|
'react/no-direct-mutation-state': 'error',
|
|
146
159
|
'react/no-find-dom-node': 'error',
|
|
147
160
|
'react/no-is-mounted': 'error',
|
|
@@ -20,6 +20,7 @@ export const ESLintPluginReactDisabled = {
|
|
|
20
20
|
'react/button-has-type': 'off',
|
|
21
21
|
'react/checked-requires-onchange-or-readonly': 'off',
|
|
22
22
|
'react/display-name': 'off',
|
|
23
|
+
'react/forbid-component-props': 'off',
|
|
23
24
|
'react/forbid-dom-props': 'off',
|
|
24
25
|
'react/forbid-elements': 'off',
|
|
25
26
|
'react/forward-ref-uses-ref': 'off',
|
|
@@ -29,6 +30,7 @@ export const ESLintPluginReactDisabled = {
|
|
|
29
30
|
'react/no-children-prop': 'off',
|
|
30
31
|
'react/no-danger-with-children': 'off',
|
|
31
32
|
'react/no-did-mount-set-state': 'off',
|
|
33
|
+
'react/no-did-update-set-state': 'off',
|
|
32
34
|
'react/no-direct-mutation-state': 'off',
|
|
33
35
|
'react/no-find-dom-node': 'off',
|
|
34
36
|
'react/no-is-mounted': 'off',
|