core-components: add lint rule to avoid circular imports
Signed-off-by: Beth Griggs <bethanyngriggs@gmail.com>
This commit is contained in:
@@ -4,6 +4,10 @@ module.exports = require('@backstage/cli/config/eslint-factory')(__dirname, {
|
||||
'@backstage/no-top-level-material-ui-4-imports': 'error',
|
||||
},
|
||||
restrictedImports: [
|
||||
{
|
||||
name: '@backstage/core-components',
|
||||
message: "To avoid circular dependencies, use relative paths to import '@backstage/core-components' from its subdirectories."
|
||||
},
|
||||
{
|
||||
name: '@material-ui/core',
|
||||
message: "Please import '@material-ui/core/...' instead.",
|
||||
|
||||
Reference in New Issue
Block a user