eslint-plugin-react

React-specific linting rules for ESLint

MIT License

Downloads
85.2M
Stars
8.8K
Committers
567

Bot releases are hidden (Show)

eslint-plugin-react - v7.29.2

Published by ljharb over 2 years ago

eslint-plugin-react - v7.29.1

Published by ljharb over 2 years ago

Fixed

  • jsx-key: prevent false "missing array key" warning (#3215 @ljharb)
  • jsx-indent: avoid checking returns sans jsx (#3218 @ljharb)
  • jsx-key: avoid a crash (#3220 @ljharb)
  • version settings: avoid a crash with an invalid version (#3219 @ljharb)
eslint-plugin-react - v7.29.0

Published by ljharb over 2 years ago

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: https://github.com/yannickcr/eslint-plugin-react/compare/v7.28.0...v7.29.0

eslint-plugin-react - v7.28.0

Published by ljharb almost 3 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/yannickcr/eslint-plugin-react/compare/v7.27.1...v7.28.0

eslint-plugin-react - v7.27.1

Published by ljharb almost 3 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/yannickcr/eslint-plugin-react/compare/v7.27.0...v7.27.1

eslint-plugin-react - v7.27.0

Published by ljharb almost 3 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/yannickcr/eslint-plugin-react/compare/v7.26.1...v7.27.0

eslint-plugin-react - v7.26.1

Published by ljharb almost 3 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/yannickcr/eslint-plugin-react/compare/v7.26.0...v7.26.1

eslint-plugin-react - v7.26.0

Published by ljharb about 3 years ago

Added

Fixed

Changed

eslint-plugin-react - v7.25.3

Published by ljharb about 3 years ago

eslint-plugin-react - v7.25.2

Published by ljharb about 3 years ago

eslint-plugin-react - v7.25.1

Published by ljharb about 3 years ago

eslint-plugin-react - v7.25.0

Published by ljharb about 3 years ago

eslint-plugin-react - v7.24.0

Published by ljharb about 3 years ago

eslint-plugin-react - v7.23.2

Published by ljharb over 3 years ago

eslint-plugin-react - v7.23.1

Published by ljharb over 3 years ago

eslint-plugin-react - v7.23.0

Published by ljharb over 3 years ago

eslint-plugin-react - v7.22.0

Published by ljharb over 3 years ago

eslint-plugin-react - v7.21.5

Published by ljharb almost 4 years ago

eslint-plugin-react - v7.21.4

Published by ljharb almost 4 years ago

eslint-plugin-react - v7.20.0

Published by ljharb over 4 years ago

Added

Fixed

Docs

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