mui-x
mui-x copied to clipboard
[core] Refactor ESLint config to disallow root level imports
Follow-up on https://github.com/mui/mui-x/pull/13120.
- Add
@mui/x-codemodto ESLIntno-restricted-importsrule - Fix ESLint
no-restricted-importsrule config for@mui/x-date-pickers*packages <-- did not work now - Add ESLint
no-restricted-importsrule config to disallow root level package imports- omit
@mui/x-data-grid*and@mui/x-licensepackages
- omit
- Update imports in demos and other impacted locations
- Export
UseDateRangeFieldPropsfrom@mui/x-date-pickers-pro/modelsto avoid the need for public root import - Export
LocalizationProviderfrom@mui/x-date-pickers-pro/LocalizationProviderto avoid the need for public root import
Deploy preview: https://deploy-preview-13130--material-ui-x.netlify.app/
Generated by :no_entry_sign: dangerJS against 78e7fe113dd3c0820b26f380bad9a5e58438e858
It impacts charts docs a lot, hence, I've asked for a review from @alexfauquette and @JCQuintas. 😉