eslint-config-seekingalpha-react 7.38.0 → 7.40.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 +8 -0
- package/README.md +1 -1
- package/package.json +3 -3
- package/rules/eslint-plugin-react/jsx.js +1 -10
- package/rules/eslint-plugin-react/react.js +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 7.40.0 - 2024-10-04
|
|
4
|
+
|
|
5
|
+
- [deps] upgrade `eslint-plugin-react` to version `7.37.1`
|
|
6
|
+
|
|
7
|
+
## 7.39.0 - 2024-09-27
|
|
8
|
+
|
|
9
|
+
- [deps] upgrade `eslint-plugin-react` to version `7.37.0`
|
|
10
|
+
|
|
3
11
|
## 7.38.0 - 2024-09-13
|
|
4
12
|
|
|
5
13
|
- [deps] upgrade `eslint-plugin-react` to version `7.36.1`
|
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@8.57.0 eslint-plugin-jsx-a11y@6.10.0 eslint-plugin-react@7.
|
|
9
|
+
npm install eslint@8.57.0 eslint-plugin-jsx-a11y@6.10.0 eslint-plugin-react@7.37.1 eslint-plugin-react-hooks@4.6.2 --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": "7.
|
|
3
|
+
"version": "7.40.0",
|
|
4
4
|
"description": "SeekingAlpha's sharable React.js ESLint config",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -51,14 +51,14 @@
|
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"eslint": "8.57.0",
|
|
53
53
|
"eslint-plugin-jsx-a11y": "6.10.0",
|
|
54
|
-
"eslint-plugin-react": "7.
|
|
54
|
+
"eslint-plugin-react": "7.37.1",
|
|
55
55
|
"eslint-plugin-react-hooks": "4.6.2"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"eslint": "8.57.0",
|
|
59
59
|
"eslint-find-rules": "4.1.0",
|
|
60
60
|
"eslint-plugin-jsx-a11y": "6.10.0",
|
|
61
|
-
"eslint-plugin-react": "7.
|
|
61
|
+
"eslint-plugin-react": "7.37.1",
|
|
62
62
|
"eslint-plugin-react-hooks": "4.6.2"
|
|
63
63
|
}
|
|
64
64
|
}
|
|
@@ -97,16 +97,7 @@ module.exports = {
|
|
|
97
97
|
'react/jsx-newline': 'error',
|
|
98
98
|
|
|
99
99
|
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-bind.md
|
|
100
|
-
'react/jsx-no-bind':
|
|
101
|
-
'error',
|
|
102
|
-
{
|
|
103
|
-
ignoreDOMComponents: true,
|
|
104
|
-
ignoreRefs: false,
|
|
105
|
-
allowArrowFunctions: false,
|
|
106
|
-
allowFunctions: false,
|
|
107
|
-
allowBind: false,
|
|
108
|
-
},
|
|
109
|
-
],
|
|
100
|
+
'react/jsx-no-bind': 'off',
|
|
110
101
|
|
|
111
102
|
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-comment-textnodes.md
|
|
112
103
|
'react/jsx-no-comment-textnodes': 'error',
|
|
@@ -23,6 +23,9 @@ module.exports = {
|
|
|
23
23
|
},
|
|
24
24
|
],
|
|
25
25
|
|
|
26
|
+
// https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/checked-requires-onchange-or-readonly.md
|
|
27
|
+
'react/checked-requires-onchange-or-readonly': 'error',
|
|
28
|
+
|
|
26
29
|
/*
|
|
27
30
|
* no prop types usage
|
|
28
31
|
* https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/default-props-match-prop-types.md
|
|
@@ -134,6 +137,8 @@ module.exports = {
|
|
|
134
137
|
*/
|
|
135
138
|
'react/forbid-prop-types': 'off',
|
|
136
139
|
|
|
140
|
+
'react/forward-ref-uses-ref': 'error',
|
|
141
|
+
|
|
137
142
|
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/function-component-definition.md
|
|
138
143
|
'react/function-component-definition': [
|
|
139
144
|
'error',
|
|
@@ -197,12 +202,7 @@ module.exports = {
|
|
|
197
202
|
'react/no-is-mounted': 'error',
|
|
198
203
|
|
|
199
204
|
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-multi-comp.md
|
|
200
|
-
'react/no-multi-comp':
|
|
201
|
-
'error',
|
|
202
|
-
{
|
|
203
|
-
ignoreStateless: false,
|
|
204
|
-
},
|
|
205
|
-
],
|
|
205
|
+
'react/no-multi-comp': 'off',
|
|
206
206
|
|
|
207
207
|
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-namespace.md
|
|
208
208
|
'react/no-namespace': 'error',
|