fix lint rule fixer for more than one Component + Prop
Signed-off-by: Juan Pablo Garcia Ripa <sarabadu@gmail.com>
This commit is contained in:
@@ -62,6 +62,18 @@ import Typography from '@material-ui/core/Typography';`,
|
||||
errors: [{ messageId: 'topLevelImport' }],
|
||||
output: `import { ThemeProvider } from '@material-ui/core/styles';`,
|
||||
},
|
||||
{
|
||||
code: `import { Grid, GridProps, Theme, makeStyles } from '@material-ui/core';`,
|
||||
errors: [{ messageId: 'topLevelImport' }],
|
||||
output: `import Grid, { GridProps } from '@material-ui/core/Grid';
|
||||
import { Theme, makeStyles } from '@material-ui/core/styles';`,
|
||||
},
|
||||
{
|
||||
code: `import { Grid, GridProps, SvgIcon, SvgIconProps } from '@material-ui/core';`,
|
||||
errors: [{ messageId: 'topLevelImport' }],
|
||||
output: `import Grid, { GridProps } from '@material-ui/core/Grid';
|
||||
import SvgIcon, { SvgIconProps } from '@material-ui/core/SvgIcon';`,
|
||||
},
|
||||
{
|
||||
code: `import {
|
||||
Box,
|
||||
|
||||
Reference in New Issue
Block a user