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
cristianoc merged 3 commits into
masterfrom
string_int_attr_err
Oct 12, 2022
Merged

cristianoc merged 3 commits into
masterfrom
string_int_attr_err

Conversation

@cristianoc

Copy link
Copy Markdown
Contributor

@cristianoc
cristianoc requested a review from cknitt October 12, 2022 07:42
Comment thread cli/reactjs_jsx_v4.ml Outdated
{Ast_iterator.default_iterator with attribute}

let transformStructureItem ~config mapper item =
check_string_int_attribute_iter.structure_item check_string_int_attribute_iter

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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 cknitt and mununki 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