From 645e1cbda55800e28d574a0f1823dce8073611ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Tue, 20 Feb 2024 14:46:00 +0100 Subject: [PATCH] Update docs/releases/v1.23.0.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Patrik Oldsberg Signed-off-by: Fredrik Adelöw --- docs/releases/v1.23.0.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/releases/v1.23.0.md b/docs/releases/v1.23.0.md index e877533165..ef360a6b26 100644 --- a/docs/releases/v1.23.0.md +++ b/docs/releases/v1.23.0.md @@ -30,6 +30,18 @@ Thanks to [@pjungermann](https://github.com/pjungermann)’s work, we’ve now b This change also deprecates the original `@backstage/plugin-scaffolder-backend-module-bitbucket`, so if you’re using the new Backend System we encourage you to move towards using these new modules instead. +### New lint rule to forbid top-level MUI imports + +The `@backstage/eslint-rules` package now provides the `@backstage/no-top-level-material-ui-4-imports` rule that forbids imports such as `import { Box } from '@material-ui/core'`. This rule is currently disabled by default and needs to be manually enabled in `.eslintrc.js`: + +```ts +module.exports = require('@backstage/cli/config/eslint-factory')(__dirname, { + rules: { + '@backstage/no-top-level-material-ui-4-imports': 'error', + }, +}); +``` + ### Automatic package `repository` fields The `backstage-cli repo fix` command will now update the `repository` fields in all workspace packages, as long as the root `package.json` has the `repository` field set.