-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[Fix] no-unknown-property
support new precedence
prop
#3829
base: master
Are you sure you want to change the base?
Conversation
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.
This looks great, except that we should only be supporting this property when the react version is 19+.
@ljharb is there a way to accommodate that in the plugin, or does that just mean not adding it until there is a version of the plugin released only for react v19+? |
@acusti there is! see the |
f57bd9f
to
500112b
Compare
@@ -89,6 +89,7 @@ ruleTester.run('no-unknown-property', rule, { | |||
{ code: '<div onPointerDown={this.onDown} onPointerUp={this.onUp} />' }, | |||
{ code: '<input type="checkbox" defaultChecked={this.state.checkbox} />' }, | |||
{ code: '<div onTouchStart={this.startAnimation} onTouchEnd={this.stopAnimation} onTouchCancel={this.cancel} onTouchMove={this.move} onMouseMoveCapture={this.capture} onTouchCancelCapture={this.log} />' }, | |||
{ code: '<link precedence="medium" href="https://foo.bar" rel="canonical" />' }, |
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.
shouldn't this test case only pass when the react version is set to 19+?
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.
definitely. i used react: { version: '19.0.0-rc.0' }
, but if it makes more sense to do 19.0.0
even though that doesn’t match any released versions, happy to do that.
c249d03
to
df4f665
Compare
df4f665
to
ac007b6
Compare
Fixes #3827