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
+32
-37
@@ -1,34 +1,34 @@
|
||||
// Video component
|
||||
export { default as Video } from "./video";
|
||||
export type { VideoProps, VideoRef, VideoAnchor, AnchorContext } from "./video";
|
||||
export { default as Video } from './video'
|
||||
export type { VideoProps, VideoRef, VideoAnchor, AnchorContext } from './video'
|
||||
|
||||
// Button components
|
||||
export { Button, ImageButton } from "./button";
|
||||
export type { BaseButtonProps, ImageButtonProps } from "./button";
|
||||
export { Button, ImageButton } from './button'
|
||||
export type { BaseButtonProps, ImageButtonProps } from './button'
|
||||
|
||||
// Image component
|
||||
export { Image } from "./image";
|
||||
export type { ImageProps } from "./image";
|
||||
export { Image } from './image'
|
||||
export type { ImageProps } from './image'
|
||||
|
||||
// Title
|
||||
export { Title } from "./title";
|
||||
export { Title } from './title'
|
||||
|
||||
// Guide components
|
||||
export { GuideSteps, GuideStepsItem, StudyGuideModal } from "./guide";
|
||||
export { GuideSteps, GuideStepsItem, StudyGuideModal } from './guide'
|
||||
|
||||
// Exhibit overlay
|
||||
export { ExhibitOverlay } from "./exhibit";
|
||||
export type { ExhibitOverlayProps } from "./exhibit";
|
||||
export { ExhibitOverlay } from './exhibit'
|
||||
export type { ExhibitOverlayProps } from './exhibit'
|
||||
|
||||
// Overlay component
|
||||
export { Overlay } from "./overlay";
|
||||
export type { OverlayProps } from "./overlay";
|
||||
export { Overlay } from './overlay'
|
||||
export type { OverlayProps } from './overlay'
|
||||
|
||||
export { EndingOverlay } from "./overlay";
|
||||
export type { EndingOverlayProps } from "./overlay";
|
||||
export { EndingOverlay } from './overlay'
|
||||
export type { EndingOverlayProps } from './overlay'
|
||||
|
||||
// Spotlight component
|
||||
export { Spotlight } from "./spotlight";
|
||||
export { Spotlight } from './spotlight'
|
||||
|
||||
// Quiz panel components
|
||||
export {
|
||||
@@ -38,7 +38,7 @@ export {
|
||||
DragQuizPanel,
|
||||
MatchQuizPanel,
|
||||
SelectFillQuizPanel,
|
||||
} from "./layout/quiz";
|
||||
} from './layout/quiz'
|
||||
export type {
|
||||
QuizPanelProps,
|
||||
SingleChoiceQuizPanelProps,
|
||||
@@ -46,13 +46,13 @@ export type {
|
||||
DragQuizPanelProps,
|
||||
MatchQuizPanelProps,
|
||||
SelectFillQuizPanelProps,
|
||||
} from "./layout/quiz";
|
||||
} from './layout/quiz'
|
||||
|
||||
//Cursor
|
||||
export { default as Cursor } from "@/components/cursor";
|
||||
export { default as Cursor } from '@/components/cursor'
|
||||
|
||||
// Quiz components
|
||||
export { SingleChoice, MultipleChoice, DragFill } from "./quiz";
|
||||
export { SingleChoice, MultipleChoice, DragFill } from './quiz'
|
||||
export type {
|
||||
SingleChoiceProps,
|
||||
SingleChoiceOption,
|
||||
@@ -62,38 +62,33 @@ export type {
|
||||
DragFillOption,
|
||||
DragFillBlank,
|
||||
DragFillResult,
|
||||
} from "./quiz";
|
||||
} from './quiz'
|
||||
|
||||
// Narration component
|
||||
export { Narration } from "./narration";
|
||||
export type { NarrationProps } from "./narration";
|
||||
export { Narration } from './narration'
|
||||
export type { NarrationProps } from './narration'
|
||||
|
||||
// Clue components
|
||||
export { ClueHintModal, ClueBookModal } from "./clue";
|
||||
export type { ClueHintModalProps, ClueHint, ClueBookModalProps } from "./clue";
|
||||
export { ClueHintModal, ClueBookModal } from './clue'
|
||||
export type { ClueHintModalProps, ClueHint, ClueBookModalProps } from './clue'
|
||||
|
||||
// Animation components
|
||||
export { flyToAnimation } from "./animation";
|
||||
export type { FlyToAnimationOptions, FlyToPosition } from "./animation";
|
||||
export { flyToAnimation } from './animation'
|
||||
export type { FlyToAnimationOptions, FlyToPosition } from './animation'
|
||||
|
||||
// Select component
|
||||
export { Select } from "./select";
|
||||
export type { SelectProps, SelectOption } from "./select";
|
||||
export { Select } from './select'
|
||||
export type { SelectProps, SelectOption } from './select'
|
||||
|
||||
// Letter components
|
||||
export {
|
||||
LetterToChenyun,
|
||||
LetterToSunzhongshan,
|
||||
LetterToHuangyanpei,
|
||||
LetterToLuxun,
|
||||
} from "./letter";
|
||||
export { LetterToChenyun, LetterToSunzhongshan, LetterToHuangyanpei, LetterToLuxun } from './letter'
|
||||
export type {
|
||||
LetterToChenyunProps,
|
||||
LetterToSunzhongshanProps,
|
||||
LetterToHuangyanpeiProps,
|
||||
LetterToLuxunProps,
|
||||
} from "./letter";
|
||||
} from './letter'
|
||||
|
||||
// Puzzle components
|
||||
export { PuzzleSystem, PuzzlePieceDisplay } from "./puzzle";
|
||||
export type { PuzzleSystemProps, PuzzlePieceDisplayProps } from "./puzzle";
|
||||
export { PuzzleSystem, PuzzlePieceDisplay } from './puzzle'
|
||||
export type { PuzzleSystemProps, PuzzlePieceDisplayProps } from './puzzle'
|
||||
Reference in new issue
Block a user