From 9574765d827b72545a10806db1bb1f7b3d2f54b9 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Mon, 30 Dec 2024 01:40:05 +0100 Subject: [PATCH] [code-infra] Prevent wrong nested imports in Base UI (#44426) --- .eslintrc.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index a1c4e25155c972..b713ca81aa0d62 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -41,11 +41,13 @@ const NO_RESTRICTED_IMPORTS_PATTERNS_DEEPLY_NESTED = [ group: [ '@mui/*/*/*', '@pigment-css/*/*/*', - '@base_ui/*/*/*', + '@base-ui/*/*/*', // Allow any import depth with any internal packages '!@mui/internal-*/**', - // TODO delete, @mui/docs should be @mui/internal-docs - '!@mui/docs/**', + // TODO delete + '@base-ui-components/*/*/*', // Wait for migration to @base-ui/ + '@base_ui/*/*/*', // Legacy, moved to @base-ui-components/ + '!@mui/docs/**', // @mui/docs should be @mui/internal-docs ], message: OneLevelImportMessage, },