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:
Juan Pablo Garcia Ripa
2024-04-08 22:15:07 +02:00
parent 98602012b4
commit 9ef572d05c
3 changed files with 52 additions and 50 deletions
@@ -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,