feat: add eslint rule for top level imports

adds the `no-top-level-material-ui-4-imports` eslint rule to raise errors when top level imports are used.

Signed-off-by: Timothy Deakin <cftad@protonmail.com>
This commit is contained in:
Timothy Deakin
2024-03-14 13:33:18 +00:00
parent f1812deee3
commit 33ff583a34
+5 -1
View File
@@ -1 +1,5 @@
module.exports = require('@backstage/cli/config/eslint-factory')(__dirname);
module.exports = require('@backstage/cli/config/eslint-factory')(__dirname, {
rules: {
'@backstage/no-top-level-material-ui-4-imports': 'error',
},
});