From 71eea45af2b3ee2c3b4d01425b40f020aca2232e Mon Sep 17 00:00:00 2001 From: "K. Adam White" Date: Fri, 3 Jul 2015 18:14:47 -0400 Subject: [PATCH] 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. --- .editorconfig | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000000..bbe00f2d14 --- /dev/null +++ b/.editorconfig @@ -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