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. …- so that's not really relevant to discuss) Performance isn't important, readability is. ref: https://github.com/airbnb/javascript/issues/1122#issuecommen...
    comment by mattacular · 2026-01-07 · in JavaScript's For-Of Loops Are Fast
  2. No way this is not a satire. https://github.com/airbnb/javascript/issues/1122#issuecommen... https://github.com/airbnb/javascript/issues/1122#issuecommen...
    comment by wiseowise · 2026-01-06 · in JavaScript's For-Of Loops Are Fast
  3. …enough, for-of is not allowed in Airbnb eslint config, and you are expected to use forEach instead: https://github.com/airbnb/javascript/issues/1122 https://github.com/airbnb/javascript/issues/1271 Because the style guide thinks "forEach…
    comment by g947o · 2026-01-06 · in JavaScript's For-Of Loops Are Fast
  4. Ah, eslint-config-airbnb. My favorite airbnb config issues: https://github.com/airbnb/javascript/issues/1271 https://github.com/airbnb/javascript/issues/1122 I literally spent over an hour when adapting an existing project to use the…
    comment by rs186 · 2025-09-08 · in Formatting code should be unnecessary
  5. …these files, I recommend reading this https://claudelog.com/mechanics/claude-md-supremacy . [1] https://github.com/airbnb/javascript [2] https://en.wikipedia.org/wiki/Backus%E2%80%93Naur_form
    comment by breadchris · 2025-06-29 · in Share Your CLAUDE.mds
  6. …meant frontend web development. [1] https://eslint.org/blog/2023/10/flat-config-rollout-plans/ [2] https://github.com/airbnb/javascript/issues/2961 [3] https://en.wikipedia.org/wiki/Red_Queen%27s_race
  7. ▲ 2
    ESLint v9 Support
    story by sscaryterry · 2025-02-05 · 1 comment
  8. ▲ 3
    Why does JavaScript need a style guide? (2013)
    story by platzhirsch · 2024-06-21 · 0 comments
  9. …is actually coming from the airbnb eslint plugin (which AFAIK is quite popular in the JS/TS world: https://github.com/airbnb/javascript/blob/c25bce83be4db06e6a... )
    comment by flohofwoe · 2024-04-21 · in Zig 0.12.0 Release Notes
  10. ▲ 2
    Airbnb JavaScript Style Guide
    story by ulrischa · 2024-04-04 · 0 comments
  11. ▲ 2
    JavaScript Style Guide
    story by Brajeshwar · 2024-04-03 · 1 comment
  12. >Find one large tech corp that still uses master. https://github.com/airbnb/javascript https://github.com/microsoft/vcpkg https://github.com/PowerShell/PowerShell https://github.com/golang/go https://github.com/Netflix/zuul
    comment by Always_Anon · 2023-11-15 · in Did Reddit just denylist all IPs?
  13. …since you won’t spend hours tweaking and selecting new rules. [1] https://standardjs.com/ [2] https://github.com/airbnb/javascript [3] https://github.com/sindresorhus/eslint-plugin-unicorn
    comment by ayuhito · 2023-10-18 · in ESLint: Flat Config Rollout Plan
  14. Link with anchor to recent discussion: https://github.com/airbnb/javascript/pull/255#issuecomment-1...
  15. ▲ 1
    Uppercase convention for constants debated on Airbnb JavaScript Style Guide
    story by sirobg · 2022-11-15 · 0 comments
  16. …all the projects I work on do the proper thing and use spaces ;) React (FB) says they use spaces: https://github.com/airbnb/javascript#whitespace (react links to the airbnb style guide) Google: is usually spaces,…
    comment by greggman3 · 2022-01-11 · in Let's Settle This
  17. ▲ 2
    GitHub – Airbnb/JavaScript: JavaScript Style Guide
    story by kiyanwang · 2021-11-13 · 0 comments
  18. …lint preset. A very nice example of an anno 2014-2017 cargo cult that clearly hasn't held up. https://github.com/airbnb/javascript/issues/1271
    comment by graup · 2020-12-08 · in A Modern JavaScript Tutorial
  19. …extensions has lots of other nasty side effects on IDEs, build tools, and browsers (e.g. [1]) [0] https://github.com/airbnb/javascript/pull/985#issuecomment-2... [1] https://bugs.chromium.org/p/chromium/issues/detail?id=659515
  20. …the use of const where a variable is not reassigned, which I've occasionally found handy. [1] https://github.com/airbnb/javascript#references--prefer-cons...
    comment by elyobo · 2019-09-25 · in V8 adds support for top-level await
  21. …akin to gofmt, and adopting standard eslint rules [4] can help too. [1] https://standardjs.com/ [2] https://github.com/airbnb/javascript [3] https://prettier.io/ [4] https://eslint.org/
  22. …examples. While a good read, it's difficult to quickly distinguish between the two. For example: https://github.com/airbnb/javascript
  23. …developer", but they are probably the best spots to see how the development process has changed. https://github.com/airbnb/javascript
  24. …Style Guide, which I found showed a lot of good examples of how to use newer Javascript features: https://github.com/airbnb/javascript
  25. …js is mostly about syntactic patterns. Airbnb has a nice style guide that incorporates most of them https://github.com/airbnb/javascript
  26. ▲ 1
    Don't Make Coding Choices Based on Performance
    story by okaynewuser · 2018-03-24 · 0 comments
  27. ▲ 50
    Great React style guide by Airbnb
    story by owens99 · 2018-01-12 · 19 comments
  28. …names clash. 2) With point 1 gone, point 2 is wiped out as well. 3) This is patently false. [0] https://github.com/airbnb/javascript#modules--prefer-default...
    comment by hungerstrike · 2017-11-23 · in Why we have banned default exports in JavaScript
  29. …prettier ( https://prettier.io ), and using airbnb's JavaScript Style Guide as a reference point ( https://github.com/airbnb/javascript ), I would enable rules one by one. Then slowly rule by rule (commit by commit) I would clean up the…
  30. ▲ 1
    Airbnb JavaScript Style Guide() {
    story by baus · 2017-10-12 · 0 comments
  31. …Airbnb's JS styleguide was also very helpful, which showcases best practices and lots of examples. https://github.com/airbnb/javascript
    comment by asar · 2017-10-01 · in Cheatsheet for the modern JavaScript
  32. …some of that info is usable for you, if you have any detail questions, please just comment :) [1]: https://github.com/airbnb/javascript [2]: http://eslint.org/docs/rules/no-new-object.html [3]: https://github.com/prettier/prettier [4]:…
  33. linkies https://github.com/airbnb/javascript https://news.ycombinator.com/item?id=9822975
    comment by skeletonjelly · 2017-07-11 · in ECMAScript 2017 Language Specification
  34. https://github.com/airbnb/javascript
  35. …else, it's just that most developper seem to agree on it and it's familiar to most dev. [0]: https://github.com/airbnb/javascript
  36. …forward to seeing where the community takes it. Congrats to all of the contributors on the 1.0! [1] https://github.com/airbnb/javascript/issues/102
    comment by _harry · 2017-04-13 · in Prettier 1.0
  37. …Rails project and have a reasonable suspicion of where to find a particular piece of code. 1: https://github.com/airbnb/javascript 2: https://twitter.com/hshoff/status/784205839347232768
    comment by sgslo · 2017-04-13 · in Prettier 1.0
  38. …nothing to set this apart from more, if you'll pardon the expression, "standard" options. :) [0]: https://github.com/airbnb/javascript
    comment by Lazare · 2017-04-05 · in StandardJS just turned 10.0.0
  39. ▲ 2
    Airbnb JavaScript style guide
    story by astdb · 2017-03-24 · 0 comments
  40. ▲ 2
    Why does JavaScript need a style guide?
    story by Fa773NM0nK · 2016-12-02 · 0 comments
  41. …://github.com/assemble/assemble.io/issues/163 https://github.com/braydie/HowToBeAProgrammer/issues/68 https://github.com/airbnb/javascript/pull/698 https://github.com/lighthouse-labs/clock-tower/pull/87…
    comment by waterphone · 2016-09-05 · in Inclusivity Is a Joke
  42. Spaces! https://github.com/airbnb/javascript#whitespace--spaces
    comment by olouv · 2016-05-30 · in Ask HN: Tabs or Spaces?
  43. …common [1] ESLint rule. 1. Admittedly my only data point is AirBnB's style guide / ESLint config: https://github.com/airbnb/javascript#references--prefer-cons...
    comment by tlrobinson · 2016-05-17 · in JavaScript async/await implemented in V8
  44. Airbnb has a decent styleguide - https://github.com/airbnb/javascript "A mostly reasonable approach to js" but style-guides should be just that style guides ...not standards
    comment by tbolt · 2016-04-28 · in Proposed JavaScript Standard Style
  45. ▲ 2
    Airbnb JavaScript style guide (for ES6)
    story by simonsarris · 2016-04-13 · 0 comments
  46. …specifies the usage of single quotes for strings (no explanation for the preference though). [1] https://github.com/airbnb/javascript
    comment by sushid · 2016-02-22 · in DuckDuckGo ES6 Cheatsheet
  47. …sure why, but that seems to be the case. It might be due to the ubiquitous AirBnB JS Style guide ( https://github.com/airbnb/javascript ) which enforces single quotes. It's the style guide we use on my team.
    comment by 49531 · 2016-02-22 · in DuckDuckGo ES6 Cheatsheet
  48. The Airbnb styleguide and matching ESLint preset is quite popular and very complete: https://github.com/airbnb/javascript/tree/master/packages/es...
    comment by Ambroos · 2016-02-14 · in Reflections on ESLint's success
  49. …need to present their opinions as the best way to do things. Some useful, widely-cited examples: - https://github.com/airbnb/javascript - http://12factor.net/
    comment by natrius · 2016-01-11 · in How to Name Clojure Functions
  50. ▲ 3
    React/JSX Style Guide
    story by alishan-l · 2015-12-11 · 0 comments