eslint-plugin-react
Advanced tools
Changelog
[7.23.1] - 2021.03.23
Changelog
[7.23.0] - 2021.03.22
jsx-no-target-blank
]: add fixer ([#2862][] @Nokel81)jsx-pascal-case
]: support minimatch ignore
option ([#2906][] @bcherny)jsx-pascal-case
]: support allowNamespace
option ([#2917][] @kev-y-huang)jsx-newline
]: Add prevent option ([#2935][] @jsphstls)no-unstable-nested-components
]: Prevent creating unstable components inside components ([#2750][] @AriPerkkio)jsx-runtime
config, for the modern JSX runtime transform (@ljharb)jsx-no-constructed-context-values
]: avoid a crash with as X
TS code ([#2894][] @ljharb)jsx-no-constructed-context-values
]: avoid a crash with boolean shorthand ([#2895][] @ljharb)static-property-placement
]: do not report non-components ([#2893][] @golopot)no-array-index-key
]: support optional chaining ([#2897][] @SyMind)no-typos
]: avoid a crash on bindingless prop-types
import; add warning ([#2899][] @ljharb)jsx-curly-brace-presence
]: ignore containers with comments ([#2900][] @golopot)destructuring-assignment
]: fix a false positive for local prop named context
in SFC ([#2929][] @SyMind)jsx-no-target-blank
]: Allow rel="noreferrer" when allowReferrer
is true ([#2925][] @edemaine)boolean-prop-naming
]: add check for typescript "boolean" type ([#2930][] @vedadeepta)jsx-curly-newline
]: Update error messages ([#2933][] @jbrower2)jsx-no-constructed-context-values
][]: fix invalid example syntax ([#2910][] @kud)Changelog
[7.22.0] - 2020.12.29
jsx-key
]: added checkKeyMustBeforeSpread
option for new jsx transform ([#2835][] @morlay)jsx-newline
]: add new rule ([#2693][] @jzabala)jsx-no-constructed-context-values
]: add new rule which checks when the value passed to a Context Provider will cause needless rerenders ([#2763][] @dylanOshima)jsx-indent-props
]: add ignoreTernaryOperator
option ([#2846][] @SebastianZimmer)jsx-no-target-blank
]: Add warnOnSpreadAttributes
option ([#2855][] @michael-yx-wu)display-name
]/component detection: avoid a crash on anonymous components ([#2840][] @ljharb)prop-types
]: function in class that returns a component causes false warning in typescript ([#2843][] @SyMind)jsx-no-target-blank
]: avoid a crash with a non-string literal ([#2851][] @ljharb)jsx-no-script-url
]: avoid crash with boolean href
([#2871][] @ljharb, @AriPerkkio)no-typos
]: avoid crash with computed method name ([#2870][] @ljharb, @AriPerkkio)jsx-max-depth
]: avoid crash with childless jsx child ([#2869][] @ljharb, @AriPerkkio)jsx-wrap-multilines
]: fix crash with declaration
s that are on a new line after =
([#2875][] @ljharb)no-unknown-property
]: avoid crash with prop named with Object.prototype key ([#2879][] @ljharb, @AriPerkkio)prop-types
]: default argument does not count as props-types declaration ([#2877][] @golopot)jsx-props-no-multi-spaces
]: fix a false positive for beside comments ([#2878][] @golopot)jsx-no-undef
]: handle the TS parser combined with an invalid ecmaVersion ([#2882][] @ljharb)no-unused-prop-types
]: apply skipShapeProps
to exact types ([#2883][] @golopot)no-danger-with-children
]/[style-prop-object
]/[no-adjacent-inline-elements
]: add category, URL ([#2891][] @thofmann)no-unused-prop-types
]: Add new example to rule ([#2852][] @thehereward)prop-types
]: fix example ([#2881][] @technote-space)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 variable