Socket
Socket
Sign inDemoInstall

eslint-plugin-react

Package Overview
Dependencies
204
Maintainers
2
Versions
202
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1
35
21Next

7.27.0

Diff

Changelog

Source

[7.27.0] - 2021.11.09

Added

  • support eslint 8.x ([#3059][] @MichaelDeBoey @ljharb)
  • [no-unused-class-component-methods]: Handle unused class component methods ([#2166][] @jakeleventhal @pawelnvk)
  • add [no-arrow-function-lifecycle] ([#1980][] @ngtan)
  • add support for @typescript-eslint/parser v5 (@ljharb)
  • [no-invalid-html-attribute]: add rule ([#2863][] @Nokel81)

Fixed

  • propTypes: add VoidFunctionComponent to react generic list ([#3092][] @vedadeepta)
  • [jsx-fragments], [jsx-no-useless-fragment]: avoid a crash on fragment syntax in typescript-eslint parser (@ljharb)
  • [jsx-props-no-multi-spaces]: avoid a crash on long member chains in tag names in typescript-eslint parser (@ljharb)
  • [no-unused-prop-types], usedPropTypes: avoid crash with typescript-eslint parser (@ljharb)
  • [display-name]: unwrap TS as expressions ([#3110][] @ljharb)
  • [destructuring-assignment]: detect refs nested in functions ([#3102] @ljharb)
  • [no-unstable-components]: improve handling of objects containing render function properties ([#3111] @fizwidget)
  • [prop-types], propTypes: add forwardRef<>, ForwardRefRenderFunction<> prop-types ([#3112] @vedadeepta)
  • [no-typos]: prevent a crash when using private methods (@ljharb)
  • [destructuring-assignment], component detection: improve component detection ([#3122] @vedadeepta)
  • [no-invalid-html-attribute]: avoid crash on spread props ([#3126] @ljharb)

Changed

  • [Tests] test on the new babel eslint parser ([#3113] @ljharb)
  • [Docs] [jsx-no-target-blank]: adjust options description ([#3124] @gebsh)
ljharb
published 7.26.1 •

Changelog

Source

[7.26.1] - 2021.09.29

Fixed

  • [no-namespace]: fix crash on non-string React.createElement name ([#3082] @ljharb)
  • [no-namespace]: avoid crash on non-string createElement values ([#3085] @ljharb)
  • [jsx-no-target-blank]: improve error messages ([#3088] @cutiful)

Changed

  • [Docs] [jsx-max-props-per-line]: fix options example ([#3083] @MrRaiter)
ljharb
published 7.26.0 •

Changelog

Source

[7.26.0] - 2021.09.20

Added

  • add [no-namespace] rule ([#2640] @yacinehmito @ljharb)
  • [jsx-max-props-per-line]: add single and multi options ([#3078] @SIL0RAK)

Fixed

  • [display-name]: Get rid of false position on component detection ([#2759] @iiison)

Changed

  • [no-access-state-in-setstate]: passing test for “don't error if it's not a React Component” ([#1873] @kentcdodds)
ljharb
published 7.25.3 •

Changelog

Source

[7.25.3] - 2021.09.19

Fixed

  • [prop-types], propTypes: bail out unknown generic types inside func params ([#3076] @vedadeepta)

Changed

  • [readme] Update broken link for configuration files ([#3071] @prateek3255)
  • [Refactor] create/extract isCreateElement and isDestructuredFromPragmaImport utils (@ljharb)
ljharb
published 7.25.2 •

Changelog

Source

[7.25.2] - 2021.09.16

Fixed

  • [jsx-no-useless-fragments]: Handle insignificant whitespace correctly when allowExpressions is true ([#3061][] @benj-dobs)
  • [prop-types], propTypes: handle implicit children prop in react's generic types ([#3064][] @vedadeepta)
  • [display-name]: fix arrow function returning result of function call with JSX arguments being interpreted as component ([#3065][] @danielfinke)
  • [jsx-no-target-blank]: avoid crash on attr-only href ([#3066][] @ljharb @gaz77a)
  • [jsx-uses-vars]: ignore lowercase tag names ([#3070][] @alanorozco)
ljharb
published 7.25.1 •

Changelog

Source

[7.25.1] - 2021.08.29

Fixed

  • [no-this-in-sfc], component detection: Improve stateless component detection ([#3056][] @Wesitos)
ljharb
published 7.25.0 •

Changelog

Source

[7.25.0] - 2021.08.27

Added

  • [jsx-no-useless-fragments]: add option to allow single expressions in fragments ([#3006][] @mattdarveniza)
  • add [prefer-exact-props] rule ([#1547][] @jomasti)
  • [jsx-no-target-blank]: add forms option ([#1617][] @jaaberg)
  • [jsx-pascal-case]: add allowLeadingUnderscore option ([#3039][] @pangaeatech)
  • [no-children-prop]: Add allowFunctions option ([#1903][] @alexzherdev)
  • [jsx-runtime]: set parserOptions.jsxPragma for @typescript-eslint/parser ([bb64df65][] @ljharb)

Fixed

  • component detection: use estraverse to improve component detection ([#2992][] @Wesitos)
  • [destructuring-assignment], [no-multi-comp], [no-unstable-nested-components], component detection: improve component detection ([#3001][] @vedadeepta)
  • [no-deprecated]: fix crash on rest elements ([#3016][] @ljharb)
  • [destructuring-assignment]: get the contextName correctly ([#3025][] @ohhoney1)
  • [no-typos]: prevent crash on styled components and forwardRefs ([#3036][] @ljharb)
  • [destructuring-assignment], component detection: handle default exports edge case ([#3038][] @vedadeepta)
  • [no-typos]: fix crash on private methods ([#3043][] @ljharb)
  • [jsx-no-bind]: handle local function declarations ([#3048][] @p7g)
  • [prop-types], propTypes: handle React.* TypeScript types ([#3049][] @vedadeepta)
  • [prop-types], propTypes: add handling for FC<Props>, improve tests ([#3051][] @vedadeepta)
  • [prop-types], propTypes: prevent crash introduced in [#3051][] ([#3053][] @ljharb)

Changed

  • [Docs] [jsx-no-bind]: updates discussion of refs ([#2998][] @dimitropoulos)
  • [Refactor] utils/Components: correct spelling and delete unused code ([#3026][] @ohhoney1)
  • [Docs] [jsx-uses-react], [react-in-jsx-scope]: document [react/jsx-runtime] config ([#3018][] @pkuczynski @ljharb)
  • [Docs] [require-default-props]: fix small typo ([#2994][] @evsasse)
  • [Tests] add weekly scheduled smoke tests ([#2963][] @AriPerkkio)
  • [Docs] improve instructions for jsx-runtime config ([#3052][] @ljharb)
ljharb
published 7.24.0 •

Changelog

Source

[7.24.0] - 2021.05.27

Added

  • component detection: add componentWrapperFunctions setting ([#2713][] @@jzabala @LandonSchropp)
  • [no-unused-prop-types]: add ignore option ([#2972][] @grit96)
  • version detection: support recursive processor virtual filename ([#2965][] @JounQin)

Fixed

  • [jsx-handler-names]: properly substitute value into message ([#2975][] @G-Rath)
  • [jsx-uses-vars]: ignore namespaces ([#2985][] @remcohaszing)
  • [jsx-no-undef]: ignore namespaces ([#2986][] @remcohaszing)
  • [jsx-child-element-spacing]: Don't flag whitespace around <br/> tags ([#2989][] @pascalpp)

Changed

  • [Docs] [jsx-newline]: Fix minor spelling error on rule name ([#2974][] @DennisSkoko)
  • [Refactor] [void-dom-elements-no-children]: improve performance
  • [readme] fix missing trailing commas ([#2980][] @sugardon)
  • [readme] fix broken anchor link ([#2982][] @vzvu3k6k)
  • [Docs] [jsx-child-element-spacing]: fixes sentence which ends abruptly ([#2990][] @pascalpp)
ljharb
published 7.23.2 •

Changelog

Source

[7.23.2] - 2021.04.08

Fixed

  • [jsx-max-depth]: Prevent getting stuck in circular references ([#2957][] @AriPerkkio)
  • [jsx-no-target-blank]: fix handling of warnOnSpreadAttributes being false ([#2953][] @Nokel81)
  • [forbid-dom-props]: support JSXNamespacedName ([#2961][] @mrtnzlml)
  • [forbid-component-props]: support JSXNamespacedName (@ljharb)

Changed

  • Fix CHANGELOG.md ([#2950][] @JounQin)
ljharb
published 7.23.1 •

Changelog

Source

[7.23.1] - 2021.03.23

Fixed

  • version detection: support processor virtual filename ([#2949][] @JounQin)
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc