Hacker GitHub

← All repos

airbnb/javascript

View on GitHub ↗ ★ 148,028 JavaScript

JavaScript Style Guide

82 mentions on Hacker News by 79 people: 27 stories, 55 comments · first 2012-11-05 · latest 2026-01-07

Mentions per year 82 mentions · busiest year 2015 (21)
20082026
  1. …if you could use airbnb's Javascript and React style guides, that is a pretty good standard IMHO https://github.com/airbnb/javascript/tree/master/react
    comment by GiovanniFrigo · 2015-11-16 · in Show HN: A React.js yearly calendar component
  2. Yes: https://github.com/airbnb/javascript
    comment by themichaellai · 2015-10-21 · in Khan Academy's React style guide
  3. …you do need to find a good config, but the airbnb JS style guide comes with a very, very good one: https://github.com/airbnb/javascript
  4. …using ESLint. Airbnb has a premade config that does a pretty good job of providing best practices. https://github.com/airbnb/javascript/tree/master/linters Beware, it's going to flag a whole bunch of stuff in you project, but you'll get…
    comment by madeofpalk · 2015-09-12 · in Redux Blog Example
  5. ▲ 1
    AirBnB React/JSX Style Guide
    story by nsomaru · 2015-09-10 · 0 comments
  6. …their Javascript style guide to ES6. It's a good read on how to write and structure javascript. https://github.com/airbnb/javascript
  7. Isn't this exact rule already in the guide? https://github.com/airbnb/javascript#13.2
    comment by savanaly · 2015-07-03 · in Airbnb JavaScript Style Guide
  8. It looks like they reserve double quotes for JSX attributes: https://github.com/airbnb/javascript/tree/master/react#quote...
    comment by dangle · 2015-07-03 · in Airbnb JavaScript Style Guide
  9. Regarding using single quotes for strings ( https://github.com/airbnb/javascript#6.1 ), I found it interesting that it's one of the rare sections where there's no rationale offered. I guess it's just a stylistic choice in the end, but when…
    comment by elisee · 2015-07-03 · in Airbnb JavaScript Style Guide
  10. ES5 guide - https://github.com/airbnb/javascript/blob/master/es5
    comment by manojlds · 2015-07-03 · in Airbnb JavaScript Style Guide
  11. The best part of this guide is that they included a eslint and jslint rules file. https://github.com/airbnb/javascript/tree/master/linters My team adopted this style guide and was easily able to add it as a eslint step to our existing gulp…
    comment by brwnll · 2015-07-03 · in Airbnb JavaScript Style Guide
  12. Did you even read it? They don't use the meme 'symbols' but clearly mention 'dynamic property names'. https://github.com/airbnb/javascript#3.4
    comment by anustart666 · 2015-07-03 · in Airbnb JavaScript Style Guide
  13. …safe [1][2] is news to me - it feels like they put in air bags and removed the seat belts. [1]: https://github.com/airbnb/javascript#14.1 [2]: http://es-discourse.com/t/why-typeof-is-no-longer-safe/15
    comment by svieira · 2015-07-03 · in Airbnb JavaScript Style Guide
  14. There is also a link on the page to browser compat style guide of es5 https://github.com/airbnb/javascript/tree/master/es5
    comment by ewalk153 · 2015-07-03 · in Airbnb JavaScript Style Guide
  15. ▲ 303
    Airbnb JavaScript Style Guide
    story by webnanners · 2015-07-03 · 150 comments
  16. ▲ 2
    Airbnb ES6 Styleguide
    story by codecurve · 2015-06-05 · 0 comments
  17. I assume this is a story about their strict JS style guide? https://github.com/airbnb/javascript
  18. ▲ 1
    Airbnb JavaScript Style Guide() with ES6/ES2015
    story by jitl · 2015-04-29 · 0 comments
  19. ▲ 4
    JavaScript Style Guide by Airbnb
    story by volent · 2015-04-04 · 0 comments
  20. ▲ 5
    Airbnb JavaScript Style Guide – A Mostly Reasonable Approach to JavaScript
    story by alexcasalboni · 2015-03-27 · 0 comments
  21. ▲ 3
    Airbnb JavaScript Style Guide
    story by NicoJuicy · 2014-10-15 · 0 comments
  22. Is this similar to https://github.com/airbnb/javascript ?
    comment by progx · 2014-08-19 · in A JavaScript Quality Guide
  23. ▲ 1
    Handy JavaScript Guide
    story by shamsulbuddy · 2014-05-29 · 0 comments
  24. …to run. If you rely on the return value use (function(){})(); or (function(){}()); (more on this: https://github.com/airbnb/javascript/issues/21 )
  25. There's a good discussion over here: https://github.com/airbnb/javascript/issues/44
  26. ▲ 1
    Why does JavaScript need a style guide?
    story by dgellow · 2014-03-23 · 0 comments
  27. …JS resources: http://eloquentjavascript.net/ http://shichuan.github.io/javascript-patterns/ https://github.com/airbnb/javascript
    comment by meritt · 2014-01-17 · in JavaScript: The Right Way
  28. ▲ 4
    AirBNB JavaScript Style Guide
    story by aram · 2013-11-17 · 0 comments
  29. ▲ 3
    Why does JavaScript need a style guide?
    story by jaseemabid · 2013-11-11 · 0 comments
  30. ▲ 50
    Ruining the diversity of JavaScript community with a coding style guide
    story by zdne · 2013-11-11 · 26 comments
  31. ▲ 7
    Airbnb's JavaScript style guide
    story by pawelwentpawel · 2013-01-12 · 0 comments
  32. ▲ 27
    Airbnb JavaScript Style Guide
    story by ClifReeder · 2012-11-05 · 3 comments