OSDN Git Service

[Add] .editorconfig を追加
authortaotao54321 <taotao54321@gmail.com>
Wed, 24 Feb 2021 14:29:44 +0000 (23:29 +0900)
committertaotao54321 <taotao54321@gmail.com>
Wed, 24 Feb 2021 15:04:37 +0000 (00:04 +0900)
新規ファイルを追加する際、エンコーディングなどが統一されないミスが生じて
いたので、自動で統一されるよう .editorconfig を追加する。

設定は以下の通り:

* エンコーディング: UTF-8-BOM
* ファイル末尾の改行: あり

改行コードについては git 側の設定と干渉して全行変更扱いにされるなどの事
故が考えられるため、ここでは指定しない。

.editorconfig [new file with mode: 0644]

diff --git a/.editorconfig b/.editorconfig
new file mode 100644 (file)
index 0000000..cec21f4
--- /dev/null
@@ -0,0 +1,5 @@
+root = true
+
+[*]
+charset = utf-8-bom
+insert_final_newline = true