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

Diff

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

Changelog

Source

[7.18.0] - 2020-01-15

Added

  • [require-default-props][]: add option to ignore functional components ([#2532][] @RedTn)
  • [function-component-definition][]: Enforce a specific function type for function components ([#2414][] @Stefanwullems)
  • [no-adjacent-inline-elements][]: Prevent adjacent inline elements not separated by whitespace ([#1155][] @SeanHayes)
  • [jsx-no-script-url][]: prevent usage of javascript: URLs ([#2419][] @sergei-startsev)

Fixed

  • [jsx-pascal-case][]: false negative with namespacing ([#1337][] @mfyuce)
  • [jsx-curly-brace-presence][]: Fix curly-brace-presence edge cases ([#2523][] @rafbgarcia)
  • [prop-types][]: Does not validate missing propTypes for LogicalExpression ([#2533][] @toshi-toma)
  • [no-unknown-property][]: allowTransparency does not exist in React >= v16.1 ([#1538][] @dawidvdh)
  • [jsx-curly-brace-presence][]: Fix error related to tags line break ([#2521][] @rafbgarcia)
  • [no-typos][]: Compilation error when method name is string instead of identifier ([#2514][] @shijistar)
  • [jsx-curly-brace-presence][]: allow trailing spaces in TemplateLiteral ([#2507][] @doochik)
  • [no-unused-prop-types], [no-unused-state]: fix false positives when using TS type assertions ([#2536][] @kdmadej)

Changed

  • [Docs] [no-render-return-value][]: Fix title ([#2540][] @micnic)
  • [Refactor]: remove unused codes in util/propTypes ([#2288][] @golopot)
  • [no-typos]: check static lifecycle methods ([#2006][] @bsonntag)
  • [Docs] [jsx-first-prop-new-line][]: Fix rule name in "Rule Options" section ([#2535][] @barreira)
  • [Tests] [no-unused-prop-types][]: Added test cases ([#977][] @dozoisch)
  • [Tests] avoid running tests on pretest job
  • [meta] Move eslint-plugin-eslint-plugin to devDeps ([#2510][] @nstepien)
  • [Deps] update array-includes, object.entries, object.fromentries, object.values, resolve
ljharb
published 7.17.0 •

Changelog

Source

[7.17.0] - 2019-11-28

Added

  • [jsx-no-target-blank][]: add allowReferrer option ([#2478][] @eps1lon)
  • [jsx-handler-names][]: add checkLocalVariables option ([#2470][] @aub)
  • [prop-types][]: Support Flow Type spread ([#2446][] @moroine)
  • [jsx-props-no-spreading][]: add explicitSpread option to allow explicit spread of props ([#2449][] @pawelnvk)
  • [jsx-no-target-blank][]: warn on target={'_blank'} expressions ([#2451][] @timkraut)
  • [function-component-definition]: Enforce a specific function type for function components ([#2414][] @Stefanwullems)

Fixed

  • [sort-prop-types][], [jsx-sort-default-props][]: disable broken autofix ([#2505][] @webOS101)
  • [no-typos][]: improve report location ([#2468][] @golopot)
  • [jsx-no-literals][]: trim whitespace for allowedStrings check ([#2436][] @cainlevy)
  • [jsx-curly-brace-presence][]: Fix filter of undefined error with whitespace inside jsx attr curlies ([#2460][] @dustinyoste)
  • [no-render-return-value][]: should warn when used in assignment expression ([#2462][] @jichu4n)
  • [jsx-curly-brace-presence][]: allow trailing spaces in literal ([#2448][] @doochik)

Changed

  • [Deps] update jsx-ast-utils, object.fromentries, resolve
  • [eslint] fix func-names and change object-shorthand to 'always' ([#2483][] @golopot)
  • [Docs] jsx-first-prop-new-line: Fix documentation formatting ([#2489][] @pjg)
  • [Docs] [prop-types][]: Update 'skipUndeclared' in rule options ([#2504][] @cjnickel)
  • [Docs] [jsx-first-prop-new-line][]: fix wrong rule name ([#2500][] @zgayjjf)
  • [eslint] enable eslint-plugin-eslint-plugin ([#2469][] @golopot)
  • [Docs] [jsx-props-no-multi-spaces][]: suggest using core rule instead ([#2463][] @golopot)
  • [Docs] [jsx-first-prop-new-line][]: add rule options ([#2465][] @SerdarMustafa1)
  • [Docs] [jsx-no-target-blank][]: Add section about overriding for trusted links ([#2438][] @aschriner)
  • [Docs] fix typo ([#2453][] @cainwatson)
  • [Docs] [no-unused-prop-types][]: clean up prose ([#2273][] @coryhouse)
  • [Docs] [jsx-no-bind][]: add section about React Hooks ([#2443][] @kdex)
ljharb
published 7.16.0 •

Changelog

Source

[7.16.0] - 2019-10-04

Added

  • [jsx-sort-default-props][]: make rule fixable ([#2429][] @emroussel)

Fixed

  • [jsx-no-useless-fragment][]: use array-includes over .includes for back compat (@ljharb)
  • [jsx-curly-brace-presence][]: allow necessary white-space literal ([#2437][] @uniqname)
  • [jsx-curly-brace-presence][]: warns incorrectly on trailing whitespace ([#2431][] @BC-M)
  • [no-unused-prop-types][]: false positive when nested destructuring ([#2428][] @golopot)
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