Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

📝 docs: fix eslint irregular whitespace issues (#8777)

YuTengjinga51b33f15474
diff --git a/docs/development/state-management/state-management-intro.mdx b/docs/development/state-management/state-management-intro.mdx
index e47ec977707..82816a526ba 100644
--- a/docs/development/state-management/state-management-intro.mdx
+++ b/docs/development/state-management/state-management-intro.mdx
@@ -1,5 +1,3 @@
-{/* eslint-disable no-irregular-whitespace */}
-
# Best Practices for State Management
LobeChat differs from traditional CRUD web applications in that it involves a large amount of rich interactive capabilities. Therefore, it is crucial to design a data flow architecture that is easy to develop and maintain. This document will introduce the best practices for data flow management in LobeChat.
@@ -111,6 +109,8 @@ Based on the provided directory structure of LobeChat SessionStore, we can updat
In the LobeChat application, session management is a complex functional module, so we use the Slice pattern to organize the data flow. Below is the directory structure of LobeChat SessionStore, where each directory and file has its specific purpose:
+{/* eslint-disable no-irregular-whitespace */}
+
```bash
src/store/session
├── helpers.ts # Helper functions
diff --git a/docs/development/state-management/state-management-intro.zh-CN.mdx b/docs/development/state-management/state-management-intro.zh-CN.mdx
index bca2ce6b5a5..c7bcb0d1fb1 100644
--- a/docs/development/state-management/state-management-intro.zh-CN.mdx
+++ b/docs/development/state-management/state-management-intro.zh-CN.mdx
@@ -1,5 +1,3 @@
-{/* eslint-disable no-irregular-whitespace */}
-
# 状态管理最佳实践
LobeChat 不同于传统 CRUD 的网页,存在大量的富交互能力,如何设计一个易于开发与易于维护的数据流架构非常重要。本篇文档将介绍 LobeChat 中的数据流管理最佳实践。
@@ -111,6 +109,8 @@ LobeChat SessionStore
在 LobeChat 应用中,由于会话管理是一个复杂的功能模块,因此我们采用了 [slice 模式](https://github.com/pmndrs/zustand/blob/main/docs/guides/slices-pattern.md) 来组织数据流。下面是 LobeChat SessionStore 的目录结构,其中每个目录和文件都有其特定的用途:
+{/* eslint-disable no-irregular-whitespace */}
+
```fish
src/store/session
├── index.ts # SessionStore 的聚合导出文件