Update JavaScript guidelines to say two space indent

pull/7194/head
Karl Hobley 2021-05-17 13:32:06 +01:00 zatwierdzone przez Karl Hobley
rodzic 6ec5484bce
commit 13b8b1b7b8
1 zmienionych plików z 1 dodań i 1 usunięć
docs/contributing

Wyświetl plik

@ -3,7 +3,7 @@ JavaScript coding guidelines
Write JavaScript according to the `Airbnb Styleguide <https://github.com/airbnb/javascript>`_, with some exceptions:
- Use soft-tabs with a four space indent. Spaces are the only way to
- Use soft-tabs with a two space indent. Spaces are the only way to
guarantee code renders the same in any person's environment.
- We accept ``snake_case`` in object properties, such as
``ajaxResponse.page_title``, however camelCase or UPPER_CASE should be used