chore(web): remove drawer overlay import restriction (#35990)

This commit is contained in:
yyh 2026-05-10 17:35:27 +08:00 committed by GitHub
parent 7b5c371b9d
commit b99ba74aa4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 28 deletions

View File

@ -14,7 +14,6 @@ import {
GENERATED_IGNORES,
HYOBAN_PREFER_TAILWIND_ICONS_OPTIONS,
NEXT_PLATFORM_RESTRICTED_IMPORT_PATHS,
OVERLAY_RESTRICTED_IMPORT_PATTERNS,
WEB_RESTRICTED_IMPORT_PATTERNS,
} from './eslint.constants.mjs'
import dify from './plugins/eslint/index.js'
@ -171,21 +170,4 @@ export default antfu(
}],
},
},
{
name: 'dify/overlay-import-policy',
files: [GLOB_TS, GLOB_TSX],
ignores: [
'next/**',
...GLOB_TESTS,
],
rules: {
'no-restricted-imports': ['error', {
paths: NEXT_PLATFORM_RESTRICTED_IMPORT_PATHS,
patterns: [
...WEB_RESTRICTED_IMPORT_PATTERNS,
...OVERLAY_RESTRICTED_IMPORT_PATTERNS,
],
}],
},
},
)

View File

@ -54,16 +54,6 @@ export const WEB_RESTRICTED_IMPORT_PATTERNS = [
...FLOATING_UI_RESTRICTED_IMPORT_PATTERNS,
]
export const OVERLAY_RESTRICTED_IMPORT_PATTERNS = [
{
group: [
'**/base/drawer',
'**/base/drawer/index',
],
message: 'Deprecated: use @langgenius/dify-ui/drawer instead. See issue #32767.',
},
]
export const HYOBAN_PREFER_TAILWIND_ICONS_OPTIONS = {
prefix: 'i-',
propMappings: {