Skip to content

Commit 9e3ec11

Browse files
committed
Update reslint-plugin-react to v7.37.2
- Enable `react/forward-ref-uses-ref’` as an error. - Enable `react/jsx-props-no-spread-multi` as an error.
1 parent cf9cf65 commit 9e3ec11

File tree

5 files changed

+35
-43
lines changed

5 files changed

+35
-43
lines changed

package-lock.json

Lines changed: 21 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
},
3737
"peerDependencies": {
3838
"eslint-plugin-jsx-a11y": "^6.9.0",
39-
"eslint-plugin-react": "^7.34.3",
39+
"eslint-plugin-react": "^7.37.2",
4040
"eslint-plugin-react-hooks": "^4.6.2",
4141
"eslint-plugin-react-hooks-ssr": "^0.1.5",
4242
"eslint-plugin-react-perf": "^3.3.2"
@@ -66,7 +66,7 @@
6666
"eslint-plugin-n": "17.13.1",
6767
"eslint-plugin-prefer-arrow": "1.2.3",
6868
"eslint-plugin-promise": "7.1.0",
69-
"eslint-plugin-react": "7.34.3",
69+
"eslint-plugin-react": "7.37.2",
7070
"eslint-plugin-react-hooks": "4.6.2",
7171
"eslint-plugin-react-hooks-ssr": "0.1.5",
7272
"eslint-plugin-react-perf": "3.3.1",

src/rules/react/index.adoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ The `link:https://github.com/jsx-eslint/eslint-plugin-react[eslint-plugin-react]
6565
|
6666
| Error
6767

68+
| `link:{eslint-react-rules}/forward-ref-uses-ref.md[react/forward-ref-uses-ref]`
69+
|
70+
|
71+
| Error
72+
6873
| `link:{eslint-react-rules}/function-component-definition.md[react/function-component-definition]`
6974
|
7075
|
@@ -458,6 +463,11 @@ The `link:https://github.com/jsx-eslint/eslint-plugin-react[eslint-plugin-react]
458463
|
459464
| Error
460465

466+
| `link:{eslint-react-rules}/jsx-props-no-spread-multi.md[react/jsx-props-no-spread-multi]`
467+
|
468+
|
469+
| Error
470+
461471
| `link:{eslint-react-rules}/jsx-no-script-url.md[react/jsx-no-script-url]`
462472
|
463473
|

src/rules/react/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export = {
3838
checkContextTypes: true,
3939
checkChildContextTypes: true,
4040
}],
41+
'react/forward-ref-uses-ref': 'error',
4142
'react/function-component-definition': ['warn', {
4243
namedComponents: 'function-declaration',
4344
// NOTE: Using expression is style-only, as react/no-this-in-sfc is enabled.

src/rules/react/jsx.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ export = {
6767
ignoreProps: true,
6868
noAttributeStrings: false,
6969
}],
70+
'react/jsx-props-no-spread-multi': 'error',
7071
'react/jsx-no-script-url': ['error', {
7172
includeFromSettings: false,
7273
}],

0 commit comments

Comments
 (0)