Javascript: why using the 4 space === tab ?

Created on 19 Feb 2017  路  3Comments  路  Source: airbnb/javascript

why using the 4 space === tab ?

question

All 3 comments

We use 2-space tabs, as you can see here.

This was chosen primarily because it's the most common indentation in Ruby, which the majority of Airbnb's developers at the time used primarily.

Anyway, I don't like this!
it make codes to tight for bad view!

You are more than welcome to use eslint configuration overrides, or to fork this styleguide, to make any changes you like.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ar
mbifulco picture mbifulco  路  3Comments

golopot picture golopot  路  3Comments

vsemozhetbyt picture vsemozhetbyt  路  3Comments

kozhevnikov picture kozhevnikov  路  3Comments

tpiros picture tpiros  路  3Comments