4 ms·
> 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 t
by codethief 6y 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.
- andreicek 6y agoAgreed. We pushed for tab spacing on JavaScript projects and this allowed personal preference which is great. Four-space tabs looks the best to me.