-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump eslint-plugin-react to ^7.33.2 #38117
Conversation
Netlify deploy previewhttps://deploy-preview-38117--material-ui.netlify.app/ Bundle size report |
43f6b21
to
b7b8656
Compare
b7b8656
to
2cd6fc9
Compare
2cd6fc9
to
f00c315
Compare
f00c315
to
b44e74b
Compare
82a63c6
to
074783a
Compare
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. ⚠ Warning: custom changes will be lost. |
test/utils/createMount.tsx
Outdated
@@ -85,6 +85,7 @@ export default function createMount(options: CreateMountOptions = {}) { | |||
|
|||
afterEach(() => { | |||
ReactDOMTestUtils.act(() => { | |||
// eslint-disable-next-line react/no-deprecated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't make it work. This could be caused by the lack of Enzyme support for React 18.
074783a
to
d9928d4
Compare
d9928d4
to
d154127
Compare
return () => { | ||
ReactDOM.unmountComponentAtNode(viewerRoot); | ||
clearTimeout(renderTimeout); | ||
setTimeout(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
React tree can't be synchronously unmounted during render, so I introduced setTimeout to run this code after React lifecycle completes. Taken from https://stackoverflow.com/questions/73459382/react-18-async-way-to-unmount-root#answer-74445760
@@ -26,6 +26,8 @@ describe('elementAcceptingRef', () => { | |||
function testAct() { | |||
checkPropType(element); | |||
if (shouldMount) { | |||
// TODO: replace with React 18 implementation after https://github.com/testing-library/react-testing-library/issues/1216 is closed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Purely out of curiosity, did you try it with testing-library/react-testing-library#1216 (comment)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it works with that version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Co-authored-by: Michał Dudak <[email protected]>
This PR contains the following updates:
^7.32.2
->^7.33.2
Release Notes
jsx-eslint/eslint-plugin-react (eslint-plugin-react)
v7.33.2
Compare Source
Fixed
no-deprecated
]: prevent false positive on commonjs import (#3614 @akulsr0)no-unsafe
]: report on the method instead of the entire component (@ljharb)no-deprecated
]: report on the destructured property instead of the entire variable declarator (@ljharb)no-deprecated
]: report on the imported specifier instead of the entire import statement (@ljharb)no-invalid-html-attribute
]: report more granularly (@ljharb)v7.33.1
Compare Source
Fixed
require-default-props
]: fix config schema (#3605 @controversial)jsx-curly-brace-presence
]: Revert [#3538][] due to issues with intended string type casting usage (#3611 @taozhou-glean)sort-prop-types
]: ensure sort-prop-types respects noSortAlphabetically (#3610 @caesar1030)v7.33.0
Compare Source
Added
display-name
]: addcheckContextObjects
option (#3529 @JulesBlm)jsx-first-prop-new-line
]: addmultiprop
option (#3533 @haydncomley)no-deprecated
]: add React 18 deprecations (#3548 @sergei-startsev)forbid-component-props
]: adddisallowedFor
option (#3417 @jacketwpbb)Fixed
no-array-index-key
]: consider flatMap (#3530 @k-yle)jsx-curly-brace-presence
]: handle single and only expression template literals (#3538 @taozhou-glean)no-unknown-property
]: allowonLoad
onsource
(@ljharb)jsx-first-prop-new-line
]: ensure autofix preserves generics in component name (#3546 @ljharb)no-unknown-property
]: allowfill
prop on<symbol>
(#3555 @stefanprobst)display-name
], [prop-types
]: when checking for a capitalized name, ignore underscores entirely (#3560 @ljharb)no-unused-state
]: avoid crashing on a class field function with destructured state (#3568 @ljharb)no-unused-prop-types
]: allow using spread with object expression in jsx (#3570 @akulsr0)destructuring-assignment
]: Handle destructuring of useContext in SFC" (#3583 [#2797][] @102)prefer-read-only-props
]: add TS support (#3593 @HenryBrown0)Changed
jsx-newline
], [no-unsafe
], [static-property-placement
]: Fix code syntax highlighting (#3563 @nbsp1221)jsx-no-bind
]: reword performance rationale (#3581 @gpoole)jsx-first-prop-new-line
]: add missingmultiprop
value (#3598 @dzek69)Configuration
📅 Schedule: Branch creation - "on sunday before 6:00am" in timezone UTC, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.