Skip to content

Commit

Permalink
use no-relative-packages instead
Browse files Browse the repository at this point in the history
  • Loading branch information
JCQuintas committed Nov 16, 2024
1 parent 1f53a10 commit 2bcbfbf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,6 @@ const buildPackageRestrictedImports = (packageName, root, allowRootImports = tru
group: [`${packageName}/*`, `${packageName}/**`],
message: 'Use relative import instead',
},
{
group: ['../../**/src/**'],
message: 'Relative imports from another package are not allowed.',
},
],
},
],
Expand Down Expand Up @@ -140,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',
{
Expand Down

0 comments on commit 2bcbfbf

Please sign in to comment.