feat: 更新 ESLint 和 Prettier 配置,增强代码质量管理
- 在 .gitignore 中添加 public/audio/* 以忽略音频文件。 - 更新 bun.lock,添加 eslint-config-prettier 和 eslint-plugin-prettier 依赖,确保 ESLint 与 Prettier 的兼容性。 - 修改 eslint.config.ts,整合 Prettier 规则,优化代码风格一致性。 - 在 package.json 中添加 lint:fix 和 format 脚本,简化代码格式化和修复流程。 - 更新 tailwind.config.ts 和其他组件文件,统一代码风格,提升可读性。
This commit is contained in:
1 parent
5d00adc1a5
commit
76c67b492e
216 files changed
+12454
-13976
No files matched your search
@@ -2,28 +2,28 @@
|
||||
* 银元之战引导提示组件
|
||||
* 包含三个引导提示:前往解决按钮、走势图、走势图大图
|
||||
*/
|
||||
import { StudyGuideModal } from "@/components";
|
||||
import { ExhibitOverlay } from "@/components";
|
||||
import { StudyGuideModal } from '@/components'
|
||||
import { ExhibitOverlay } from '@/components'
|
||||
|
||||
export interface YinyuanGuidesProps {
|
||||
/** 是否显示引导提示1(前往解决按钮) */
|
||||
showGuide1: boolean;
|
||||
showGuide1: boolean
|
||||
/** 是否显示引导提示2(走势图) */
|
||||
showGuide2: boolean;
|
||||
showGuide2: boolean
|
||||
/** 是否显示引导提示3(走势图大图) */
|
||||
showGuide3: boolean;
|
||||
showGuide3: boolean
|
||||
/** 是否显示走势图大图 */
|
||||
showTrendChartDetail: boolean;
|
||||
showTrendChartDetail: boolean
|
||||
/** 引导提示1关闭回调 */
|
||||
onGuide1Close: () => void;
|
||||
onGuide1Close: () => void
|
||||
/** 引导提示2关闭回调 */
|
||||
onGuide2Close: () => void;
|
||||
onGuide2Close: () => void
|
||||
/** 引导提示3关闭回调 */
|
||||
onGuide3Close: () => void;
|
||||
onGuide3Close: () => void
|
||||
/** 走势图大图关闭回调 */
|
||||
onTrendChartDetailClose: () => void;
|
||||
onTrendChartDetailClose: () => void
|
||||
/** 走势图点击回调 */
|
||||
onTrendChartClick: () => void;
|
||||
onTrendChartClick: () => void
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -82,5 +82,5 @@ export const YinyuanGuides = ({
|
||||
onClose={onTrendChartDetailClose}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
};
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user