From 36fc571be0efce18e623d06eb034959e8dc9c265 Mon Sep 17 00:00:00 2001 From: Sami Vaarala Date: Sun, 23 Feb 2020 23:20:12 +0200 Subject: [PATCH] Add a basic .editorconfig file --- .editorconfig | 29 +++++++++++++++++++++++++++++ Makefile | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..55818ccf --- /dev/null +++ b/.editorconfig @@ -0,0 +1,29 @@ +# https://editorconfig.org/ +# +# Approximate configuration for the Duktape code base. + +root = true + +[*.{c,h,c.in,h.in}] +end_of_line = lf +insert_final_newline = true +charset = utf-8 +indent_style = tab +indent_size = 8 +trim_trailing_whitespace = true + +[*.js] +end_of_line = lf +insert_final_newline = true +charset = utf-8 +indent_style = space +indent_size = 4 +trim_trailing_whitespace = true + +[Makefile] +end_of_line = lf +insert_final_newline = true +charset = utf-8 +indent_style = tab +indent_size = 8 +trim_trailing_whitespace = true diff --git a/Makefile b/Makefile index 2c67896d..2ef6d41b 100644 --- a/Makefile +++ b/Makefile @@ -945,7 +945,7 @@ sax-js: xmldoc: # https://github.com/nfarina/xmldoc # http://nfarina.com/post/34302964969/a-lightweight-xml-document-class-for-nodejs-javascript - $(GIT) clone --depth 1 https://github.com/nfarina/xmldoc.git + $(GIT) clone --depth 1 https://github.com/nfarina/xmldoc.git FlameGraph: # http://www.brendangregg.com/FlameGraphs/cpuflamegraphs.html # https://github.com/brendangregg/FlameGraph