Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-react

Package Overview
Dependencies
Maintainers
1
Versions
213
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
22

7.23.1

Diff

Changelog

Source

[7.23.1] - 2021.03.23

Fixed

  • version detection: support processor virtual filename ([#2949][] @JounQin)
ljharb
published 7.23.0 •

Changelog

Source

[7.23.0] - 2021.03.22

Added

  • [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)
  • added jsx-runtime config, for the modern JSX runtime transform (@ljharb)

Fixed

  • [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)
  • version detection: Add tests that verify versioning works for sibling and child projects ([#2943][] @jcrosetto)
  • [jsx-curly-newline]: Update error messages ([#2933][] @jbrower2)

Changed

  • [Docs] [jsx-no-constructed-context-values][]: fix invalid example syntax ([#2910][] @kud)
  • [readme] Replace lists of rules with tables in readme ([#2908][] @motato1)
  • [Docs] added missing curly braces ([#2923][] @Muditxofficial)
ljharb
published 7.22.0 •

Changelog

Source

[7.22.0] - 2020.12.29

Added

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

Fixed

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

Docs

  • [no-unused-prop-types]: Add new example to rule ([#2852][] @thehereward)
  • [prop-types]: fix example ([#2881][] @technote-space)
ljharb
published 7.21.5 •

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
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