Skip to content

Commit

Permalink
[code-infra] Prevent wrong nested imports in Base UI (mui#44426)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari authored Dec 30, 2024
1 parent 16ff52a commit 9574765
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down

0 comments on commit 9574765

Please sign in to comment.