mirror of
https://github.com/langgenius/dify.git
synced 2026-05-10 22:28:55 +08:00
chore(web): remove drawer overlay import restriction (#35990)
This commit is contained in:
parent
7b5c371b9d
commit
b99ba74aa4
@ -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,
|
||||
],
|
||||
}],
|
||||
},
|
||||
},
|
||||
)
|
||||
|
||||
@ -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: {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user