-
Notifications
You must be signed in to change notification settings - Fork 1
/
.editorconfig
49 lines (41 loc) · 1.27 KB
/
.editorconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# EditorConfig helps developers define and maintain consistent coding styles
# between different editors and IDEs.
#
# More information: http://editorconfig.org/
#
# Install the plugin for your IDE: http://editorconfig.org/#download
# Don't look for another .editorconfig file in parent directories
root = true
# Defaults to tab-indented (use smart-tabs)
[*]
charset = utf-8
indent_style = tab
end_of_line = LF
insert_final_newline = true
trim_trailing_whitespace = true
# 2 space indentation for package.json and bower.json
[{package,bower}.json]
indent_style = space
indent_size = 2
# 4 space indentation for composer.json
[composer.json]
indent_style = space
indent_size = 4
# 2 space indentation for all yml files.
[*.yml]
indent_style = space
indent_size = 2
# Don't trim trailing whitespace on MarkDown.
# (Remember, trailing spaces in markdown is used to differentiate line breaks and paragraphs)
[*.md]
indent_style = space
indent_size = 4
trim_trailing_whitespace = false
# 4-space indentation for all PHP files
# PSR-2: Coding Style Guide (http://www.php-fig.org/psr/psr-2/)
[*.php]
indent_style = space
indent_size = 4
# 2-space indentation for all Drupal-files
# https://www.drupal.org/docs/develop/standards/coding-standards#indenting
# Drupal should have its own .editorconfig file