chore: added eslint rule for nomad plugin

Signed-off-by: Gaurav Pandey <grvpandey11@gmail.com>
This commit is contained in:
Gaurav Pandey
2024-03-21 11:50:53 +05:30
parent 5dc11788eb
commit c116096518
3 changed files with 11 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-nomad': patch
---
Added an optional ESLint rule - no-top-level-material-ui-4-imports -in nomad plugin which has an auto fix function to migrate the imports and used it to migrate the Material UI imports for plugins/nomad.
+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',
},
});
@@ -34,7 +34,7 @@ import {
isNomadJobIDAvailable,
} from '../../annotations';
import OpenInNewIcon from '@material-ui/icons/OpenInNew';
import { Chip } from '@material-ui/core';
import Chip from '@material-ui/core/Chip';
type rowType = Version & { nomadAddr: string };