Sourced from eslint-plugin-react's releases.
v7.28.0
What's Changed
- [New] component detection: track React imports by
@duncanbeeversin yannickcr/eslint-plugin-react#3149- [New]
function-component-definition: supportnamedComponentsoption being an array by@petersendiditin yannickcr/eslint-plugin-react#3129- [Test] parsers.all augments suggestion code output by
@duncanbeeversin yannickcr/eslint-plugin-react#3154- [Fix]
jsx-indent-props: Resetline.isUsingOperatorcorrectly after ternary (https://github.com/facebook/flipper/issues/3146) by@tobiaswaltlin yannickcr/eslint-plugin-react#3157- [New] Component detection: add
util.isReactHookCallby@duncanbeeversin yannickcr/eslint-plugin-react#3156New Contributors
@tobiaswaltlmade their first contribution in yannickcr/eslint-plugin-react#3157Full Changelog: https://github.com/yannickcr/eslint-plugin-react/compare/v7.27.1...v7.28.0
v7.27.1
What's Changed
- [Fix]
no-unused-class-component-methods: add getChildContext lifecycle method by@yoyo837in yannickcr/eslint-plugin-react#3136- [readme] fix syntax typo by
@moselhyin yannickcr/eslint-plugin-react#3141- [Fix]
prop-types: fix false positives on renames in object destructuring by@golopotin yannickcr/eslint-plugin-react#3142New Contributors
@moselhymade their first contribution in yannickcr/eslint-plugin-react#3141Full Changelog: https://github.com/yannickcr/eslint-plugin-react/compare/v7.27.0...v7.27.1
v7.27.0
What's Changed
- [New] add
no-unused-class-component-methodsby@pawelnvkin yannickcr/eslint-plugin-react#2239- [New] Add
no-arrow-function-lifecyclerule by@ngtanin yannickcr/eslint-plugin-react#1980- [react/jsx-uses-vars]: False negative on HTML elements used in JSX by
@karlhorkyin yannickcr/eslint-plugin-react#2916- [Fix]
propTypes: addVoidFunctionComponentto react generic list by@vedadeeptain yannickcr/eslint-plugin-react#3092- [Fix]
no-arrow-function-lifecycle: prevent crashing on ClassProperty by@AriPerkkioin yannickcr/eslint-plugin-react#3098- [Dev Deps] Upgrade
eslint-plugin-eslint-pluginto v4 by@bmishin yannickcr/eslint-plugin-react#3105- [Tests] use parsers.all + features to maximally repeat test cases across parsers, plus fixes by
@ljharbin yannickcr/eslint-plugin-react#3108- [Fix]
display-name: unwrap TSasexpressions by@ljharbin yannickcr/eslint-plugin-react#3110- [Fix]
no-unstable-components: improve handling of objects containing render functions by@fizwidgetin yannickcr/eslint-plugin-react#3111- [Fix]
prop-types,propTypes: add forwardRef prop-types by@vedadeeptain yannickcr/eslint-plugin-react#3112- [Tests] test on the new babel eslint parser by
@ljharbin yannickcr/eslint-plugin-react#3113- [Dev Deps] update
eslint-remote-testerby@AriPerkkioin yannickcr/eslint-plugin-react#3118- [New] add
no-invalid-html-attributerule by@Nokel81in yannickcr/eslint-plugin-react#2863- [Dev Deps] update
eslint-remote-tester-run-actionby@AriPerkkioin yannickcr/eslint-plugin-react#3120- [Fix]
destructuring-assignment, component detection: improve component detection by@vedadeeptain yannickcr/eslint-plugin-react#3122- [Docs]
jsx-no-target-blank: adjust options description by@gebshin yannickcr/eslint-plugin-react#3124- [New] support eslint 8.x by
@MichaelDeBoeyin yannickcr/eslint-plugin-react#3059New Contributors
@ngtanmade their first contribution in yannickcr/eslint-plugin-react#1980@karlhorkymade their first contribution in yannickcr/eslint-plugin-react#2916@bmishmade their first contribution in yannickcr/eslint-plugin-react#3105@fizwidgetmade their first contribution in yannickcr/eslint-plugin-react#3111@gebshmade their first contribution in yannickcr/eslint-plugin-react#3124
... (truncated)
Sourced from eslint-plugin-react's changelog.
7.28.0 - 2021.12.22
Added
- [
function-component-definition]: support namedComponents option being an array (https://github.com/facebook/flipper/issues/3129[]@petersendidit)Fixed
- [
jsx-indent-props]: Resetline.isUsingOperatorcorrectly after ternary (https://github.com/facebook/flipper/issues/3146[]@tobiaswaltl)Changed
- [Refactor] [
no-arrow-function-lifecycle], [no-unused-class-component-methods]: use report/messages convention (@ljharb)- [Tests] component detection: Add testing scaffolding (https://github.com/facebook/flipper/issues/3149[]
@duncanbeevers)- [New] component detection: track React imports (https://github.com/facebook/flipper/issues/3149[]
@duncanbeevers)- [New] component detection: add
util.isReactHookCall(https://github.com/facebook/flipper/issues/3156[]@duncanbeevers)https://github.com/facebook/flipper/issues/3156: yannickcr/eslint-plugin-react#3156 https://github.com/facebook/flipper/issues/3149: yannickcr/eslint-plugin-react#3149 https://github.com/facebook/flipper/issues/3146: yannickcr/eslint-plugin-react#3146 https://github.com/facebook/flipper/issues/3129: yannickcr/eslint-plugin-react#3129
7.27.1 - 2021.11.18
Fixed
- [
no-invalid-html-attribute]: allowlinkrelto haveapple-touch-icon,mask-icon(https://github.com/facebook/flipper/issues/3132[]@ljharb)- [
no-unused-class-component-methods]: addgetChildContextlifecycle method (https://github.com/facebook/flipper/issues/3136[]@yoyo837)- [
prop-types]: fix false positives on renames in object destructuring (https://github.com/facebook/flipper/issues/3142[]@golopot)- [
no-arrow-function-lifecycle]: fix invalid autofix from a concise arrow method to a regular one (https://github.com/facebook/flipper/issues/3145[]@ljharb)- [
display-name]: avoid false positives on non-creatClass object expressions (https://github.com/facebook/flipper/issues/3144@ljharb)Changed
- [readme] fix syntax typo (https://github.com/facebook/flipper/issues/3141[]
@moselhy)https://github.com/facebook/flipper/issues/3145: yannickcr/eslint-plugin-react#3145 https://github.com/facebook/flipper/issues/3144: yannickcr/eslint-plugin-react#3144 https://github.com/facebook/flipper/issues/3142: yannickcr/eslint-plugin-react#3142 https://github.com/facebook/flipper/issues/3141: yannickcr/eslint-plugin-react#3141 https://github.com/facebook/flipper/issues/3136: yannickcr/eslint-plugin-react#3136 https://github.com/facebook/flipper/issues/3132: yannickcr/eslint-plugin-react#3132
[7.27.0] - 2021.11.09
Added
- support eslint 8.x (https://github.com/facebook/flipper/issues/3059[]
@MichaelDeBoey@ljharb)- [
no-unused-class-component-methods]: Handle unused class component methods (https://github.com/facebook/flipper/issues/2166[]@jakeleventhal@pawelnvk)- add [
no-arrow-function-lifecycle] (https://github.com/facebook/flipper/issues/1980[]@ngtan)- add support for
typescript-eslint/parserv5 (@ljharb)- [
no-invalid-html-attribute]: add rule (https://github.com/facebook/flipper/issues/2863[]@Nokel81)Fixed
... (truncated)
9be55ed Update CHANGELOG and bump version5a25380 [New] component detection: add util.isReactHookCall3db5285 [Fix] jsx-indent-props: Reset line.isUsingOperator correctly after ternaryd56fdb8 [Tests] rename test file to match production fileac4e311 [Tests] tiny cleanupf7943d5 [Test] parsers.all augments suggestion code outpute3d3525 [New] function-component-definition: support namedComponents option being a...d5bf8d9 [Dev Deps] update eslint-plugin-importa09debf [New] components detection: track React imports8b98e60 [Tests] component detection: Add testing scaffolding