Releases: jsx-eslint/eslint-plugin-react
Releases · jsx-eslint/eslint-plugin-react
v7.37.5
Fixed
no-unknown-property: allow shadow root attrs on<template>(#3912 @ljharb)prop-types: supportComponentPropsWithReffrom a namespace import (#3651 @corydeppen)jsx-no-constructed-context-values: detect constructed context values in React 19<Context>usage (#3910 @TildaDares)no-unknown-property: allowtransform-originonrect(#3914 @ljharb)
Changed
- [Docs]
button-has-type: clean up phrasing (#3909 @hamirmahal)
v7.37.4
v7.37.3
Fixed
no-danger: avoid a crash on a nested component name (#3833 @ljharb)- [Fix] types: correct generated type declaration (#3840 @ocavue)
no-unknown-property: supportprecedenceprop in react 19 (#3829 @acusti)prop-types: props missing in validation when using generic types from a namespace import (#3859 @rbondoc96)
Changed
- [Tests]
jsx-no-script-url: Improve tests (#3849 @radu2147) - [Docs] fix broken links:
default-props-match-prop-types,jsx-boolean-value,jsx-curly-brace-presence,jsx-no-bind,no-array-index-key,no-is-mounted,no-render-return-value,require-default-props(#3841 @bastiendmt)
v7.37.2
Fixed
destructuring-assignment: fix false negative when usingtypeof props.a(#3835 @golopot)
Changed
- [Refactor]
destructuring-assignment: usegetParentStatelessComponent(#3835 @golopot)
v7.37.1
v7.37.0
Added
- add type generation (#3830 @voxpelli)
no-unescaped-entities: add suggestions (#3831 @StyleShit)forbid-component-props: addallowedForPatterns/disallowedForPatternsoptions (#3805 @Efimenko)no-unstable-nested-components: addpropNamePatternto support custom render prop naming conventions (#3826 @danreeves)
Changed
v7.36.1
Fixed
no-is-mounted: fix logic in method name check (#3821 @Mathias-S)jsx-no-literals: Avoid crashing on valueless boolean props (#3823 @reosarevok)
v7.36.0
Added
no-string-refs: allow this.refs in > 18.3.0 (#3807 @henryqdineen)jsx-no-literalsAddelementOverridesoption and the ability to ignore this rule on specific elements (#3812 @Pearce-Ropion)forward-ref-uses-ref: add rule for checking ref parameter is added ([#3667][] @NotWoods)
Fixed
function-component-definition,boolean-prop-naming,jsx-first-prop-new-line,jsx-props-no-multi-spaces,propTypes: use type args (#3629 @HenryBrown0)- JSX pragma: fail gracefully (#3632 @ljharb)
jsx-props-no-spreading: addexplicitSpreadoption to schema (#3799 @ljharb)
Changed
- [Tests] add @typescript-eslint/parser v6 (#3629 @HenryBrown0)
- [Tests] add @typescript-eslint/parser v7 and v8 (#3629 @hampustagerud)
- [Docs]
no-danger: update broken link (#3817 @lucasrmendonca) - [types] add jsdoc type annotations (#3731 @y-hsgw)
- [Tests]
button-has-type: add test case with spread (#3731 @y-hsgw)
v7.35.2
Fixed
jsx-curly-brace-presence: avoid autofixing attributes with double quotes to a double quoted attribute (#3814 @ljharb)
v7.35.1
Fixed
jsx-curly-brace-presence: do not trigger on strings containing a quote character (#3798 @akulsr0)