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
20082026
-
…- 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 -
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 -
…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 -
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 -
…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 -
…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
comment by egorfine · 2025-05-07 · in Migrating a JavaScript Project from Prettier and ESLint to BiomeJS -
▲ 2
ESLint v9 Supportstory by sscaryterry · 2025-02-05 · 1 comment
-
▲ 3
Why does JavaScript need a style guide? (2013)story by platzhirsch · 2024-06-21 · 0 comments
-
…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 -
▲ 2
Airbnb JavaScript Style Guidestory by ulrischa · 2024-04-04 · 0 comments
-
▲ 2
JavaScript Style Guidestory by Brajeshwar · 2024-04-03 · 1 comment
-
>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? -
…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 -
Link with anchor to recent discussion: https://github.com/airbnb/javascript/pull/255#issuecomment-1...
comment by sirobg · 2022-11-15 · in Uppercase convention for constants debated on Airbnb JavaScript Style Guide -
▲ 1
Uppercase convention for constants debated on Airbnb JavaScript Style Guidestory by sirobg · 2022-11-15 · 0 comments
-
…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 -
▲ 2
GitHub – Airbnb/JavaScript: JavaScript Style Guidestory by kiyanwang · 2021-11-13 · 0 comments
-
…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 -
…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
comment by 0xfffafaCrash · 2020-05-26 · in Today’s Javascript, from an outsider’s perspective -
…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 -
…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/
comment by mceachen · 2019-08-08 · in Advice to my younger self: become allergic to the churn -
…examples. While a good read, it's difficult to quickly distinguish between the two. For example: https://github.com/airbnb/javascript
comment by OutsmartDan · 2019-02-21 · in Practical Go: Real-world advice for writing maintainable Go programs -
…developer", but they are probably the best spots to see how the development process has changed. https://github.com/airbnb/javascript
comment by ohitsdom · 2019-01-03 · in Show HN: Learn and practice modern JavaScript -
…Style Guide, which I found showed a lot of good examples of how to use newer Javascript features: https://github.com/airbnb/javascript
comment by jlubawy · 2018-04-30 · in Show HN: A free, lightweight static page to get stock quotes using the IEX API -
…js is mostly about syntactic patterns. Airbnb has a nice style guide that incorporates most of them https://github.com/airbnb/javascript
comment by auganov · 2018-04-10 · in Ask HN: Resources for catching up on modern JavaScript for Python/C++ Programmer -
▲ 1
Don't Make Coding Choices Based on Performancestory by okaynewuser · 2018-03-24 · 0 comments
-
▲ 50
Great React style guide by Airbnbstory by owens99 · 2018-01-12 · 19 comments
-
…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 -
…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…
comment by aizatto · 2017-11-07 · in Show HN: How to ensure JavaScript code quality -
▲ 1
Airbnb JavaScript Style Guide() {story by baus · 2017-10-12 · 0 comments
-
…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 -
…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]:…
comment by leipert · 2017-07-20 · in What's the best book to read about JavaScript? -
linkies https://github.com/airbnb/javascript https://news.ycombinator.com/item?id=9822975
comment by skeletonjelly · 2017-07-11 · in ECMAScript 2017 Language Specification -
https://github.com/airbnb/javascript
comment by wh4this · 2017-06-01 · in Ask HN: Best current book to learn JavaScript? -
…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
comment by hamstercat · 2017-05-10 · in Writing custom ESLint rules for your picky developers -
…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 -
…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 -
…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 -
▲ 2
Airbnb JavaScript style guidestory by astdb · 2017-03-24 · 0 comments
-
▲ 2
Why does JavaScript need a style guide?story by Fa773NM0nK · 2016-12-02 · 0 comments
-
…://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 -
Spaces! https://github.com/airbnb/javascript#whitespace--spaces
comment by olouv · 2016-05-30 · in Ask HN: Tabs or Spaces? -
…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 -
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 -
▲ 2
Airbnb JavaScript style guide (for ES6)story by simonsarris · 2016-04-13 · 0 comments
-
…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 -
…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 -
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 -
…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 -
▲ 3
React/JSX Style Guidestory by alishan-l · 2015-12-11 · 0 comments