Add ESLint Rule to graphql-voyager Plugin
Signed-off-by: AmbrishRamachandiran <ambrish.r@infosys.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-graphql-voyager': patch
|
||||
---
|
||||
|
||||
Added ESLint rule `no-top-level-material-ui-4-imports` in the `graphql-voyager` plugin to migrate the Material UI imports.
|
||||
@@ -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',
|
||||
},
|
||||
});
|
||||
|
||||
+4
-1
@@ -19,7 +19,10 @@ import {
|
||||
introspectionQuery,
|
||||
} from '../../lib/api/types';
|
||||
import { useState } from 'react';
|
||||
import { makeStyles, Tab, Tabs, Typography } from '@material-ui/core';
|
||||
import Tab from '@material-ui/core/Tab';
|
||||
import Tabs from '@material-ui/core/Tabs';
|
||||
import Typography from '@material-ui/core/Typography';
|
||||
import { makeStyles } from '@material-ui/core/styles';
|
||||
import React, { Suspense } from 'react';
|
||||
import { Content, ErrorPanel, Progress } from '@backstage/core-components';
|
||||
import { Voyager } from 'graphql-voyager';
|
||||
|
||||
Reference in New Issue
Block a user