chore: (eslint) restrict imports of @material-ui Link

BREAKING CHANGE: Added a new ESLint rule that restricts imports of Link from @material-ui

Signed-off-by: Dmitry Lobanov <lobanov.dmitry.s@gmail.com>
This commit is contained in:
Dmitry Lobanov
2022-10-08 10:23:40 +00:00
committed by Fredrik Adelöw
parent f905853ad6
commit 7539b36748
2 changed files with 27 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
---
'@backstage/cli': minor
---
Added a new ESLint rule that restricts imports of Link from @material-ui
The rule can be can be overridden in the following way:
```diff
module.exports = require('@backstage/cli/config/eslint-factory')(__dirname, {
+ restrictedImports: [
+ { name: '@material-ui/core', importNames: [] },
+ { name: '@material-ui/core/Link', importNames: [] },
+ ],
});
```