-
Notifications
You must be signed in to change notification settings - Fork 511
requireSemicolons
: check for ClassProperty
#2057
Conversation
Wow, didn't even know you could do that. |
It's going to be hilarious when the babel people figure out this is a bug and the semicolon-free people need a semicolon remover. |
Oh right, we need the same action for |
When prop without semicolon will became a valid syntax that is |
Well when that happens it sounds like a |
@markelog It is already valid to omit semicolons after class properties in most cases. |
|
Don't see any clarification on the ASI in original link i provided, but judging by the interesting original discussion and rules of ASI you should be right. Which means babel pr was indeed falsy (not this pr though) and that we can add same opposite logic to Thanks for playing! |
You're welcome. Don't forget about this case which I hadn't thought of at first. |
here’s the ASI clarification |
Ref babel/babel#3225