Skip to content

Commit

Permalink
Add an editorconfig to support indentation and whitespace style
Browse files Browse the repository at this point in the history
editorconfig is a standard for a file specifying whitespace preferences
in a codebase. Most editors and IDEs support plugins that will detect
this file and apply the styles therein while you edit code.
  • Loading branch information
kadamwhite committed Jul 3, 2015
1 parent 9ef449f commit 71eea45
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# EditorConfig: http://EditorConfig.org

# Top-most EditorConfig file
root = true

# Rules for JavaScript files:

[*.js]
# 2 space indentation
indent_style = space
indent_size = 2
# No trailing spaces
trim_trailing_whitespace = true
# Unix-style newlines
end_of_line = lf
# Newline ending every file
insert_final_newline = true

0 comments on commit 71eea45

Please sign in to comment.