зеркало из https://github.com/mozilla/bedrock.git
Add .editorconfig file to Bedrock
This commit is contained in:
Родитель
b8780b5743
Коммит
a83904f016
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче