Skip to content

Commit

Permalink
Update editor config to combine *.go and *.js rules
Browse files Browse the repository at this point in the history
Signed-off-by: Tajinder Singh <[email protected]>
  • Loading branch information
tsingh2k15 committed May 23, 2020
1 parent 695ff8a commit eeb7fb4
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true


[*]
end_of_line = lf
charset = utf-8
end_of_line = crlf
insert_final_newline = false
max_line_length = 120
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space

[*.go]
indent_size = 4
indent_style = tab

[*.js]
indent_size = 2
indent_style = space

[*.{diff,md}]
trim_trailing_whitespace = false

0 comments on commit eeb7fb4

Please sign in to comment.