From b07fe372a08d17fa8ffe31adcd92a27c978f3bc3 Mon Sep 17 00:00:00 2001 From: Ayakura Yuki Date: Mon, 4 Sep 2023 10:04:56 +0800 Subject: [PATCH 1/4] =?UTF-8?q?+=20=E9=92=88=E5=AF=B9=E6=94=AF=E6=8C=81=20?= =?UTF-8?q?EditorConfig=20=E7=9A=84=20IDE=20=E5=A2=9E=E5=8A=A0=E4=BA=86?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E9=A3=8E=E6=A0=BC=E8=A7=84=E7=BA=A6=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .editorconfig | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..b2319a4 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,11 @@ +root = true + +[*] +charset = utf-8 +indent_size = 2 +indent_style = space +tab_width = 2 +insert_final_newline = true +end_of_line = lf +trim_trailing_whitespace = true +max_line_length = off From f114cd78bf3f83753ed6f6ad81e14f3a80643a9b Mon Sep 17 00:00:00 2001 From: Ayakura Yuki Date: Mon, 4 Sep 2023 10:25:18 +0800 Subject: [PATCH 2/4] =?UTF-8?q?+=20=E5=A2=9E=E5=8A=A0=E4=BA=86=E9=92=88?= =?UTF-8?q?=E5=AF=B9=20IntelliJ=20=E7=B3=BB=E5=88=97=20IDE=20=E7=9A=84?= =?UTF-8?q?=E9=A2=9D=E5=A4=96=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .editorconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.editorconfig b/.editorconfig index b2319a4..1aa8841 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,6 +1,7 @@ root = true [*] +# EditorConfig 标准配置项 charset = utf-8 indent_size = 2 indent_style = space @@ -9,3 +10,8 @@ insert_final_newline = true end_of_line = lf trim_trailing_whitespace = true max_line_length = off + +# IntelliJ 系列配置项 +ij_any_space_before_colon = true +ij_any_space_after_colon = true +ij_javascript_use_double_quotes = false From 0d88842a2655ef771bf88df29f09221c73b10d09 Mon Sep 17 00:00:00 2001 From: Ayakura Yuki Date: Mon, 4 Sep 2023 10:40:44 +0800 Subject: [PATCH 3/4] =?UTF-8?q?+=20=E5=A2=9E=E5=8A=A0=E4=BA=86=E9=92=88?= =?UTF-8?q?=E5=AF=B9=20IntelliJ=20=E7=B3=BB=E5=88=97=20IDE=20=E5=9C=A8?= =?UTF-8?q?=E5=A4=84=E7=90=86=20JSON=20=E7=9A=84=E9=A2=9D=E5=A4=96?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .editorconfig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.editorconfig b/.editorconfig index 1aa8841..28e36c6 100644 --- a/.editorconfig +++ b/.editorconfig @@ -14,4 +14,11 @@ max_line_length = off # IntelliJ 系列配置项 ij_any_space_before_colon = true ij_any_space_after_colon = true +ij_javascript_use_semicolon_after_statement = false ij_javascript_use_double_quotes = false +ij_javascript_enforce_trailing_comma = keep +ij_typescript_enforce_trailing_comma = keep + +[*.json] +ij_any_space_before_colon = false +ij_json_keep_trailing_comma = false From a84ef9eb1ccac6e0e5bd71d45ca698459a77445c Mon Sep 17 00:00:00 2001 From: Ayakura Yuki Date: Mon, 4 Sep 2023 10:45:59 +0800 Subject: [PATCH 4/4] =?UTF-8?q?+=20=E5=A2=9E=E5=8A=A0=E4=BA=86=E9=92=88?= =?UTF-8?q?=E5=AF=B9=20IntelliJ=20=E7=B3=BB=E5=88=97=20IDE=20=E7=9A=84=20P?= =?UTF-8?q?unctuation=20=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .editorconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.editorconfig b/.editorconfig index 28e36c6..7c19a87 100644 --- a/.editorconfig +++ b/.editorconfig @@ -14,9 +14,12 @@ max_line_length = off # IntelliJ 系列配置项 ij_any_space_before_colon = true ij_any_space_after_colon = true +ij_any_keep_indents_on_empty_lines = false ij_javascript_use_semicolon_after_statement = false ij_javascript_use_double_quotes = false ij_javascript_enforce_trailing_comma = keep +ij_typescript_use_semicolon_after_statement = false +ij_typescript_use_double_quotes = false ij_typescript_enforce_trailing_comma = keep [*.json]