Bump eslint-plugin-react from 7.26.1 to 7.28.0 in /js/js-flipper (#3271)
Summary:
Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.26.1 to 7.28.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/yannickcr/eslint-plugin-react/releases">eslint-plugin-react's releases</a>.</em></p>
<blockquote>
<h2>v7.28.0</h2>
<h2>What's Changed</h2>
<ul>
<li>[New] component detection: track React imports by <a href="https://github.com/duncanbeevers"><code>@duncanbeevers</code></a> in <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3149">yannickcr/eslint-plugin-react#3149</a></li>
<li>[New] <code>function-component-definition</code>: support <code>namedComponents</code> option being an array by <a href="https://github.com/petersendidit"><code>@petersendidit</code></a> in <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3129">yannickcr/eslint-plugin-react#3129</a></li>
<li>[Test] parsers.all augments suggestion code output by <a href="https://github.com/duncanbeevers"><code>@duncanbeevers</code></a> in <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3154">yannickcr/eslint-plugin-react#3154</a></li>
<li>[Fix] <code>jsx-indent-props</code>: Reset <code>line.isUsingOperator</code> correctly after ternary (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3146">https://github.com/facebook/flipper/issues/3146</a>) by <a href="https://github.com/tobiaswaltl"><code>@tobiaswaltl</code></a> in <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3157">yannickcr/eslint-plugin-react#3157</a></li>
<li>[New] Component detection: add <code>util.isReactHookCall</code> by <a href="https://github.com/duncanbeevers"><code>@duncanbeevers</code></a> in <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3156">yannickcr/eslint-plugin-react#3156</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/tobiaswaltl"><code>@tobiaswaltl</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3157">yannickcr/eslint-plugin-react#3157</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/yannickcr/eslint-plugin-react/compare/v7.27.1...v7.28.0">https://github.com/yannickcr/eslint-plugin-react/compare/v7.27.1...v7.28.0</a></p>
<h2>v7.27.1</h2>
<h2>What's Changed</h2>
<ul>
<li>[Fix] <code>no-unused-class-component-methods</code>: add getChildContext lifecycle method by <a href="https://github.com/yoyo837"><code>@yoyo837</code></a> in <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3136">yannickcr/eslint-plugin-react#3136</a></li>
<li>[readme] fix syntax typo by <a href="https://github.com/moselhy"><code>@moselhy</code></a> in <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3141">yannickcr/eslint-plugin-react#3141</a></li>
<li>[Fix] <code>prop-types</code>: fix false positives on renames in object destructuring by <a href="https://github.com/golopot"><code>@golopot</code></a> in <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3142">yannickcr/eslint-plugin-react#3142</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/moselhy"><code>@moselhy</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3141">yannickcr/eslint-plugin-react#3141</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/yannickcr/eslint-plugin-react/compare/v7.27.0...v7.27.1">https://github.com/yannickcr/eslint-plugin-react/compare/v7.27.0...v7.27.1</a></p>
<h2>v7.27.0</h2>
<h2>What's Changed</h2>
<ul>
<li>[New] add <code>no-unused-class-component-methods</code> by <a href="https://github.com/pawelnvk"><code>@pawelnvk</code></a> in <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/2239">yannickcr/eslint-plugin-react#2239</a></li>
<li>[New] Add <code>no-arrow-function-lifecycle</code> rule by <a href="https://github.com/ngtan"><code>@ngtan</code></a> in <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/1980">yannickcr/eslint-plugin-react#1980</a></li>
<li>[react/jsx-uses-vars]: False negative on HTML elements used in JSX by <a href="https://github.com/karlhorky"><code>@karlhorky</code></a> in <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/2916">yannickcr/eslint-plugin-react#2916</a></li>
<li>[Fix] <code>propTypes</code>: add <code>VoidFunctionComponent</code> to react generic list by <a href="https://github.com/vedadeepta"><code>@vedadeepta</code></a> in <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3092">yannickcr/eslint-plugin-react#3092</a></li>
<li>[Fix] <code>no-arrow-function-lifecycle</code>: prevent crashing on ClassProperty by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3098">yannickcr/eslint-plugin-react#3098</a></li>
<li>[Dev Deps] Upgrade <code>eslint-plugin-eslint-plugin</code> to v4 by <a href="https://github.com/bmish"><code>@bmish</code></a> in <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3105">yannickcr/eslint-plugin-react#3105</a></li>
<li>[Tests] use parsers.all + features to maximally repeat test cases across parsers, plus fixes by <a href="https://github.com/ljharb"><code>@ljharb</code></a> in <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3108">yannickcr/eslint-plugin-react#3108</a></li>
<li>[Fix] <code>display-name</code>: unwrap TS <code>as</code> expressions by <a href="https://github.com/ljharb"><code>@ljharb</code></a> in <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3110">yannickcr/eslint-plugin-react#3110</a></li>
<li>[Fix] <code>no-unstable-components</code>: improve handling of objects containing render functions by <a href="https://github.com/fizwidget"><code>@fizwidget</code></a> in <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3111">yannickcr/eslint-plugin-react#3111</a></li>
<li>[Fix] <code>prop-types</code>, <code>propTypes</code>: add forwardRef<!-- raw HTML omitted --> prop-types by <a href="https://github.com/vedadeepta"><code>@vedadeepta</code></a> in <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3112">yannickcr/eslint-plugin-react#3112</a></li>
<li>[Tests] test on the new babel eslint parser by <a href="https://github.com/ljharb"><code>@ljharb</code></a> in <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3113">yannickcr/eslint-plugin-react#3113</a></li>
<li>[Dev Deps] update <code>eslint-remote-tester</code> by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3118">yannickcr/eslint-plugin-react#3118</a></li>
<li>[New] add <code>no-invalid-html-attribute</code> rule by <a href="https://github.com/Nokel81"><code>@Nokel81</code></a> in <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/2863">yannickcr/eslint-plugin-react#2863</a></li>
<li>[Dev Deps] update <code>eslint-remote-tester-run-action</code> by <a href="https://github.com/AriPerkkio"><code>@AriPerkkio</code></a> in <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3120">yannickcr/eslint-plugin-react#3120</a></li>
<li>[Fix] <code>destructuring-assignment</code>, component detection: improve component detection by <a href="https://github.com/vedadeepta"><code>@vedadeepta</code></a> in <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3122">yannickcr/eslint-plugin-react#3122</a></li>
<li>[Docs] <code>jsx-no-target-blank</code>: adjust options description by <a href="https://github.com/gebsh"><code>@gebsh</code></a> in <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3124">yannickcr/eslint-plugin-react#3124</a></li>
<li>[New] support eslint 8.x by <a href="https://github.com/MichaelDeBoey"><code>@MichaelDeBoey</code></a> in <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3059">yannickcr/eslint-plugin-react#3059</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/ngtan"><code>@ngtan</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/1980">yannickcr/eslint-plugin-react#1980</a></li>
<li><a href="https://github.com/karlhorky"><code>@karlhorky</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/2916">yannickcr/eslint-plugin-react#2916</a></li>
<li><a href="https://github.com/bmish"><code>@bmish</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3105">yannickcr/eslint-plugin-react#3105</a></li>
<li><a href="https://github.com/fizwidget"><code>@fizwidget</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3111">yannickcr/eslint-plugin-react#3111</a></li>
<li><a href="https://github.com/gebsh"><code>@gebsh</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3124">yannickcr/eslint-plugin-react#3124</a></li>
</ul>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md">eslint-plugin-react's changelog</a>.</em></p>
<blockquote>
<h2><a href="https://github.com/yannickcr/eslint-plugin-react/compare/v7.27.1...v7.28.0">7.28.0</a> - 2021.12.22</h2>
<h3>Added</h3>
<ul>
<li>[<code>function-component-definition</code>]: support namedComponents option being an array (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3129">https://github.com/facebook/flipper/issues/3129</a>[] <a href="https://github.com/petersendidit"><code>@petersendidit</code></a>)</li>
</ul>
<h3>Fixed</h3>
<ul>
<li>[<code>jsx-indent-props</code>]: Reset <code>line.isUsingOperator</code> correctly after ternary (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3146">https://github.com/facebook/flipper/issues/3146</a>[] <a href="https://github.com/tobiaswaltl"><code>@tobiaswaltl</code></a>)</li>
</ul>
<h3>Changed</h3>
<ul>
<li>[Refactor] [<code>no-arrow-function-lifecycle</code>], [<code>no-unused-class-component-methods</code>]: use report/messages convention (<a href="https://github.com/ljharb"><code>@ljharb</code></a>)</li>
<li>[Tests] component detection: Add testing scaffolding (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3149">https://github.com/facebook/flipper/issues/3149</a>[] <a href="https://github.com/duncanbeevers"><code>@duncanbeevers</code></a>)</li>
<li>[New] component detection: track React imports (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3149">https://github.com/facebook/flipper/issues/3149</a>[] <a href="https://github.com/duncanbeevers"><code>@duncanbeevers</code></a>)</li>
<li>[New] component detection: add <code>util.isReactHookCall</code> (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3156">https://github.com/facebook/flipper/issues/3156</a>[] <a href="https://github.com/duncanbeevers"><code>@duncanbeevers</code></a>)</li>
</ul>
<p><a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3156">https://github.com/facebook/flipper/issues/3156</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3156">yannickcr/eslint-plugin-react#3156</a>
<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3149">https://github.com/facebook/flipper/issues/3149</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3149">yannickcr/eslint-plugin-react#3149</a>
<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3146">https://github.com/facebook/flipper/issues/3146</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3146">yannickcr/eslint-plugin-react#3146</a>
<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3129">https://github.com/facebook/flipper/issues/3129</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3129">yannickcr/eslint-plugin-react#3129</a></p>
<h2><a href="https://github.com/yannickcr/eslint-plugin-react/compare/v7.27.0...v7.27.1">7.27.1</a> - 2021.11.18</h2>
<h3>Fixed</h3>
<ul>
<li>[<code>no-invalid-html-attribute</code>]: allow <code>link</code> <code>rel</code> to have <code>apple-touch-icon</code>, <code>mask-icon</code> (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3132">https://github.com/facebook/flipper/issues/3132</a>[] <a href="https://github.com/ljharb"><code>@ljharb</code></a>)</li>
<li>[<code>no-unused-class-component-methods</code>]: add <code>getChildContext</code> lifecycle method (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3136">https://github.com/facebook/flipper/issues/3136</a>[] <a href="https://github.com/yoyo837"><code>@yoyo837</code></a>)</li>
<li>[<code>prop-types</code>]: fix false positives on renames in object destructuring (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3142">https://github.com/facebook/flipper/issues/3142</a>[] <a href="https://github.com/golopot"><code>@golopot</code></a>)</li>
<li>[<code>no-arrow-function-lifecycle</code>]: fix invalid autofix from a concise arrow method to a regular one (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3145">https://github.com/facebook/flipper/issues/3145</a>[] <a href="https://github.com/ljharb"><code>@ljharb</code></a>)</li>
<li>[<code>display-name</code>]: avoid false positives on non-creatClass object expressions (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3144">https://github.com/facebook/flipper/issues/3144</a> <a href="https://github.com/ljharb"><code>@ljharb</code></a>)</li>
</ul>
<h3>Changed</h3>
<ul>
<li>[readme] fix syntax typo (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3141">https://github.com/facebook/flipper/issues/3141</a>[] <a href="https://github.com/moselhy"><code>@moselhy</code></a>)</li>
</ul>
<p><a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3145">https://github.com/facebook/flipper/issues/3145</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issue/3145">yannickcr/eslint-plugin-react#3145</a>
<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3144">https://github.com/facebook/flipper/issues/3144</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issue/3144">yannickcr/eslint-plugin-react#3144</a>
<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3142">https://github.com/facebook/flipper/issues/3142</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3142">yannickcr/eslint-plugin-react#3142</a>
<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3141">https://github.com/facebook/flipper/issues/3141</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3141">yannickcr/eslint-plugin-react#3141</a>
<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3136">https://github.com/facebook/flipper/issues/3136</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/3136">yannickcr/eslint-plugin-react#3136</a>
<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3132">https://github.com/facebook/flipper/issues/3132</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issue/3132">yannickcr/eslint-plugin-react#3132</a></p>
<h2>[7.27.0] - 2021.11.09</h2>
<h3>Added</h3>
<ul>
<li>support eslint 8.x (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/3059">https://github.com/facebook/flipper/issues/3059</a>[] <a href="https://github.com/MichaelDeBoey"><code>@MichaelDeBoey</code></a> <a href="https://github.com/ljharb"><code>@ljharb</code></a>)</li>
<li>[<code>no-unused-class-component-methods</code>]: Handle unused class component methods (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2166">https://github.com/facebook/flipper/issues/2166</a>[] <a href="https://github.com/jakeleventhal"><code>@jakeleventhal</code></a> <a href="https://github.com/pawelnvk"><code>@pawelnvk</code></a>)</li>
<li>add [<code>no-arrow-function-lifecycle</code>] (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/1980">https://github.com/facebook/flipper/issues/1980</a>[] <a href="https://github.com/ngtan"><code>@ngtan</code></a>)</li>
<li>add support for <code>typescript-eslint/parser</code> v5 (<a href="https://github.com/ljharb"><code>@ljharb</code></a>)</li>
<li>[<code>no-invalid-html-attribute</code>]: add rule (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2863">https://github.com/facebook/flipper/issues/2863</a>[] <a href="https://github.com/Nokel81"><code>@Nokel81</code></a>)</li>
</ul>
<h3>Fixed</h3>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="9be55ed7f2"><code>9be55ed</code></a> Update CHANGELOG and bump version</li>
<li><a href="5a253803c2"><code>5a25380</code></a> [New] component detection: add <code>util.isReactHookCall</code></li>
<li><a href="3db5285913"><code>3db5285</code></a> [Fix] <code>jsx-indent-props</code>: Reset <code>line.isUsingOperator</code> correctly after ternary</li>
<li><a href="d56fdb8054"><code>d56fdb8</code></a> [Tests] rename test file to match production file</li>
<li><a href="ac4e311f07"><code>ac4e311</code></a> [Tests] tiny cleanup</li>
<li><a href="f7943d5f77"><code>f7943d5</code></a> [Test] parsers.all augments suggestion code output</li>
<li><a href="e3d3525bf9"><code>e3d3525</code></a> [New] <code>function-component-definition</code>: support namedComponents option being a...</li>
<li><a href="d5bf8d9669"><code>d5bf8d9</code></a> [Dev Deps] update <code>eslint-plugin-import</code></li>
<li><a href="a09debf0ac"><code>a09debf</code></a> [New] components detection: track React imports</li>
<li><a href="8b98e60472"><code>8b98e60</code></a> [Tests] component detection: Add testing scaffolding</li>
<li>Additional commits viewable in <a href="https://github.com/yannickcr/eslint-plugin-react/compare/v7.26.1...v7.28.0">compare view</a></li>
</ul>
</details>
<br />
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
</details>
Pull Request resolved: https://github.com/facebook/flipper/pull/3271
Reviewed By: lblasa
Differential Revision: D33565480
Pulled By: passy
fbshipit-source-id: fb85421d8b12aae52ef6101072fe2872611bec5f