refactor: 优化eslint配置,提升代码质量 (#1341)

* feat: 统一并标准化eslint

* lint: napcat.webui

* lint: napcat.webui

* lint: napcat.core

* build: fix

* lint: napcat.webui

* refactor: 重构eslint

* Update README.md
This commit is contained in:
时瑾 authored and GitHub committed 2025-11-03 16:30:45 +08:00
1 parent d5b8f886d6
commit 06f6a542f5
651 files changed
+37978 -37584

No files matched your search

+5 -5
View File
@@ -1,4 +1,4 @@
import { z } from 'zod'
import { z } from 'zod';
// 通用响应格式
export const baseResponseSchema = z.object({
@@ -7,10 +7,10 @@ export const baseResponseSchema = z.object({
data: z.null(),
message: z.string().describe('提示信息'), // 提示信息
wording: z.string().describe('提示信息(人性化)'), // 人性化提示
echo: z.string().describe('回显') // 请求回显内容
})
echo: z.string().describe('回显'), // 请求回显内容
});
export const commonResponseDataSchema = z.object({
result: z.number(),
errMsg: z.string()
})
errMsg: z.string(),
});