Open oliviertassinari opened 2 years ago
I've been looking for this for some time. Could MUI just swallow the existing plugins currently available so it can be maintained by the core team and have greater recognition from the community so we can help support as well:
Other rules ideas:
styled
is called within a component.@mui/utils
or @mui/x-data-grid/internal
)
Summary 💡
This issue is mostly here as an opportunity to evaluate the opposite to have a linter for Material UI, Base UI, Pigment CSS, etc. This linter would very likely be implemented with eslint.
Examples 🌈
Motivation 🔦
Ideas:
When using the unitless API, error with all non-integer or half-integer usage:
sx:Â { p: 1.4, m: 1.6Â }
Warn when using an invalid import path, e.g. breaking https://mui.com/material-ui/guides/minimizing-bundle-size/
styled(Box)
should really bestyled('div')
Providing render functions to slots, this is wrong:
Explored with a warning in #14748 but has false-positive, false-negative.