From f9b1f080b518c1d0d270c828aeabf9c8f4c3fde0 Mon Sep 17 00:00:00 2001 From: pany <939630029@qq.com> Date: Thu, 21 Nov 2024 20:14:55 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E4=BC=98=E5=8C=96=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .editorconfig | 21 ++++++++++----------- tests/demo.test.ts | 4 ++-- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/.editorconfig b/.editorconfig index 665ba8a..1104dd5 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,25 +1,24 @@ -# 修改配置后重启编辑器 -# 配置项文档:https://editorconfig.org +# 配置项文档:https://editorconfig.org(修改配置后重启编辑器) -# 告知 EditorConfig 插件,当前即是根文件 +## 告知 EditorConfig 插件,当前即是根文件 root = true -# 适用全部文件 +## 适用全部文件 [*] -## 设置字符集 +### 设置字符集 charset = utf-8 -## 缩进风格 space | tab,建议 space +### 缩进风格 space | tab,建议 space indent_style = space -## 缩进的空格数 +### 缩进的空格数 indent_size = 2 -## 换行符类型 lf | cr | crlf,一般都是设置为 lf +### 换行符类型 lf | cr | crlf,一般都是设置为 lf end_of_line = lf -## 是否在文件末尾插入空白行 +### 是否在文件末尾插入空白行 insert_final_newline = true -## 是否删除一行中的前后空格 +### 是否删除一行中的前后空格 trim_trailing_whitespace = true -# 适用 .md 文件 +## 适用 .md 文件 [*.md] insert_final_newline = false trim_trailing_whitespace = false diff --git a/tests/demo.test.ts b/tests/demo.test.ts index ecca8df..9656da2 100644 --- a/tests/demo.test.ts +++ b/tests/demo.test.ts @@ -1,5 +1,3 @@ -import { describe, expect, it } from "vitest" - /** * @description 该文件所有示例均是为了向你演示 Vitest 最基本的用法 * @link https://cn.vitest.dev/api @@ -10,6 +8,8 @@ import { describe, expect, it } from "vitest" * @api toEqual: 断言实际值是否等于接收到的值或具有相同的结构(如果是对象,则递归比较它们) */ +import { describe, expect, it } from "vitest" + const author1 = { name: "pany", email: "939630029@qq.com",