Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 14 additions & 24 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,44 +10,34 @@ root = true
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing-whitespace = true
indent_style = space
indent_size = 4
quote_type = single

# 2-space files
[{*.{yaml,yml,sh,jscsrc},package.json,.*rc}]
trim_trailing_whitespace = true
indent_style = space
indent_size = 2
quote_type = single

# PHP should follow the PSR-2 standard
[*.{json,php}]
indent_style = space
indent_size = 4

# Fusion uses 4 spaces
[*.fusion]
indent_style = space
[*.php]
indent_size = 4

# JS should use tabs, to reduce conflicts
[*.js]
# JS, SASS, HTML should use tabs, to reduce conflicts
[*.{js,scss,html}]
indent_style = tab

# Markdown et al. use trailing whitespace for line breaks
[*.{note,md,edit,read}]
trim_trailing_whitespace = false

# JSON can have longer lines
[*.{json}]
[*.json]
max_line_length = 1000

# Composer uses 4 spaces itself
[composer.json]
indent_size = 4

[Sites.xml]
indent_size = 1
max_line_length = 1000

[*.{note,md,edit,read}]
indent_size = 2
trim_trailing-whitespace = false

[Makefile]
indent_style = tab

[*.css.d.ts]
indent_size = 2