mirror of
https://github.com/processwire/processwire.git
synced 2025-08-11 01:04:16 +02:00
create .editorconfig in wire directory
This is very helpful for contributors who uses different editor settings, for example indentation with spaces, not tabs. Most of all common editor programms or IDEs nowadays support to preserve the defined coding style rules automatically. Read more here: http://editorconfig.org
This commit is contained in:
31
wire/.editorconfig
Normal file
31
wire/.editorconfig
Normal file
@@ -0,0 +1,31 @@
|
||||
; This file is for unifying the coding style for different editors and IDEs.
|
||||
; More information at http://editorconfig.org
|
||||
|
||||
|
||||
root = true
|
||||
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
|
||||
|
||||
[*.{php,inc,module}]
|
||||
tab_width = 4
|
||||
indent_style = tab
|
||||
trim_trailing_whitespace = false
|
||||
insert_final_newline = true
|
||||
|
||||
|
||||
[*.js]
|
||||
tab_width = 4
|
||||
indent_style = tab
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
|
||||
|
||||
[*.{css,less,scss}]
|
||||
tab_width = 2
|
||||
indent_style = tab
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
Reference in New Issue
Block a user