Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Emit an error when a @string or @int attribute is used in V4. #672

Merged
merged 3 commits into from
Oct 12, 2022

Conversation

cristianoc
Copy link
Contributor

@cristianoc cristianoc requested a review from cknitt October 12, 2022 07:42
let transformStructureItem ~config mapper item =
check_string_int_attribute_iter.structure_item check_string_int_attribute_iter
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This currently fires anywhere.
I guess it can be scoped to fire only under @react.component.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah ok, hadn't seen that before I approved, sorry.
Yes, should be scoped under @react.component.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@cristianoc cristianoc requested review from mununki and cknitt October 12, 2022 07:48
@cristianoc cristianoc merged commit bf949d7 into master Oct 12, 2022
@cristianoc cristianoc deleted the string_int_attr_err branch October 12, 2022 09:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JSX v4 and @string / @int
2 participants