github jsx-eslint/eslint-plugin-react v7.17.0

latest releases: v7.34.1, v7.34.0, v7.33.2...
4 years ago

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)

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)

Don't miss a new eslint-plugin-react release

NewReleases is sending notifications on new releases.