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

Diff

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

Changelog

Source

[7.20.2] - 2020-06-29

Fixed

  • [no-unused-prop-types]: handle optional chaining ([#2679][] @hank121314)
  • [jsx-pascal-case]: fix a false positive with "H1" ([#2683][] @ljharb)
  • [jsx-no-useless-fragment]: avoid a crash when autofixing a self-closing React.Fragment ([#2680][] @ljharb)
  • [forbid-prop-types]: avoid crash ([#2682][] @ljharb)
ljharb
published 7.20.1 •

Changelog

Source

[7.20.1] - 2020-06-28

Fixed

  • [forbid-dom-props], [function-component-definition]: fix schema typos ([#2667][] @mflorence99)
  • [no-unused-prop-types]: fix with typescript eslint parser ([#2661][] @eltonio450)

Changed

  • [forbid-prop-types]: warn on destructured values as well ([#2676][] @ajkovar)
  • relax JSX pragma regexp ([#2643][] @gfmio)
  • Cache detected React version ([#2673][] @lencioni)
  • [refactor] [jsx-pascal-case]: Remove xregexp ([#2636][] @yacinehmito))
  • [Tests] a [no-typos] test fails in eslint v7.3 ([#2678][] @toshi-toma)
  • [Deps] update jsx-ast-utils, object.entries, resolve
  • [Dev Deps] update @types/eslint, @types/estree, @types/node, @typescript-eslint/parser, eslint-config-airbnb-base, eslint-plugin-eslint-plugin, eslint-plugin-import, typescript
ljharb
published 7.20.0 •

Changelog

Source

[7.20.0] - 2020-05-12

Added

  • support eslint v7 ([#2635][] @ljharb, @toshi-toma)
  • [forbid-component-props][]/[forbid-dom-props][]: Allow a custom message with forbid props ([#2615][] @mtamhankar1)
  • [jsx-no-literals][]: add ignoreProps option to ignore props validation ([#2146][] @iiison)

Fixed

  • [jsx-sort-props][]: only use localeCompare when case is ignored ([#2556][] @tanmoyopenroot)
  • [jsx-key][]: add a failing test case for optional chaining ([#2610][] @JonathanLee-LX)
  • [no-unused-state][]: handle optional chaining ([#2588][] @golopot)
  • [jsx-pascal-case][]: Do not consider namespaces when checking for DOM ([#2638][] @yacinehmito)
  • [jsx-curly-spacing][], [jsx-no-bind][], usedPropTypes util: avoid node.start and node.end ([25b1936][] @toshi-toma)
  • [jsx-no-target-blank][]: allow no-referrer without noopener by default ([#2043][] @seancrater)
  • [button-has-type][]: improve message when non-static value is used ([aecff62][] @golopot)
  • [no-adjacent-inline-elements][]: prevent crash on nullish children ([#2621][] @Rogdham)
  • [prop-types][]: avoid crash when spreading any type ([#2606][] @golopot))
  • [require-render-return][]: add missing "a" ([#2604][] @leothorp)
  • [jsx-no-comment-textnodes][]: fix for @typescript-eslint/parser ([#2601][] @Axnyff)
  • [displayName][]: avoid a crash when using React.memo ([#2587][] @golopot)

Docs

  • Clean up examples in rule docs ([#2546][] @silvenon)
  • [readme] Add Rules of Hooks to Other useful plugins section ([#2633][] @petetnt)
  • [no-this-in-sfc][]: backtick this ([#2616][] @mrflip)
  • [function-component-definition][]: Fix unnamedComponents option examples ([#2608][] @vkrol))

Changed

  • [Deps] Move "semver" to devDependencies ([#2595][] @rajivshah3)
  • [eslint] remove operator-linebreak override ([#2578][] @golopot)
  • [Tests] button-has-type: ensure no mistakenly allowed identifiers named button/submit/reset ([#2625][] @golopot)
  • [Tests] displayName: add a test case ([#2593][] @golopot)
  • [Dev Deps] update @types/eslint, @types/estree, @types/node, @typescript-eslint/parser, coveralls, eslint-config-airbnb-base, eslint-plugin-import, typescript
ljharb
published 7.19.0 •

Changelog

Source

[7.19.0] - 2020-03-06

Added

  • [style-prop-object][]: Add allow option ([#1819][] @hornta)
  • [jsx-pascal-case][]: Support unicode characters ([#2557][] @Svish)

Fixed

  • [prefer-stateless-function][]: avoid crash on ts empty constructor ([#2582][] @golopot)
  • [no-adjacent-inline-elements][]: avoid a crash ([#2575] @ljharb)
  • [no-unused-prop-types][]: Change the reporting to point to a more accurate node ([#2292][] @jseminck)
  • [self-closing-comp][]: consider JSXMemberExpression as component too ([#2572][] @Belco90)
  • [no-unused-prop-types][]: make markPropTypesAsUsed work with TSEmptyBodyFunctionExpression AST node ([#2560][] @guillaumewuip)
  • [displayName][] (but really, propTypes detection): do not crash on empty flow type spreads ([#2570][] @ljharb)

Changed

  • [readme] Small visual inconsistency ([#2568] @arvigeus)
  • [docs] add react/ prefix to rule name, for consistency
  • [no-unescaped-entities][]: skip test cases that are now parsing errors in acorn-jsx@5.2.0 ([#2583] @golopot)
ljharb
published 7.18.3 •

Changelog

Source

[7.18.3] - 2020-02-02

Fixed

  • [jsx-indent][]: don't check literals not within JSX ([#2564][] @toshi-toma)
ljharb
published 7.18.2 •

Changelog

Source

[7.18.2] - 2020-02-01

Fixed

  • [jsx-indent][]: avoid a crash on non-string literals ([#2561][] @ljharb)
ljharb
published 7.18.1 •

Changelog

Source

[7.18.1] - 2020-02-01

Fixed

  • [jsx-indent][]: Does not check indents for JSXText ([#2542][] @toshi-toma)
  • [jsx-props-no-spreading][]: add support for namespaced jsx components ([#2534][] @jonathanpalma)
  • [jsx-no-target-blank][]: allow rel to be an expression ([#2544][] @odinho)
  • [sort-comp][]: | isn’t a valid regex flag; u and s are (@ljharb)

Changed

  • [Docs] use markdown-magic to automatically sort all rules alphabetically ([#1742][] @ybiquitous)
  • [Docs] [jsx-props-no-spreading][]: fix typo to use correct rule ([#2547][] @jonggyun))
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