From b99ba74aa46c5aa6ebf321a17052bf711d27c851 Mon Sep 17 00:00:00 2001 From: yyh <92089059+lyzno1@users.noreply.github.com> Date: Sun, 10 May 2026 17:35:27 +0800 Subject: [PATCH] chore(web): remove drawer overlay import restriction (#35990) --- web/eslint.config.mjs | 18 ------------------ web/eslint.constants.mjs | 10 ---------- 2 files changed, 28 deletions(-) diff --git a/web/eslint.config.mjs b/web/eslint.config.mjs index ab2c626482..a46256ebf1 100644 --- a/web/eslint.config.mjs +++ b/web/eslint.config.mjs @@ -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, - ], - }], - }, - }, ) diff --git a/web/eslint.constants.mjs b/web/eslint.constants.mjs index cc0ba060a5..1d342fbf4d 100644 --- a/web/eslint.constants.mjs +++ b/web/eslint.constants.mjs @@ -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: {