eslint-plugin-react

Developer ToolsMIT

eslint-plugin-react release notes.

Latest v7.37.5 · by eslint-plugin-reactWritten in JavaScriptWebsitejsx-eslint/eslint-plugin-reactRSS

Changelog

v7.37.5

Latest
Changed 1
  • Clean up phrasing in button-has-type documentation
Fixed 4
  • Allow shadow root attrs on <template> in no-unknown-property
  • Support ComponentPropsWithRef from a namespace import in prop-types
  • Detect constructed context values in React 19 <Context> usage in jsx-no-constructed-context-values
  • Allow transform-origin on rect in no-unknown-property

From eslint-plugin-react

Fixed
  • no-unknown-property: allow shadow root attrs on <template> (#3912 @ljharb)
  • prop-types: support ComponentPropsWithRef from a namespace import (#3651 @corydeppen)
  • jsx-no-constructed-context-values: detect constructed context values in React 19 <Context> usage (#3910 @TildaDares)
  • no-unknown-property: allow transform-origin on rect (#3914 @ljharb)
Changed
  • [Docs] button-has-type: clean up phrasing (#3909 @hamirmahal)
View originalPermalink
How v7.37.5 went

v7.37.4

Fixed 2
  • Support onBeforeToggle, popoverTarget, popoverTargetAction attributes in no-unknown-property rule
  • Fix types of flat configs

From eslint-plugin-react

Fixed
  • no-unknown-property: support onBeforeToggle, popoverTarget, popoverTargetAction attributes (#3865 @acusti)
  • [types] fix types of flat configs (#3874 @ljharb)
View originalPermalink
How v7.37.4 went

v7.37.3

Fixed 4
  • no-danger: avoid a crash on a nested component name
  • Correct generated type declaration
  • no-unknown-property: support precedence prop in React 19
  • prop-types: props missing in validation when using generic types from a namespace import

From eslint-plugin-react

Fixed
  • no-danger: avoid a crash on a nested component name (#3833 @ljharb)
  • [Fix] types: correct generated type declaration (#3840 @ocavue)
  • no-unknown-property: support precedence prop 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)
View originalPermalink
How v7.37.3 went

v7.37.2

Changed 1
  • Refactor destructuring-assignment rule to use getParentStatelessComponent
Fixed 1
  • Fix false negative in destructuring-assignment rule when using typeof props.a

From eslint-plugin-react

Fixed
  • destructuring-assignment: fix false negative when using typeof props.a (#3835 @golopot)
Changed
  • [Refactor] destructuring-assignment: use getParentStatelessComponent (#3835 @golopot)
View originalPermalink
How v7.37.2 went

v7.37.1

Changed 1
  • Fix shared settings link in readme
Fixed 1
  • Do not npmignore d.ts files

From eslint-plugin-react

Fixed
  • [meta] do not npmignore d.ts files (#3836 @ljharb)
Changed
  • [readme] Fix shared settings link (#3834 @MgenGlder)
View originalPermalink
How v7.37.1 went

v7.37.0

Added 4
  • Add type generation
  • Add suggestions to no-unescaped-entities rule
  • Add allowedForPatterns and disallowedForPatterns options to forbid-component-props rule
  • Add propNamePattern option to no-unstable-nested-components rule to support custom render prop naming conventions
Changed 1
  • Update readme flat config example for react 17+

From eslint-plugin-react

Added
  • add type generation (#3830 @voxpelli)
  • no-unescaped-entities: add suggestions (#3831 @StyleShit)
  • forbid-component-props: add allowedForPatterns/disallowedForPatterns options (#3805 @Efimenko)
  • no-unstable-nested-components: add propNamePattern to support custom render prop naming conventions (#3826 @danreeves)
Changed
  • [readme] flat config example for react 17+ (#3824 @GabenGar)
View originalPermalink
How v7.37.0 went

v7.36.1

Fixed 2
  • Fix logic in method name check for no-is-mounted rule
  • Avoid crashing on valueless boolean props in jsx-no-literals rule

From eslint-plugin-react

Fixed
  • no-is-mounted: fix logic in method name check (#3821 @Mathias-S)
  • jsx-no-literals: Avoid crashing on valueless boolean props (#3823 @reosarevok)
View originalPermalink
How v7.36.1 went

v7.36.0

Added 3
  • Allow this.refs in React > 18.3.0 for no-string-refs rule
  • Add elementOverrides option to jsx-no-literals rule and ability to ignore this rule on specific elements
  • Add forward-ref-uses-ref rule for checking ref parameter is added
Changed 1
  • Add JSDoc type annotations to types
Fixed 3
  • Use type args in function-component-definition, boolean-prop-naming, jsx-first-prop-new-line, jsx-props-no-multi-spaces, and propTypes rules
  • JSX pragma fails gracefully
  • Add explicitSpread option to jsx-props-no-spreading rule schema

From eslint-plugin-react

Added
  • no-string-refs: allow this.refs in > 18.3.0 (#3807 @henryqdineen)
  • jsx-no-literals Add elementOverrides option 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: add explicitSpread option 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)
View originalPermalink
How v7.36.0 went

v7.35.2

Fixed 1
  • avoid autofixing attributes with double quotes to a double quoted attribute in jsx-curly-brace-presence rule

From eslint-plugin-react

Fixed
  • jsx-curly-brace-presence: avoid autofixing attributes with double quotes to a double quoted attribute (#3814 @ljharb)
View originalPermalink
How v7.35.2 went

v7.35.1

Fixed 1
  • jsx-curly-brace-presence rule no longer triggers on strings containing a quote character

From eslint-plugin-react

Fixed
  • jsx-curly-brace-presence: do not trigger on strings containing a quote character (#3798 @akulsr0)
View originalPermalink
How v7.35.1 went
View all

Discussion

If you publish eslint-plugin-react, you can claim this product by proving you administer its repository.