Sourced from eslint-plugin-react's releases.
v7.20.0
Added
- support eslint v7 (#2635[] ljharb, toshi-toma)
- [
forbid-component-props][]/[forbid-dom-props][]: Allow a custom message with forbid props (#2615[] mtamhankar1)- [
jsx-no-literals][]: addignorePropsoption to ignore props validation (#2146[] iiison)Fixed
- [
jsx-sort-props][]: only use localeCompare when case is ignored (#2556[] tanmoyopenroot)- [
jsx-key][]: add a failing test case for optional chaining (#2610[] JonathanLee-LX)- [
no-unused-state][]: handle optional chaining (#2588[] golopot)- [
jsx-pascal-case][]: Do not consider namespaces when checking for DOM (#2638[] yacinehmito)- [
jsx-curly-spacing][], [jsx-no-bind][],usedPropTypesutil: avoid node.start and node.end ([25b1936][] toshi-toma)- [
jsx-no-target-blank][]: allowno-referrerwithoutnoopenerby default (#2043[] seancrater)- [
button-has-type][]: improve message when non-static value is used ([aecff62][] golopot)- [
no-adjacent-inline-elements][]: prevent crash on nullish children (#2621[] Rogdham)- [
prop-types][]: avoid crash when spreading any type (#2606[] golopot))- [
require-render-return][]: add missing "a" (#2604[] leothorp)- [
jsx-no-comment-textnodes][]: fix fortypescript-eslint/parser(#2601[] Axnyff)- [
displayName][]: avoid a crash when using React.memo (#2587[] golopot)Docs
- Clean up examples in rule docs (#2546[] silvenon)
- [readme] Add Rules of Hooks to Other useful plugins section (#2633[] petetnt)
- [
no-this-in-sfc][]: backtickthis(#2616[] mrflip)- [
function-component-definition][]: Fix unnamedComponents option examples (#2608[] vkrol))Changed
- [Deps] Move "semver" to devDependencies (#2595[] rajivshah3)
- [eslint] remove
operator-linebreakoverride (#2578[] golopot)- [Tests]
button-has-type: ensure no mistakenly allowed identifiers namedbutton/submit/reset(#2625[] golopot)- [Tests]
displayName: add a test case (#2593[] golopot)- [Dev Deps] update
types/eslint,types/estree,types/node,typescript-eslint/parser,coveralls,eslint-config-airbnb-base,eslint-plugin-import,typescript#2638: yannickcr/eslint-plugin-react#2638 #2635: yannickcr/eslint-plugin-react#2635 #2633: yannickcr/eslint-plugin-react#2633 #2625: yannickcr/eslint-plugin-react#2625 #2621: yannickcr/eslint-plugin-react#2621 #2616: yannickcr/eslint-plugin-react#2616 #2615: yannickcr/eslint-plugin-react#2615 #2610: yannickcr/eslint-plugin-react#2610 #2608: yannickcr/eslint-plugin-react#2608 #2606: yannickcr/eslint-plugin-react#2606 #2604: yannickcr/eslint-plugin-react#2604 #2601: yannickcr/eslint-plugin-react#2601 #2595: yannickcr/eslint-plugin-react#2595 #2593: yannickcr/eslint-plugin-react#2593 #2588: yannickcr/eslint-plugin-react#2588 #2587: yannickcr/eslint-plugin-react#2587
... (truncated)
Sourced from eslint-plugin-react's changelog.
7.20.0 - 2020-05-12
Added
- support eslint v7 (#2635[] ljharb, toshi-toma)
- [
forbid-component-props][]/[forbid-dom-props][]: Allow a custom message with forbid props (#2615[] mtamhankar1)- [
jsx-no-literals][]: addignorePropsoption to ignore props validation (#2146[] iiison)Fixed
- [
jsx-sort-props][]: only use localeCompare when case is ignored (#2556[] tanmoyopenroot)- [
jsx-key][]: add a failing test case for optional chaining (#2610[] JonathanLee-LX)- [
no-unused-state][]: handle optional chaining (#2588[] golopot)- [
jsx-pascal-case][]: Do not consider namespaces when checking for DOM (#2638[] yacinehmito)- [
jsx-curly-spacing][], [jsx-no-bind][],usedPropTypesutil: avoid node.start and node.end ([25b1936][] toshi-toma)- [
jsx-no-target-blank][]: allowno-referrerwithoutnoopenerby default (#2043[] seancrater)- [
button-has-type][]: improve message when non-static value is used ([aecff62][] golopot)- [
no-adjacent-inline-elements][]: prevent crash on nullish children (#2621[] Rogdham)- [
prop-types][]: avoid crash when spreading any type (#2606[] golopot))- [
require-render-return][]: add missing "a" (#2604[] leothorp)- [
jsx-no-comment-textnodes][]: fix fortypescript-eslint/parser(#2601[] Axnyff)- [
displayName][]: avoid a crash when using React.memo (#2587[] golopot)Docs
- Clean up examples in rule docs (#2546[] silvenon)
- [readme] Add Rules of Hooks to Other useful plugins section (#2633[] petetnt)
- [
no-this-in-sfc][]: backtickthis(#2616[] mrflip)- [
function-component-definition][]: Fix unnamedComponents option examples (#2608[] vkrol))Changed
- [Deps] Move "semver" to devDependencies (#2595[] rajivshah3)
- [eslint] remove
operator-linebreakoverride (#2578[] golopot)- [Tests]
button-has-type: ensure no mistakenly allowed identifiers namedbutton/submit/reset(#2625[] golopot)- [Tests]
displayName: add a test case (#2593[] golopot)- [Dev Deps] update
types/eslint,types/estree,types/node,typescript-eslint/parser,coveralls,eslint-config-airbnb-base,eslint-plugin-import,typescript#2638: yannickcr/eslint-plugin-react#2638 #2635: yannickcr/eslint-plugin-react#2635 #2633: yannickcr/eslint-plugin-react#2633 #2625: yannickcr/eslint-plugin-react#2625 #2621: yannickcr/eslint-plugin-react#2621 #2616: yannickcr/eslint-plugin-react#2616 #2615: yannickcr/eslint-plugin-react#2615 #2610: yannickcr/eslint-plugin-react#2610 #2608: yannickcr/eslint-plugin-react#2608 #2606: yannickcr/eslint-plugin-react#2606 #2604: yannickcr/eslint-plugin-react#2604 #2601: yannickcr/eslint-plugin-react#2601 #2595: yannickcr/eslint-plugin-react#2595 #2593: yannickcr/eslint-plugin-react#2593 #2588: yannickcr/eslint-plugin-react#2588
... (truncated)
25bf6cc Update CHANGELOG and bump version2598b1e [Dev Deps] update types/eslint, types/estree, types/node, `typescri...f94d851 [Fix] jsx-sort-props: only use localeCompare when case is ignoredc481a26 [Docs] Clean up examples in rule docs88d404d [eslint] remove operator-linebreak override304590a Merge pull request #2635 from ljharb/eslint735030a0 [Tests] fix mistaken error property and add output property906b474 [New] support eslint v7d66f467 [Fix] jsx-key: add a failing test case for optional chainingda7a045 [Fix] no-unused-state: handle optional chaining