summaryrefslogtreecommitdiffstats
path: root/.editorconfig
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-04-25 22:53:51 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-04-25 22:53:51 +0200
commitc28efb3a81418b0fc57ebbe284398ac2994bce59 (patch)
tree6543d5bd445d04959dd9a677bbc33fdfbb7f7b93 /.editorconfig
parent7b2124ea5f535116ec526ad09babe834cf2fe0a1 (diff)
downloadgohugo-theme-ed-c28efb3a81418b0fc57ebbe284398ac2994bce59.tar.gz
Fix code style
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig23
1 files changed, 23 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..220f3d5
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,23 @@
+# editorconfig.org
+root = true
+
+[*]
+charset = utf-8
+indent_style = tab
+end_of_line = lf
+trim_trailing_whitespace = true
+insert_final_newline = true
+
+[*.md]
+trim_trailing_whitespace = false
+
+[*.{json,yaml,yml,toml,md,babelrc,eslintrc,postcssrc,stylelintrc,scss,ecrc}]
+indent_style = space
+indent_size = 2
+
+[*.html]
+indent_style = space
+indent_size = 4
+
+[layouts/**.{svg}]
+insert_final_newline = false