Skip to content

Allow JSXAttribute to be IdentifierName#17466

Merged
weswigham merged 3 commits into
microsoft:masterfrom
weswigham:jsx-prop-is-identifiername
Jul 31, 2017
Merged

Allow JSXAttribute to be IdentifierName#17466
weswigham merged 3 commits into
microsoft:masterfrom
weswigham:jsx-prop-is-identifiername

Conversation

@weswigham

Copy link
Copy Markdown
Member

Fixes #17452

This change makes it so that we do not report strict mode identifier-name errors on jsx attributes.

@DanielRosenwasser

Copy link
Copy Markdown
Member

@RyanCavanaugh might be a good candidate to take a look at this if he gets the chane.

@weswigham
weswigham requested review from RyanCavanaugh and removed request for sandersn July 27, 2017 22:23

@DanielRosenwasser DanielRosenwasser left a comment

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.

You have an isIdentifierName, so would it be more appropriate to insert the check in that function?

I'm not saying that's the correct check, but either it belongs in that function or the PR title needs to be adjusted. I suspect it's the latter, and you can dismiss this review. I'll admit I'm just being pedantic. 😄

@DanielRosenwasser

Copy link
Copy Markdown
Member

👍 other than my comment.

@weswigham

Copy link
Copy Markdown
Member Author

You are absolutely correct. I've added JsxAttribute into isIdentifierName.

@weswigham
weswigham merged commit c73fdc8 into microsoft:master Jul 31, 2017
@weswigham
weswigham deleted the jsx-prop-is-identifiername branch July 31, 2017 20:03
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
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.

3 participants