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 c9b1d3fafa
commit 2185a884b4
651 files changed
+37978 -37584

No files matched your search

+8 -8
View File
@@ -1,9 +1,9 @@
import { Toaster as HotToaster } from 'react-hot-toast'
import { Toaster as HotToaster } from 'react-hot-toast';
import { useTheme } from '@/hooks/use-theme'
import { useTheme } from '@/hooks/use-theme';
export const Toaster = () => {
const { isDark } = useTheme()
const { isDark } = useTheme();
return (
<HotToaster
@@ -11,11 +11,11 @@ export const Toaster = () => {
style: {
borderRadius: '20px',
background: isDark ? '#333' : '#fff',
color: isDark ? '#fff' : '#333'
}
color: isDark ? '#fff' : '#333',
},
}}
/>
)
}
);
};
export default Toaster
export default Toaster;