]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard_v2: Create proper text editor config files to maintain consistent codin...
authorVolker Theile <vtheile@suse.com>
Tue, 23 Jan 2018 15:38:46 +0000 (16:38 +0100)
committerRicardo Dias <rdias@suse.com>
Mon, 5 Mar 2018 13:06:58 +0000 (13:06 +0000)
Signed-off-by: Volker Theile <vtheile@suse.com>
src/pybind/mgr/dashboard_v2/.editorconfig [new file with mode: 0644]

diff --git a/src/pybind/mgr/dashboard_v2/.editorconfig b/src/pybind/mgr/dashboard_v2/.editorconfig
new file mode 100644 (file)
index 0000000..a831e3d
--- /dev/null
@@ -0,0 +1,29 @@
+# EditorConfig helps developers define and maintain consistent coding styles
+# between different editors and IDEs.: http://EditorConfig.org
+
+# top-most EditorConfig file
+root = true
+
+# Unix-style newlines with a newline ending every file
+[*]
+end_of_line = lf
+insert_final_newline = true
+
+# Set default charset
+[*.{js,py}]
+charset = utf-8
+
+# 4 space indentation for Python files
+[*.py]
+indent_style = space
+indent_size = 4
+
+# Indentation override for all JS under frontend directory
+[frontend/**.js]
+indent_style = space
+indent_size = 2
+
+# Indentation override for all HTML under frontend directory
+[frontend/**.html]
+indent_style = space
+indent_size = 2