diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..b556ac1 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,10 @@ +[*] + +indent_style = space +indent_size = 2 +tab_width = 2 + +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true diff --git a/tsfmt.json b/tsfmt.json new file mode 100644 index 0000000..06fddb1 --- /dev/null +++ b/tsfmt.json @@ -0,0 +1,16 @@ +{ + "tabSize": 2, + "indentSize": 2, + "convertTabsToSpaces": true, + "insertSpaceAfterCommaDelimiter": true, + "insertSpaceAfterSemicolonInForStatements": true, + "insertSpaceBeforeAndAfterBinaryOperators": true, + "insertSpaceAfterKeywordsInControlFlowStatements": true, + "insertSpaceAfterFunctionKeywordForAnonymousFunctions": true, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false, + "insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false, + "insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false, + "insertSpaceBeforeFunctionParenthesis": false, + "placeOpenBraceOnNewLineForFunctions": false, + "placeOpenBraceOnNewLineForControlBlocks": false +}