@@ -57,6 +57,7 @@ export default defineConfig(
5757 createBaseConfig ( {
5858 enableReactCompiler : ENABLE_REACT_COMPILER_PLUGIN ,
5959 baseDirectory : dirname ,
60+ materialUi : true ,
6061 } ) ,
6162 {
6263 name : 'Material UI overrides' ,
@@ -70,7 +71,7 @@ export default defineConfig(
7071 } ,
7172 rules : {
7273 'import/prefer-default-export' : 'error' ,
73- 'material-ui /straight-quotes' : 'error' ,
74+ 'mui /straight-quotes' : 'error' ,
7475 'no-restricted-imports' : [
7576 'error' ,
7677 {
@@ -91,14 +92,17 @@ export default defineConfig(
9192 'react-hooks/incompatible-library' : 'off' ,
9293 'react-hooks/static-components' : 'off' ,
9394 'react-hooks/purity' : 'off' ,
95+
96+ // TODO (@Janpot) fix in https://github.com/mui/material-ui/pull/47692
97+ 'mui/consistent-production-guard' : 'off' ,
9498 } ,
9599 } ,
96100 ...[ 'mui-material' , 'mui-system' , 'mui-utils' , 'mui-lab' , 'mui-utils' , 'mui-styled-engine' ] . map (
97101 ( packageName ) => ( {
98102 files : [ `packages/${ packageName } /src/**/*${ EXTENSION_TEST_FILE } ` ] ,
99103 ignores : [ '**/*.test.*' , '**/*.spec.*' ] ,
100104 rules : {
101- 'material-ui /no-restricted-resolved-imports' : [
105+ 'mui /no-restricted-resolved-imports' : [
102106 'error' ,
103107 [
104108 {
@@ -131,7 +135,7 @@ export default defineConfig(
131135 } ,
132136 } ,
133137 rules : {
134- 'material-ui/ no-empty-box' : 'off' ,
138+ 'mui/ material-ui- no-empty-box' : 'off' ,
135139 // Disabled temporarily. Enable one by one.
136140 'testing-library/no-container' : 'off' ,
137141 // TODO: investigate and fix
@@ -218,7 +222,7 @@ export default defineConfig(
218222 '**/mui-docs/**/*' ,
219223 ] ,
220224 rules : {
221- 'material-ui /disallow-react-api-in-server-components' : 'error' ,
225+ 'mui /disallow-react-api-in-server-components' : 'error' ,
222226 } ,
223227 } ,
224228 {
@@ -256,7 +260,7 @@ export default defineConfig(
256260 files : [ `packages/*/src/**/*${ EXTENSION_TS } ` ] ,
257261 ignores : [ '**/*.d.ts' , '**/*.spec.*' , 'packages/mui-joy/**/*' ] ,
258262 rules : {
259- 'material-ui/mui -name-matches-component-name' : 'error' ,
263+ 'mui/ material-ui-name-matches-component-name' : 'error' ,
260264 } ,
261265 } ,
262266 {
0 commit comments