mirror of https://github.com/langgenius/dify.git
fix: lint
This commit is contained in:
parent
aa7a6e96ed
commit
7d64082c6f
|
|
@ -6,7 +6,7 @@ import hyoban from 'eslint-plugin-hyoban'
|
|||
import sonar from 'eslint-plugin-sonarjs'
|
||||
import storybook from 'eslint-plugin-storybook'
|
||||
import dify from './eslint-rules/index.js'
|
||||
import { BASE_UI_PRIMITIVE_EXPORT_NAMES, OVERLAY_MIGRATION_LEGACY_BASE_FILES } from './eslint.constants.mjs'
|
||||
import { OVERLAY_MIGRATION_LEGACY_BASE_FILES } from './eslint.constants.mjs'
|
||||
|
||||
// Enable Tailwind CSS IntelliSense mode for ESLint runs
|
||||
// See: tailwind-css-plugin.ts
|
||||
|
|
@ -150,9 +150,7 @@ export default antfu(
|
|||
name: 'dify/base-ui-primitives',
|
||||
files: ['app/components/base/ui/**/*.tsx'],
|
||||
rules: {
|
||||
'react-refresh/only-export-components': ['error', {
|
||||
allowExportNames: BASE_UI_PRIMITIVE_EXPORT_NAMES,
|
||||
}],
|
||||
'react-refresh/only-export-components': 'off',
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,46 +1,3 @@
|
|||
export const BASE_UI_PRIMITIVE_EXPORT_NAMES = [
|
||||
'Dialog',
|
||||
'DialogClose',
|
||||
'DialogContent',
|
||||
'DialogDescription',
|
||||
'DialogTitle',
|
||||
'DialogTrigger',
|
||||
'DropdownMenu',
|
||||
'DropdownMenuCheckboxItem',
|
||||
'DropdownMenuCheckboxItemIndicator',
|
||||
'DropdownMenuContent',
|
||||
'DropdownMenuGroup',
|
||||
'DropdownMenuGroupLabel',
|
||||
'DropdownMenuItem',
|
||||
'DropdownMenuPortal',
|
||||
'DropdownMenuRadioGroup',
|
||||
'DropdownMenuRadioItem',
|
||||
'DropdownMenuRadioItemIndicator',
|
||||
'DropdownMenuSeparator',
|
||||
'DropdownMenuSub',
|
||||
'DropdownMenuSubContent',
|
||||
'DropdownMenuSubTrigger',
|
||||
'DropdownMenuTrigger',
|
||||
'Popover',
|
||||
'PopoverClose',
|
||||
'PopoverContent',
|
||||
'PopoverDescription',
|
||||
'PopoverTitle',
|
||||
'PopoverTrigger',
|
||||
'Select',
|
||||
'SelectContent',
|
||||
'SelectGroup',
|
||||
'SelectGroupLabel',
|
||||
'SelectItem',
|
||||
'SelectSeparator',
|
||||
'SelectTrigger',
|
||||
'SelectValue',
|
||||
'Tooltip',
|
||||
'TooltipContent',
|
||||
'TooltipProvider',
|
||||
'TooltipTrigger',
|
||||
]
|
||||
|
||||
export const OVERLAY_MIGRATION_LEGACY_BASE_FILES = [
|
||||
'app/components/base/chat/chat-with-history/header/mobile-operation-dropdown.tsx',
|
||||
'app/components/base/chat/chat-with-history/header/operation.tsx',
|
||||
|
|
|
|||
Loading…
Reference in New Issue