Hacker News new | ask | show | jobs
by codethief 2024 days ago
> Just a few spaces per indent level

> To make this work, and yet allow a few indent levels, the code basically have to have small indent-levels, so I prefer to have it set to two spaces per level.

I agree with everything else in the article, except this. IMO two-space indentation is the cancer of the JavaScript world. I find it extremely hard to read.

1 comments

Agreed. We pushed for tab spacing on JavaScript projects and this allowed personal preference which is great. Four-space tabs looks the best to me.