feat: 1.统一右侧抽屉关闭按钮布局 2.统一 UI 组件为 Ant Design 移除 radix-ui、floating-ui 组件 3. 修复 ESLint 文件格式错误的问题
This commit is contained in:
@@ -14,14 +14,43 @@ module.exports = {
|
||||
'dist/**',
|
||||
'node_modules/**',
|
||||
'logs/**',
|
||||
'report/**',
|
||||
'playwright-report/**',
|
||||
'test-results/**',
|
||||
'blob-report/**',
|
||||
'src/assets/brand-icons/*.js',
|
||||
],
|
||||
overrides: [
|
||||
{
|
||||
files: ['**/*.{js,jsx}'],
|
||||
rules: {
|
||||
'no-restricted-imports': [
|
||||
'error',
|
||||
{
|
||||
patterns: [
|
||||
{
|
||||
group: [
|
||||
'@radix-ui/*',
|
||||
'@floating-ui/*',
|
||||
'@lobehub/ui',
|
||||
'@lobehub/ui/*',
|
||||
'@lobehub/icons',
|
||||
'@lobehub/icons/*',
|
||||
'@douyinfe/semi-*',
|
||||
'@headlessui/*',
|
||||
'@mui/*',
|
||||
'@chakra-ui/*',
|
||||
'leva',
|
||||
'leva/*',
|
||||
'antd-style',
|
||||
'react-layout-kit',
|
||||
],
|
||||
message:
|
||||
'Use antd public APIs or the audited local brand SVG assets. Preserve legacy components/ui callback contracts.',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
'header/header': [
|
||||
2,
|
||||
'block',
|
||||
|
||||
Reference in New Issue
Block a user