Skip to content

v7.29.0

Compare
Choose a tag to compare
@ljharb ljharb released this 25 Feb 18:07
· 367 commits to master since this release
v7.29.0
ddcc5b3

Added

  • add [hook-use-state] rule to enforce symmetric useState hook variable names ([#2921][] @duncanbeevers)
  • [jsx-no-target-blank]: Improve fixer with option allowReferrer ([#3167][] @apepper)
  • [jsx-curly-brace-presence]: add "propElementValues" config option ([#3191][] @ljharb)
  • add [iframe-missing-sandbox] rule ([#2753][] @tosmolka @ljharb)
  • [no-did-mount-set-state], [no-did-update-set-state]: no-op with react >= 16.3 ([#1754][] @ljharb)
  • [jsx-sort-props]: support multiline prop groups ([#3198][] @duhamelgm)
  • [jsx-key]: add warnDuplicates option to warn on duplicate jsx keys in an array ([#2614][] @ljharb)
  • [jsx-sort-props]: add locale option ([#3002][] @ljharb)

Fixed

  • [prop-types], propTypes: add support for exported type inference ([#3163][] @vedadeepta)
  • [no-invalid-html-attribute]: allow 'shortcut icon' on link ([#3174][] @Primajin)
  • [prefer-exact-props] improve performance for Identifier visitor ([#3190][] @meowtec)
  • propTypes: Handle TSTypeReference in no-unused-prop-type ([#3195][] @niik)
  • [sort-prop-types]: avoid repeated warnings of the same node/reason ([#519][] @ljharb)
  • [jsx-indent]: Fix indent handling for closing parentheses ([#620][] @stefanbuck])
  • [prop-types/propTypes]: follow a returned identifier to see if it is JSX ([#1046][] @ljharb)
  • [no-unused-state]: TS: support getDerivedStateFromProps as an arrow function ([#2061][] @ljharb)
  • [no-array-index-key]: catch .toString and String() usage ([#2813][] @RedTn)
  • [function-component-definition]: do not break on dollar signs ([#3207][] @ljharb)
  • [prefer-stateless-function]: avoid a crash inside doctrine ([#2596][] @ljharb)
  • [prop-types]: catch infinite loop ([#2861][] @ljharb)
  • [forbid-prop-types]: properly report name in error message; check undestructured arguments ([#2945][] @ljharb)

Changed

  • [readme] change [jsx-runtime] link from branch to sha ([#3160][] @tatsushitoji)
  • [Docs] HTTP => HTTPS ([#3133][] @Schweinepriester)
  • [readme] Some grammar fixes ([#3186][] @JJ)
  • [Docs] [jsx-no-target-blank]: Improve readme ([#3169][] @apepper)
  • [Docs] [display-name]: improve examples ([#3189][] @golopot)
  • [Refactor] [no-invalid-html-attribute]: sort HTML_ELEMENTS and messages ([#3182][] @Primajin)
  • [Docs] [forbid-foreign-prop-types]: document allowInPropTypes option ([#1815][] @ljharb)
  • [Refactor] [jsx-sort-default-props]: remove unnecessary code ([#1817][] @ljharb)
  • [Docs] [jsx-no-target-blank]: fix syntax highlighting ([#3199][] @shamrin)
  • [Docs] [jsx-key]: improve example ([#3202][] @chnakamura)
  • [Refactor] [jsx-key]: use more AST selectors (@ljharb)

New Contributors

Full Changelog: v7.28.0...v7.29.0