These are chat archives for airbnb/javascript

27th
Nov 2016
Abhisek Pattnaik
@abhisekp
Nov 27 2016 04:17
@z-vr :raising_hand: this is not a JavaScript help room
This is for helping with https://github.com/airbnb/javascript
It's a JS style guide :dancer:
Jordan Harband
@ljharb
Nov 27 2016 04:50
@z-vr use map, not forEach.
Ghost
@ghost~559d399815522ed4b3e3a63a
Nov 27 2016 17:04
I think starting and ending functions body with blank lines (padding function body) helps readability. Do you agree?
HAPI style requires fun body padding, e.g.
Jordan Harband
@ljharb
Nov 27 2016 18:45
nope
i don't agree
which is why the airbnb config has an eslint rule that prohibits that
what is "HAPI style"?
Ghost
@ghost~559d399815522ed4b3e3a63a
Nov 27 2016 18:46
@ljharb hapijs
Jordan Harband
@ljharb
Nov 27 2016 18:46
hapi has a ton of really weird styles
i wouldn't recommend it.
Ghost
@ghost~559d399815522ed4b3e3a63a
Nov 27 2016 18:47
I doubt. I like reading code where function body starts and ends with a blank line