Releases: jsx-eslint/eslint-plugin-react
Releases · jsx-eslint/eslint-plugin-react
v7.27.0
What's Changed
- [New] add
no-unused-class-component-methods
by @pawelnvk in #2239 - [New] Add
no-arrow-function-lifecycle
rule by @ngtan in #1980 - [react/jsx-uses-vars]: False negative on HTML elements used in JSX by @karlhorky in #2916
- [Fix]
propTypes
: addVoidFunctionComponent
to react generic list by @vedadeepta in #3092 - [Fix]
no-arrow-function-lifecycle
: prevent crashing on ClassProperty by @AriPerkkio in #3098 - [Dev Deps] Upgrade
eslint-plugin-eslint-plugin
to v4 by @bmish in #3105 - [Tests] use parsers.all + features to maximally repeat test cases across parsers, plus fixes by @ljharb in #3108
- [Fix]
display-name
: unwrap TSas
expressions by @ljharb in #3110 - [Fix]
no-unstable-components
: improve handling of objects containing render functions by @fizwidget in #3111 - [Fix]
prop-types
,propTypes
: add forwardRef<>, ForwardRefRenderFunction<> prop-types by @vedadeepta in #3112 - [Tests] test on the new babel eslint parser by @ljharb in #3113
- [Dev Deps] update
eslint-remote-tester
by @AriPerkkio in #3118 - [New] add
no-invalid-html-attribute
rule by @Nokel81 in #2863 - [Dev Deps] update
eslint-remote-tester-run-action
by @AriPerkkio in #3120 - [Fix]
destructuring-assignment
, component detection: improve component detection by @vedadeepta in #3122 - [Docs]
jsx-no-target-blank
: adjust options description by @gebsh in #3124 - [New] support eslint 8.x by @MichaelDeBoey in #3059
New Contributors
- @ngtan made their first contribution in #1980
- @karlhorky made their first contribution in #2916
- @bmish made their first contribution in #3105
- @fizwidget made their first contribution in #3111
- @gebsh made their first contribution in #3124
- @MichaelDeBoey made their first contribution in #3059
Full Changelog: v7.26.1...v7.27.0
v7.26.1
v7.26.0
Added
- add
no-namespace
rule (#2640 @yacinehmito @ljharb) jsx-max-props-per-line
: addsingle
andmulti
options (#3078 @SIL0RAK)
Fixed
display-name
: Get rid of false position on component detection (#2759 @iiison)
Changed
no-access-state-in-setstate
: passing test for “don't error if it's not a React Component” (#1873 @kentcdodds)