eslint-plugin-react
Advanced tools
Changelog
[7.21.5] - 2020.10.19
jsx-indent-props
]: Apply indentation when using brackets ([#2826][] @Moong0122)jsx-handler-names
]: Skip inline handlers when checkInlineFunction=false ([#2833][] @onigoetz)jsx-indent-props
: Add passing test ([#2823][] @Hypnosphi)Changelog
[7.21.4] - 2020.10.09
no-unused-prop-types
]: Silence false positive on never
type in TS ([#2815][] @pcorpet)jsx-indent-props
]: Apply indentation when operator is used in front of the upper line ([#2808][], [#2820][] @Moong0122)jsx-ast-utils
([#2822][] [jsx-eslint/jsx-ast-utils#102][] @ljharb)Changelog
[7.21.3] - 2020.10.02
prop-types
]: fix Cannot read property 'type' of undefined error when destructured param ([#2807][] @minwe)no-typos
]: avoid crash on spread syntax in createReactClass object ([#2816][] @ljharb @Songyu-Wang)Changelog
[7.21.2] - 2020.09.24
prop-types
]: handle RestElement in destructured param ([#2805][] @hank121314)Changelog
[7.21.1] - 2020.09.23
jsx-handler-names
]: avoid a crash when an inline prop is not a MemberExpression ([#2803][] @willheslam)Changelog
[7.21.0] - 2020.09.22
button-has-type
]: support trivial ternary expressions ([#2748][] @Hypnosphi)jsx-handler-names
]: add checkInlineFunction
option ([#2761][] @dididy)jsx-no-literals
]: add noAttributeStrings
option ([#2782][] @TaLeaMonet)prop-types
]: add support for PropTypes.exact
([#2740][] @jzabala)jsx-filename-extension
]: Add allow option ([#2746][] @remcohaszing)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
]: In tag-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)jsx-one-expression-per-line
]: add passing tests ([#2799][] @TaLeaMonet)prop-types
]: add test ([#2757][] @jzabala)Changelog
[7.20.6] - 2020.08.12
jsx-curly-brace-presence
]: fix multiline comment case ([#2716][] @ljharb)jsx-no-useless-fragment
]: accept fragments with call expressions ([#2744][] @hasparus)jsx-no-literals
] with allowStrings doesn't work in props ([#2736][] @karolina-benitez)no-find-dom-node
]: Improve error message ([#2741][] @ecraig12345)no-typos
]/[no-unused-prop-types
]/propType detection: Support typescript props interface extension and TSTypeAliasDeclaration ([#2721][] @hank121314)no-this-in-sfc
]/component detection: add arrow function to list of allowed position for component ([#2708][] @jzabala)no-access-state-in-setstate
]: add check for class component ([#2711][] @jzabala)prop-types
]/component detection: avoid a crash when a local createElement
identifier exists ([#2733][] @ljharb)no-unused-prop-types
]: add test assigning this.props to a variableChangelog
[7.20.5] - 2020.07.28
jsx-curly-brace-presence
]: disable disallowed JSX text chars check in props ([#2710][] @jzabala)no-unused-state
]: check for class expression ([#2712][] @jzabala)prop-types
]: handle anonymous functions ([#2730][], [#2731][] @odinho @wKich @jzabala)no-access-state-in-setstate
]: fix example ([#2724][] @youngjuning)Changelog
[7.20.4] - 2020.07.26
prop-types
]: handle component returning null ([#2696][] @hank121314)prop-types
]/[function-component-definition
]: Add check for first letter capitalization in functional component detection ([#2699][] @jzabala)prop-types
]: use variable value in prop type fields defined by variables ([#2704][] @jzabala)no-typos
]: warn on a bindingless react
importboolean-prop-naming
: Added test for function invocation of bool ([#2697][] @ajkovar)jsx-curly-brace-presence
, jsx-no-comment-textnodes
: add passing testsno-unused-state
: avoid a loopChangelog
[7.20.3] - 2020-06-30
no-unused-prop-types
]/[prop-types
]: typescript interface support literal type and only FunctionComponent should have propTypes validation ([#2690][] @hank121314)no-unused-prop-types
]/TypeScript: avoid crash on indexable interface ([#2687][] @ljharb)