Skip to content

Commit 71eea45

Browse files
committed
Add an editorconfig to support indentation and whitespace style
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.
1 parent 9ef449f commit 71eea45

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.editorconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# EditorConfig: http://EditorConfig.org
2+
3+
# Top-most EditorConfig file
4+
root = true
5+
6+
# Rules for JavaScript files:
7+
8+
[*.js]
9+
# 2 space indentation
10+
indent_style = space
11+
indent_size = 2
12+
# No trailing spaces
13+
trim_trailing_whitespace = true
14+
# Unix-style newlines
15+
end_of_line = lf
16+
# Newline ending every file
17+
insert_final_newline = true

0 commit comments

Comments
 (0)