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.