Socket
Socket
Sign inDemoInstall

eslint-plugin-react

Package Overview
Dependencies
Maintainers
1
Versions
210
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-react - npm Package Versions

1
21

7.21.5

Diff

Changelog

Source

[7.21.5] - 2020.10.19

Fixed

  • [jsx-indent-props]: Apply indentation when using brackets ([#2826][] @Moong0122)
  • [jsx-handler-names]: Skip inline handlers when checkInlineFunction=false ([#2833][] @onigoetz)

Changed

  • [Tests] jsx-indent-props: Add passing test ([#2823][] @Hypnosphi)
ljharb
published 7.21.4 •

Changelog

Source

[7.21.4] - 2020.10.09

Fixed

  • [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)
  • [Deps] update jsx-ast-utils ([#2822][] [jsx-eslint/jsx-ast-utils#102][] @ljharb)
ljharb
published 7.21.3 •

Changelog

Source

[7.21.3] - 2020.10.02

Fixed

  • [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)
ljharb
published 7.21.2 •

Changelog

Source

[7.21.2] - 2020.09.24

Fixed

  • [prop-types]: handle RestElement in destructured param ([#2805][] @hank121314)
ljharb
published 7.21.1 •

Changelog

Source

[7.21.1] - 2020.09.23

Fixed

  • [jsx-handler-names]: avoid a crash when an inline prop is not a MemberExpression ([#2803][] @willheslam)
ljharb
published 7.21.0 •

Changelog

Source

[7.21.0] - 2020.09.22

Added

  • [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)

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]: 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)

Changed

  • [Tests] [jsx-one-expression-per-line]: add passing tests ([#2799][] @TaLeaMonet)
  • [Tests] [prop-types]: add test ([#2757][] @jzabala)
ljharb
published 7.20.6 •

Changelog

Source

[7.20.6] - 2020.08.12

Fixed

  • [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)

Changed

  • [no-unused-prop-types]: add test assigning this.props to a variable
ljharb
published 7.20.5 •

Changelog

Source

[7.20.5] - 2020.07.28

Fixed

  • [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)

Docs

  • [Docs] [no-access-state-in-setstate]: fix example ([#2724][] @youngjuning)
ljharb
published 7.20.4 •

Changelog

Source

[7.20.4] - 2020.07.26

Fixed

  • improve algorithm to check if a variable is coming from the pragma ([#2706][] @jzabala)
  • [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 import

Changed

  • [Tests] boolean-prop-naming: Added test for function invocation of bool ([#2697][] @ajkovar)
  • [Tests] jsx-curly-brace-presence, jsx-no-comment-textnodes: add passing tests
  • [Refactor] no-unused-state: avoid a loop
ljharb
published 7.20.3 •

Changelog

Source

[7.20.3] - 2020-06-30

Fixed

  • [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)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc