Merge pull request #14592 from backstage/rugvip/nolink
Revert "chore: (eslint) restrict imports of @material-ui Link"
This commit is contained in:
@@ -239,17 +239,6 @@ function createConfigForRole(dir, role, extraConfig = {}) {
|
||||
name: '@material-ui/icons/', // because this is possible too ._.
|
||||
message: "Please import '@material-ui/icons/<Icon>' instead.",
|
||||
},
|
||||
{
|
||||
name: '@material-ui/core',
|
||||
importNames: ['Link'],
|
||||
message:
|
||||
'Prefer using `Link` from `@backstage/core-components` rather than material-UI',
|
||||
},
|
||||
{
|
||||
name: '@material-ui/core/Link',
|
||||
message:
|
||||
'Prefer using `Link` from `@backstage/core-components` rather than material-UI',
|
||||
},
|
||||
...require('module').builtinModules,
|
||||
...(extraConfig.restrictedImports ?? []),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user