From 4292bd2118326f770351ba00c3f613ea1b63f837 Mon Sep 17 00:00:00 2001 From: "Gui.H" Date: Fri, 12 May 2023 20:35:44 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E8=A7=84=E8=8C=83=E4=B8=8D=E5=90=8C?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E4=B8=AD=E7=9A=84=E7=BB=93=E6=9D=9F=E7=AC=A6?= =?UTF-8?q?=20(#505)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: eol * fix: 测试效果 * fix: 默认全部文件eol=lf * fix: 防止误判,仅对部分明确的文件设置 * fix: 新建文件eol格式错误进行互补 * Update settings.json --- .gitattributes | 6 ++++++ .vscode/settings.json | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..326caac --- /dev/null +++ b/.gitattributes @@ -0,0 +1,6 @@ +*.ts text eol=lf +*.vue text eol=lf +*.tsx text eol=lf +*.jsx text eol=lf +*.html text eol=lf +*.json text eol=lf \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index 9f7e7d1..02a0913 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,6 @@ { + "files.eol":"\n", + "editor.tabSize": 2, "eslint.format.enable": true, "eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact", "vue"], "[vue]": {