-
Notifications
You must be signed in to change notification settings - Fork 3
Class method declaration errors #5
Comments
@tphecca, I'm glad you found our offside parser. We've been really enjoying it, but I haven't made the time to spread the word about it. It looks like the generated code from The reason I added this default setting is the following (bad) pattern: if (condition)
doFirstThing()
doSecondThing() Which, of course, should actually be: if (condition) ::
doFirstThing()
doSecondThing() So I added the linting to make sure control flows were properly followed by -Shane |
Your question inspired me to removing the linting solution in favor of ensuring that elements of the body have matching indentation levels. The current version of I've also put together a composite preset that uses |
Thanks! Glad I can continue to use this plugin, it's awesome. |
What does the preset-jsy adds over this plugin ? |
presets
plugins |
Thanks for clarification. I think I don't need any of those, so I'll stick to the plugin Regards |
I used this code:
When I try to build using gulp:
My babel presets and plugins:
Creating only the constructor (no other methods) does work with no errors:
The text was updated successfully, but these errors were encountered: