Rules
The Frontend Guidelines covers JavaScript and HTML/CSS (CSS/SCSS) languages.
Each of the section will go in depth with the rules that we follow.
Yes we use tabs, why tabs?
The debate over whether to use a tab or a space for indention has been long-running for many years in the programming community and there isn’t a right or a wrong way.
Our logic behind tab vs space comes down to a couple of things. Tab is a character specifically designed for indentation.
Secondly, tabs are way more accessible which gives the developer an option to choose the tab size (2, 4 or 8), which is not available with spaces. This is also reflected on GitHub - there are also plugins for Chrome and other browsers.
On GitHub, while viewing a file, you can modify the tab size by using the ?ts=<size> URL parameter.
