Add .editorconfig file to Bedrock

This commit is contained in:
Alex Gibson 2014-03-10 10:50:20 +00:00
Родитель b8780b5743
Коммит a83904f016
2 изменённых файлов: 43 добавлений и 2 удалений

33
.editorconfig Normal file
Просмотреть файл

@ -0,0 +1,33 @@
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
[*.py]
indent_size = 4
[*.js]
indent_size = 4
[*.json]
indent_size = 4
[*.css]
indent_size = 4
[*.less]
indent_size = 4
[*.html]
indent_size = 2
# Matches the exact files package.json and .travis.yml
[{package.json, .travis.yml}]
indent_size = 2

Просмотреть файл

@ -128,3 +128,11 @@ CSS Style
See the `Mozilla CSS Style Guide
<http://mozweb.readthedocs.org/en/latest/css-style.html>`_.
Configuring your code editor
----------------------------
Bedrock includes an `.editorconfig` file in the root directory that you can
use with your code editor to help maintain consistent coding styles. Please
see `editorconfig.org<http://editorconfig.org/>`_. for a list of supported
editors and available plugins.