Despite attempting the method below, I am still unable to receive lint support to identify incorrect style properties and values.
import { SxProps, Theme } from "@mui/material";
export const navBarStyles: Record<string, SxProps<Theme> | undefined> = {
notification: {
backgroundColor: 'white',
"&:hover, &.Mui-focusVisible": { backgroundColor: "white" }
},
test: {
colorBlaBlaBla: 'greennnnn'
}
}
In the given example, neither colorBlaBlaBla
nor greennnnn
is triggering any lint warnings in VSCode. While autocomplete suggestions are provided, is there a way to enable linter support for these incorrect values within MUI's sx
prop?
Alternatively, should I explore other methods within MUI to enhance linter support?