Mui V5 - Core Styles Import

Renames private import from core/styles/* to core/styles

MUI
jscodeshift
Estimated time saving
~5 minutes/occurrence
Change mode
Autonomous
Applicability criteria

MUI version >= 4.0.0

Made by
MUI
MUI

Usage →

Codemod CLI:

intalling vs code extension tooltip icon
codemod mui/5/core-styles-import
copy CLI command icon

Codemod VS Code extension:

intalling vs code extension tooltip icon
vs code logo
Run in VS Code

Description

Renames private import from core/styles/* to core/styles

Before

import { createTheme } from '@material-ui/core/styles'; import { darken, lighten } from '@material-ui/core/styles/colorManipulator'; import makeStyles from '@material-ui/core/styles/makeStyles'; import { Overrides } from '@material-ui/core/styles/overrides';

After

import {
	createTheme,
	darken,
	lighten,
	makeStyles,
	Overrides,
} from '@material-ui/core/styles';