# Change Log All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org/). This change log adheres to standards from [Keep a CHANGELOG](https://keepachangelog.com). ## Unreleased ### Added * [`async-server-action`]: add rule ([#3729][] @jorgezreik) * [`jsx-props-no-multi-spaces`]: improve autofix for multi-line ([#3930][] @justisb) * [`jsx-handler-names`]: support namespaced component names ([#3943][] @takuji) * [`jsx-no-leaked-render`]: add `ignoreAttributes` option ([#3441][] @aleclarson) * [`jsx-sort-props`]: add `sortFirst` option ([#3965][] @loderunner) * [`jsx-no-literals`]: add `restrictedAttributes` option ([#3950][] @ushiboy) * [`forbid-dom-props`]: Add `disallowedValues` option for forbidden props ([#3877][] @makxca, [#4059][] @nk-batman21) ### Fixed * [`jsx-no-literals`]: avoid crash on variable declarations without an initializer ([#4044][] @Aryan007-dev) * [`no-unknown-property`]: allow `onLoad` on `body` ([#3923][] @DerekStapleton) * [`no-unknown-property`]: allow `closedby` on `dialog` ([#3980][] @ljharb) * [`no-unknown-property`]: add `onScrollEnd` and `onScrollEndCapture` events as known properties ([#3958][] @xfeeefeee) * Remove extra space from CLI warning ([#3942][] @junaidkbr) * [`jsx-key`]: detect missing keys in return statement with ternary operator ([#3928][] @hyeonbinHur) * [`jsx-key`]: detect missing keys in logical expressions ([#3986][] @yalperg) * [`display-name`]: avoid false positive when React is shadowed ([#3926][] @hyeonbinHur) * [`no-unused-prop-types`]: detect used props in nested components ([#3955][] @avaice) * [`no-unknown-property`]: add missing CSS transition event handlers ([#4001][] @baevm) * [`jsx-closing-bracket-location`]: preserve comments in autofix ([#4028][] @raisulchowdhury) * [`jsx-closing-bracket-location`]: keep TS type arguments when autofixing (@ljharb) * [`jsx-closing-bracket-location`]: say "on the next line" when a comment shares the closing bracket's line (@ljharb) * [`sort-prop-types`]: keep comments on the opening brace's line in place when autofixing (@ljharb) * [`sort-prop-types`]: preserve comments and separators in autofix ([#4029][] @raisulchowdhury) * [`jsx-no-leaked-render`]: autofix `cond ? false : alternate` to `!cond && alternate` with correct negation and parentheses (@ljharb) * [`jsx-no-leaked-render`]: preserve ternary alternates when autofixing to coerce ([#4017][] @morgan-coded) * [`require-default-props`]: handle function components wrapped in `memo`/`forwardRef` ([#4046][] @badukucuk) * [`no-unknown-property`]: allow `transform-origin` on all transformable SVG elements ([#4047][] @ozenyunus35) * [`destructuring-assignment`]: detect props usage in components wrapped in `forwardRef` or `memo` ([#4048][] @fredrikblau) * [`no-arrow-function-lifecycle`]: keep line comments from breaking the autofix (@ljharb) * [`no-arrow-function-lifecycle`]: remove the closing parens of a parenthesized arrow function in autofix (@ljharb) * [`no-arrow-function-lifecycle`]: keep `async`, type parameters, the parameter list, and the return type in autofix (@ljharb) * [`no-arrow-function-lifecycle`]: keep comments before the body in autofix (@ljharb) * [`no-arrow-function-lifecycle`]: avoid a stray paren in autofix of a parenthesized body ([#4061][] @nk-batman21) * [`jsx-sort-props`]: treat a comment after a multi-line prop as trailing that prop (@ljharb) * [`jsx-sort-props`]: skip the autofix when a moved line comment would comment out code ([#4011][] @sjh9714) * [`forbid-dom-props`]: match `disallowedValues` against string, number, and template literal values in braces (@ljharb) * [`forbid-dom-props`]: allow forbidding namespaced props, like `xlink:href` (@ljharb) * [`forbid-dom-props`]: treat a prop with no value as `true` for `disallowedValues` (@ljharb) * [`prefer-read-only-props`], [`prop-types`]: resolve props typed with a qualified name declared in a namespace ([#4052][] @HawkForge) * [`function-component-definition`]: do not autofix declarations used before they are defined ([#4054][] @devtechedge) * [`function-component-definition`]: suggest, rather than autofix, converting function declarations exported with a live binding, which can break import cycles (@ljharb) * [`function-component-definition`]: suggest, rather than autofix, converting function declarations used inside other functions that may run before them (@ljharb) * [`boolean-prop-naming`]: check type-annotated props of function components wrapped in `memo`/`forwardRef`, and of function expressions ([#4055][] @ybai08) * [`boolean-prop-naming`]: report a prop once, when components share its props type (@ljharb) * [`boolean-prop-naming`]: check props typed with a `memo`/`forwardRef` type argument, like `forwardRef` (@ljharb) * [`jsx-no-leaked-render`]: only treat `Boolean()` calls, comparisons, and boolean unary operators as coerced, not other calls or arithmetic that can render `0` (@ljharb) * [`jsx-sort-props`]: do not autofix props next to an ambiguous comment, on its own line or a block comment ([#4035][] @adarshx01) * [`no-danger-with-children`]: report children when the JSX spans lines (@ljharb) * [`no-children-prop`]: report a function child when the JSX spans lines ([#4033][] @ckarnell) * [`prop-types`]: do not treat an inline callback's own `props` parameter as component props ([#4034][] @ckarnell) * [`no-unknown-property`]: allow `onAnimationIterationCapture` (@ljharb) * version settings: use curly quotes, and name the plugin's settings consistently, in warnings (@ljharb) * version settings: clarify the error for an invalid `defaultVersion`, and suggest setting `version` to “detect” ([#4041][] @Manya72) * [`prop-types`]: do not treat a nested component's destructured props as the enclosing component's props ([#4057][] @imove0n) * [`static-property-placement`]: do not report a type-annotated `props` instance field as `propTypes` (@ljharb) * [`static-property-placement`]: do not report a type-annotated `context` instance field as `contextTypes` ([#4060][] @b84330808) * [`jsx-fragments`]: only treat a destructured `Fragment` as a fragment, not other components destructured from React ([#4062][] @nk-batman21) ### Changed * [`react-in-jsx-scope`], [`jsx-uses-react`]: automatically disable when React >= 19 is detected ([#XXXX][] @jonkoops) * [Docs] [`no-array-index-key`]: add template literal examples ([#3978][] @akahoshi1421) * [`jsx-filename-extension`]: include allowed extensions in message ([#4043][] @aduth) * [Docs] [`hook-use-state`]: clarify destructuring requirement ([#4030][] @raisulchowdhury) * [Refactor] `Components`: add `getWrappedComponentNode` util (@ljharb) * [Perf] `jsx-sort-props`: build the autofix once per element (@ljharb) * [Docs] [`self-closing-comp`]: list empty DOM elements as incorrect ([#4049][] @ColumbusLabs) * [Refactor] add `getDeclaredVariables` util, and use it in [`no-unused-state`] (@ljharb) * [Docs] [`jsx-no-leaked-render`]: document `Boolean()` as a valid coercion ([#4064][] @dgesteves) * [Refactor] [`jsx-sort-props`]: remove the comment handling that ambiguous comments no longer reach (@ljharb) * [Refactor] add `isLineBreak` jsx util, and use it in [`no-danger-with-children`] (@ljharb) * [Refactor] `function-component-definition`/`jsx-no-constructed-context-values`: add `resolveVariable` util, and use it (@ljharb) * [Perf] `usedPropTypes`: copy a scope's prop variables only on its first write (@ljharb) [#4064]: https://github.com/jsx-eslint/eslint-plugin-react/pull/4064 [#4062]: https://github.com/jsx-eslint/eslint-plugin-react/pull/4062 [#4061]: https://github.com/jsx-eslint/eslint-plugin-react/pull/4061 [#4060]: https://github.com/jsx-eslint/eslint-plugin-react/pull/4060 [#4059]: https://github.com/jsx-eslint/eslint-plugin-react/pull/4059 [#4057]: https://github.com/jsx-eslint/eslint-plugin-react/pull/4057 [#4055]: https://github.com/jsx-eslint/eslint-plugin-react/pull/4055 [#4052]: https://github.com/jsx-eslint/eslint-plugin-react/pull/4052 [#4049]: https://github.com/jsx-eslint/eslint-plugin-react/pull/4049 [#4048]: https://github.com/jsx-eslint/eslint-plugin-react/pull/4048 [#4054]: https://github.com/jsx-eslint/eslint-plugin-react/pull/4054 [#4047]: https://github.com/jsx-eslint/eslint-plugin-react/pull/4047 [#4046]: https://github.com/jsx-eslint/eslint-plugin-react/pull/4046 [#4044]: https://github.com/jsx-eslint/eslint-plugin-react/pull/4044 [#4043]: https://github.com/jsx-eslint/eslint-plugin-react/pull/4043 [#4041]: https://github.com/jsx-eslint/eslint-plugin-react/pull/4041 [#4035]: https://github.com/jsx-eslint/eslint-plugin-react/pull/4035 [#4034]: https://github.com/jsx-eslint/eslint-plugin-react/pull/4034 [#4033]: https://github.com/jsx-eslint/eslint-plugin-react/pull/4033 [#4029]: https://github.com/jsx-eslint/eslint-plugin-react/pull/4029 [#4028]: https://github.com/jsx-eslint/eslint-plugin-react/pull/4028 [#4017]: https://github.com/jsx-eslint/eslint-plugin-react/pull/4017 [#4011]: https://github.com/jsx-eslint/eslint-plugin-react/pull/4011 [#4001]: https://github.com/jsx-eslint/eslint-plugin-react/pull/4001 [#3986]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3986 [#3978]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3978 [#3958]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3958 [#3980]: https://github.com/jsx-eslint/eslint-plugin-react/issues/3980 [#3965]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3965 [#3955]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3955 [#3950]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3950 [#3943]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3943 [#3942]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3942 [#3930]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3930 [#3928]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3928 [#3926]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3926 [#3923]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3923 [#3877]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3877 [#3729]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3729 [#3441]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3441 ## [7.37.5] - 2025.04.03 ### Fixed * [`no-unknown-property`]: allow shadow root attrs on `