Google Javascript style guid and airbnb
in Node.js / Javascript on style - Hits()
Google Javascript style guid and more
Airbnb Javascript style guid
this article have a summary about google style guid.
I am glad that almost all the issue match my style. and I did a rough comparation to auirbnb at here.
Semicolons ARE required
- Airbnb - Same
Don’t use ES6 modules (yet)
- Airbnb - Not mentioned
Don’t use var anymore
- Airbnb - Same
Arrow functions are preferred
- Airbnb - Same
Use template strings instead of concatenation
- Airbnb - Same
Don’t use line continuations for long strings (use concatenation)
“for… of” is the preferred type of ‘for loop’
Use single quotes, not double quotes
- Airbnb - Same
One variable per declaration
- Airbnb - Not mentioned
About Generators
Google did not mentioned but Airbnb suggest Don’t use generators for now