eslint-config-seekingalpha-react 7.38.0 → 7.39.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,9 @@
1
1
  # Change Log
2
2
 
3
+ ## 7.39.0 - 2024-09-27
4
+
5
+ - [deps] upgrade `eslint-plugin-react` to version `7.37.0`
6
+
3
7
  ## 7.38.0 - 2024-09-13
4
8
 
5
9
  - [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.36.1 eslint-plugin-react-hooks@4.6.2 --save-dev
9
+ npm install eslint@8.57.0 eslint-plugin-jsx-a11y@6.10.0 eslint-plugin-react@7.37.0 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.38.0",
3
+ "version": "7.39.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.36.1",
54
+ "eslint-plugin-react": "7.37.0",
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.36.1",
61
+ "eslint-plugin-react": "7.37.0",
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',