mui-x icon indicating copy to clipboard operation
mui-x copied to clipboard

[core] Refactor ESLint config to disallow root level imports

Open LukasTy opened this issue 1 year ago • 2 comments

Follow-up on https://github.com/mui/mui-x/pull/13120.

  • Add @mui/x-codemod to ESLInt no-restricted-imports rule
  • Fix ESLint no-restricted-imports rule config for @mui/x-date-pickers* packages <-- did not work now
  • Add ESLint no-restricted-imports rule config to disallow root level package imports
    • omit @mui/x-data-grid* and @mui/x-license packages
  • Update imports in demos and other impacted locations
  • Export UseDateRangeFieldProps from @mui/x-date-pickers-pro/models to avoid the need for public root import
  • Export LocalizationProvider from @mui/x-date-pickers-pro/LocalizationProvider to avoid the need for public root import

LukasTy avatar May 14 '24 16:05 LukasTy

Deploy preview: https://deploy-preview-13130--material-ui-x.netlify.app/

Generated by :no_entry_sign: dangerJS against 78e7fe113dd3c0820b26f380bad9a5e58438e858

mui-bot avatar May 14 '24 16:05 mui-bot

It impacts charts docs a lot, hence, I've asked for a review from @alexfauquette and @JCQuintas. 😉

LukasTy avatar May 14 '24 19:05 LukasTy