perf: 规范不同系统中的结束符 (#505)

* fix: eol

* fix: 测试效果

* fix: 默认全部文件eol=lf

* fix: 防止误判,仅对部分明确的文件设置

* fix: 新建文件eol格式错误进行互补

* Update settings.json
This commit is contained in:
Gui.H 2023-05-12 20:35:44 +08:00 committed by GitHub
parent c89f434ce8
commit 4292bd2118
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

6
.gitattributes vendored Normal file
View File

@ -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

View File

@ -1,4 +1,6 @@
{
"files.eol":"\n",
"editor.tabSize": 2,
"eslint.format.enable": true,
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact", "vue"],
"[vue]": {