From 33ca6ce43a6d1e4535047d66a112ed99545e440b Mon Sep 17 00:00:00 2001 From: Jose C Quintas Jr Date: Sat, 16 Nov 2024 14:18:09 +0100 Subject: [PATCH] [code-infra] Prevent relative imports across packages (#15437) --- .eslintrc.js | 1 + 1 file changed, 1 insertion(+) diff --git a/.eslintrc.js b/.eslintrc.js index 86ca180db6c83..cc528a710906d 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -136,6 +136,7 @@ module.exports = { ...(ENABLE_REACT_COMPILER_PLUGIN ? { 'react-compiler/react-compiler': 'error' } : {}), // TODO move to @mui/monorepo, codebase is moving away from default exports https://github.com/mui/material-ui/issues/21862 'import/prefer-default-export': 'off', + 'import/no-relative-packages': 'error', 'import/no-restricted-paths': [ 'error', {