Sourced from eslint-plugin-react's changelog.
[7.21.2] - 2020.09.24
Fixed
- [
prop-types]: handle RestElement in destructured param (#2805[] hank121314)#2805: yannickcr/eslint-plugin-react#2805
[7.21.1] - 2020.09.23
Fixed
- [
jsx-handler-names]: avoid a crash when an inline prop is not a MemberExpression (#2803[] willheslam)#2803: yannickcr/eslint-plugin-react#2803
[7.21.0] - 2020.09.22
Added
- [
button-has-type]: support trivial ternary expressions (#2748[] Hypnosphi)- [
jsx-handler-names]: addcheckInlineFunctionoption (#2761[] dididy)- [
jsx-no-literals]: addnoAttributeStringsoption (#2782[] TaLeaMonet)- [
prop-types]: add support forPropTypes.exact(#2740[] jzabala)- [
jsx-filename-extension]: Add allow option (#2746[] remcohaszing)Fixed
- [
function-component-definition]: ignore object properties (#2771[] stefan-wullems)- [
forbid-component-props]: Implemented support for "namespaced" components (#2767[] mnn)- [
prefer-read-only-props]: support Flow$ReadOnly(#2772[], #2779[], #2770[] karolina-benitez)- [
jsx-handler-names]: handle whitespace (#2789[] AriPerkkio)- [
prop-types]: Detect TypeScript types for destructured default prop values (#2780[] sunghyunjo)- [
jsx-pascal-case]: Handle single character namespaced component (#2791[] daviferreira)- [
jsx-closing-bracket-location]: Intag-aligned, made a distinction between tabs and spaces (#2796[] Moong0122)- [
jsx-handler-names]: false positive when handler name begins with number (#1689[] jsphstls)- [
prop-types]: Detect JSX returned by sequential expression (#2801[] mikol)- [
jsx-props-no-multi-spaces]: "Expected no line gap between" false positive (#2792[] karolina-benitez)- [
no-unknown-property]: check attributes with any input case (#2790[] julienw)- [
prop-types]/[no-unused-prop-types]: handle CallExpression in ReturnType (#2802[] hank121314)- [
jsx-uses-react]: mark fragment variables as used (#2775[] remcohaszing)- [
no-unused-prop-types]: improve component declared props detection (#2755[] jzabala)- [
jsx-props-no-multi-spaces]: Show error in multi-line props (#2756[] iiison)Changed
- [Tests] [
jsx-one-expression-per-line]: add passing tests (#2799[] TaLeaMonet)- [Tests] [
prop-types]: add test (#2757[] jzabala)#2802: yannickcr/eslint-plugin-react#2802 #2801: yannickcr/eslint-plugin-react#2801 #2799: yannickcr/eslint-plugin-react#2799 #2796: yannickcr/eslint-plugin-react#2796 #2792: yannickcr/eslint-plugin-react#2792 #2791: yannickcr/eslint-plugin-react#2791
... (truncated)