chore: added eslint rule for nomad plugin
Signed-off-by: Gaurav Pandey <grvpandey11@gmail.com>
This commit is contained in:
@@ -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.
|
||||
@@ -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',
|
||||
},
|
||||
});
|
||||
+1
-1
@@ -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 };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user