Releases: jsx-eslint/eslint-plugin-react
Releases · jsx-eslint/eslint-plugin-react
v7.32.1
v7.32.0
Added
- support new config system (#3429 @jjangga0214)
hook-use-state: addallowDestructuredStateoption (#3449 @ljharb)- add
sort-default-propsand deprecatejsx-sort-default-props(#1861 @alexzherdev) - add
no-object-type-as-default-proprule (#2848 @cyan33 @fengkx)
Fixed
- configs: avoid legacy config system error (#3461 @ljharb)
sort-prop-types: restore autofixing (#3452, #3471 @ROSSROSALES)no-unknown-property: do not checkfbselements (#3494 @brianogilvie)jsx-newline: No newline between comments and jsx elements (#3493 @justmejulian)jsx-no-leaked-render: Don't report errors on empty strings if React >= v18 (#3488 @himanshu007-creator)no-invalid-html-attribute: convert autofix to suggestion (#3474 @himanshu007-creator @ljharb)jsx-no-leaked-render: fix removing parentheses for conditionals (#3502 @akulsr0)jsx-no-leaked-render: invalid fixes in coerce mode (#3511 @akulsr0)destructuring-assignment: Handle destructuring of useContext in SFC (#2797 @Zinyon @ljharb)
Changed
- [Docs]
jsx-no-leaked-render: Remove mentions of empty strings for React 18 (#3468 @karlhorky) - [Docs] update
eslint-doc-generatorto v1.0.0 (#3499 @bmish) - [meta] add issue template (#3483 @ROSSROSALES)
- [Docs] Use emoji for jsx-runtime config and config file for eslint-doc-generator (#3504 @bmish)
- [Docs]
prefer-exact-props: fix example flow syntax (#3510 @smackfu) - [Perf] use
anyOfinstead ofoneOf(@ljharb @remcohaszing)
v7.31.11
Fixed
jsx-no-target-blank: allow ternaries with literals (#3464 @akulsr0)no-unknown-property: addinertattribute (#3484 @ljharb)jsx-key: detect keys in logical expression and conditional expression (#3490 @metreniuk)
Changed
- [Perf] component detection: improve performance by avoiding traversing parents unnecessarily (#3459 @golopot)
- [Docs]
forbid-component-props: inclusive language w/ allowlist (#3473 @AndersDJohnson) - [Docs] automate doc generation with
eslint-doc-generator(#3469 @bmish)
v7.31.10
Fixed
no-unknown-property: allowallowFullScreenoniframe(#3455 @almeidx)
v7.31.9
Fixed
no-unknown-property: adddialogattributes (#3436 @ljharb)no-arrow-function-lifecycle: when converting from an arrow, remove the semi and wrapping parens (#3337 @ljharb)jsx-key: Ignore elements insideReact.Children.toArray()(#1591 @silvenon)jsx-no-constructed-context-values: fix false positive for usage in non-components (#3448 @golopot)static-property-placement: warn on nonstatic expected-statics (#2581 @ljharb)no-unknown-property: properly tag-restrict case-insensitive attributes (@ljharb)no-unknown-property: allowwebkitDirectoryoninput, case-insensitive (#3454 @ljharb)
Changed
- [Docs]
no-unknown-property: fix typo in link (#3445 @denkristoffer) - [Perf] component detection: improve performance by optimizing getId (#3451 @golopot)
- [Docs]
no-unstable-nested-components: Warn about memoized, nested components (#3444 @eps1lon)
v7.31.8
Fixed
no-unknown-property: addviewBoxonmarker(#3416 @ljharb)no-unknown-property: addnoModuleonscript(#3414 @ljharb)no-unknown-property: allowonLoadon<object>(#3415 @OleksiiKachan)no-multi-comp: do not detect a function property returning only null as a component (#3412 @ljharb)no-unknown-property: allowabbron<th>and<td>(#3419 @OleksiiKachan)no-unknown-property: addviewBoxforpattern,symbol,view(#3424 @MNBuyskih)no-unknown-property: addalignon all the tags that support it (#3425 @ljharb)
Changed
v7.31.7
Fixed
no-unknown-property: avoid warning onfbtnodes entirely (#3391 @ljharb)no-unknown-property: adddownloadproperty support foraandarea(#3394 @HJain13)no-unknown-property: allowwebkitAllowFullScreenandmozAllowFullScreen(#3396 @ljharb)no-unknown-property:controlsList, notcontrolList(#3397 @ljharb)no-unknown-property: add more capture event properties (#3402 @sjarva)no-unknown-property: Add more one word properties found in DefinitelyTyped's react/index.d.ts (#3402 @sjarva)no-unknown-property: Mark onLoad/onError as supported on iframes (#3398 @maiis, #3406 @akx)no-unknown-property: allowimageSrcSetandimageSizesattributes on<link>(#3407 @terrymun)no-unknown-property: addborder;focusableon<svg>(#3404 #3404 @ljharb)no-unknown-property: React lowercasesdata-attrs (#3395 @ljharb)no-unknown-property: addvalignon table components (#3389 @ljharb)
v7.31.6
Fixed
no-unknown-property:onErrorandonLoadboth work onimgandscript(#3388 @ljharb)no-unknown-property: data-* attributes can have numbers (#3390 @sjarva)no-unknown-property: add more audio/video attributes (#3390 @sjarva)no-unknown-property: move allowfullscreen to case ignored attributes (#3390 @sjarva)no-unknown-property: fill works on line, mask, and use elements (#3390 @sjarva)no-unknown-property: add onMouseMoveCapture as valid react-specific attribute (#3390 @sjarva)no-unknown-property: make onLoad and onError be accepted on more elements (#3390 @sjarva)
Changed
- [Docs]
no-unknown-property: add a mention about using ignores properties with libraries that add props (#3390 @sjarva)
v7.31.5
Fixed
no-unknown-property: add propertiesonToggle,fill,as, and pointer events (#3385 @sjarva)no-unknown-property: adddefaultCheckedproperty (#3385 @sjarva)no-unknown-property: add touch and media event related properties (#3385 @sjarva)no-unknown-property:childrenis always an acceptable prop; iframes havescrolling; video hasplaysInline(#3385 @ljharb)
v7.31.4
Fixed
no-unknown-property: supportcheckedon inputs (#3383 @ljharb)