From 208d21ff7390d153ae7b41ac7710b9063b9cc24f Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Wed, 21 Mar 2018 15:25:46 +0800 Subject: [PATCH] Add js-beautify config Try to standardize coding style for HTML & JavaScript via this tool --- src/webui/www/.jsbeautifyrc | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/webui/www/.jsbeautifyrc diff --git a/src/webui/www/.jsbeautifyrc b/src/webui/www/.jsbeautifyrc new file mode 100644 index 000000000..63cfb7984 --- /dev/null +++ b/src/webui/www/.jsbeautifyrc @@ -0,0 +1,29 @@ +{ + "indent_size": 4, + "indent_char": " ", + "indent_with_tabs": false, + "eol": "\n", + "end_with_newline": true, + "indent_level": 0, + "preserve_newlines": true, + "max_preserve_newlines": 2, + "space_in_paren": false, + "space_in_empty_paren": false, + "jslint_happy": false, + "space_after_anon_function": false, + "brace_style": "end-expand", + "unindent_chained_methods": false, + "break_chained_methods": false, + "keep_array_indentation": false, + "unescape_strings": false, + "wrap_line_length": 0, + "e4x": false, + "comma_first": false, + "operator_position": "after-newline", + + "html": { + "js": { + "end_with_newline": false + } + } +}