|
17 | 17 | "useSemanticElements": "off", |
18 | 18 | "noStaticElementInteractions": "off" |
19 | 19 | }, |
20 | | - "correctness": { |
21 | | - "noUnusedImports": "warn", |
| 20 | + "correctness": { |
| 21 | + "noUnusedImports": "warn", |
22 | 22 | "useUniqueElementIds": "off", // TODO: This is new but we want to fix it |
23 | 23 | "noNestedComponentDefinitions": "off", // TODO: Investigate, since it is used by shadcn components |
24 | | - "noUnusedVariables": { |
25 | | - "level": "warn", |
| 24 | + "noUnusedVariables": { |
| 25 | + "level": "warn", |
26 | 26 | "options": { |
27 | 27 | "ignoreRestSiblings": true |
28 | 28 | } |
|
40 | 40 | "useNumberNamespace": "error", |
41 | 41 | "noInferrableTypes": "error", |
42 | 42 | "noUselessElse": "error", |
43 | | - "noRestrictedImports": { |
44 | | - "level": "error", |
| 43 | + "noRestrictedImports": { |
| 44 | + "level": "error", |
45 | 45 | "options": { |
46 | 46 | "paths": { |
47 | | - "@mui/material": "Use @mui/material/<name> instead. See: https://material-ui.com/guides/minimizing-bundle-size/.", |
| 47 | + // "@mui/material/Alert": "Use components/Alert/Alert instead.", |
| 48 | + // "@mui/material/AlertTitle": "Use components/Alert/Alert instead.", |
| 49 | + // "@mui/material/Autocomplete": "Use shadcn/ui Combobox instead.", |
48 | 50 | "@mui/material/Avatar": "Use components/Avatar/Avatar instead.", |
49 | | - "@mui/material/Alert": "Use components/Alert/Alert instead.", |
| 51 | + "@mui/material/Box": "Use a <div> with Tailwind classes instead.", |
| 52 | + "@mui/material/Button": "Use components/Button/Button instead.", |
| 53 | + // "@mui/material/Card": "Use shadcn/ui Card component instead.", |
| 54 | + // "@mui/material/CardActionArea": "Use shadcn/ui Card component instead.", |
| 55 | + // "@mui/material/CardContent": "Use shadcn/ui Card component instead.", |
| 56 | + // "@mui/material/Checkbox": "Use shadcn/ui Checkbox component instead.", |
| 57 | + // "@mui/material/Chip": "Use components/Badge or Tailwind styles instead.", |
| 58 | + // "@mui/material/CircularProgress": "Use components/Spinner/Spinner instead.", |
| 59 | + // "@mui/material/Collapse": "Use shadcn/ui Collapsible instead.", |
| 60 | + // "@mui/material/CssBaseline": "Use Tailwind CSS base styles instead.", |
| 61 | + // "@mui/material/Dialog": "Use shadcn/ui Dialog component instead.", |
| 62 | + // "@mui/material/DialogActions": "Use shadcn/ui Dialog component instead.", |
| 63 | + // "@mui/material/DialogContent": "Use shadcn/ui Dialog component instead.", |
| 64 | + // "@mui/material/DialogContentText": "Use shadcn/ui Dialog component instead.", |
| 65 | + // "@mui/material/DialogTitle": "Use shadcn/ui Dialog component instead.", |
| 66 | + // "@mui/material/Divider": "Use shadcn/ui Separator or <hr> with Tailwind instead.", |
| 67 | + // "@mui/material/Drawer": "Use shadcn/ui Sheet component instead.", |
| 68 | + // "@mui/material/FormControl": "Use native form elements with Tailwind instead.", |
| 69 | + // "@mui/material/FormControlLabel": "Use shadcn/ui Label with form components instead.", |
| 70 | + // "@mui/material/FormGroup": "Use a <div> with Tailwind classes instead.", |
| 71 | + // "@mui/material/FormHelperText": "Use a <p> with Tailwind classes instead.", |
| 72 | + // "@mui/material/FormLabel": "Use shadcn/ui Label component instead.", |
| 73 | + // "@mui/material/Grid": "Use Tailwind grid utilities instead.", |
| 74 | + // "@mui/material/IconButton": "Use components/Button/Button with variant='icon' instead.", |
| 75 | + // "@mui/material/InputAdornment": "Use Tailwind positioning in input wrapper instead.", |
| 76 | + // "@mui/material/InputBase": "Use shadcn/ui Input component instead.", |
| 77 | + // "@mui/material/LinearProgress": "Use a progress bar with Tailwind instead.", |
| 78 | + // "@mui/material/Link": "Use React Router Link or native <a> tags instead.", |
| 79 | + // "@mui/material/List": "Use native <ul> with Tailwind instead.", |
| 80 | + // "@mui/material/ListItem": "Use native <li> with Tailwind instead.", |
| 81 | + // "@mui/material/ListItemIcon": "Use lucide-react icons in list items instead.", |
| 82 | + // "@mui/material/ListItemText": "Use native elements with Tailwind instead.", |
| 83 | + // "@mui/material/Menu": "Use shadcn/ui DropdownMenu instead.", |
| 84 | + // "@mui/material/MenuItem": "Use shadcn/ui DropdownMenu components instead.", |
| 85 | + // "@mui/material/MenuList": "Use shadcn/ui DropdownMenu components instead.", |
| 86 | + // "@mui/material/Paper": "Use a <div> with Tailwind shadow/border classes instead.", |
50 | 87 | "@mui/material/Popover": "Use components/Popover/Popover instead.", |
| 88 | + // "@mui/material/Radio": "Use shadcn/ui RadioGroup instead.", |
| 89 | + // "@mui/material/RadioGroup": "Use shadcn/ui RadioGroup instead.", |
| 90 | + // "@mui/material/Select": "Use shadcn/ui Select component instead.", |
| 91 | + // "@mui/material/Skeleton": "Use shadcn/ui Skeleton component instead.", |
| 92 | + // "@mui/material/Snackbar": "Use components/GlobalSnackbar instead.", |
| 93 | + // "@mui/material/Stack": "Use Tailwind flex utilities instead (e.g., <div className='flex flex-col gap-4'>).", |
| 94 | + // "@mui/material/styles": "Use Tailwind CSS instead.", |
| 95 | + // "@mui/material/SvgIcon": "Use lucide-react icons instead.", |
| 96 | + // "@mui/material/Switch": "Use shadcn/ui Switch component instead.", |
| 97 | + "@mui/material/Table": "Import from components/Table/Table instead.", |
| 98 | + // "@mui/material/TableRow": "Import from components/Table/Table instead.", |
| 99 | + // "@mui/material/TextField": "Use shadcn/ui Input component instead.", |
| 100 | + // "@mui/material/ToggleButton": "Use shadcn/ui Toggle or custom component instead.", |
| 101 | + // "@mui/material/ToggleButtonGroup": "Use shadcn/ui Toggle or custom component instead.", |
| 102 | + // "@mui/material/Tooltip": "Use shadcn/ui Tooltip component instead.", |
51 | 103 | "@mui/material/Typography": "Use native HTML elements instead. Eg: <span>, <p>, <h1>, etc.", |
52 | | - "@mui/material/Box": "Use a <div> instead.", |
53 | | - "@mui/material/Button": "Use a components/Button/Button instead.", |
54 | | - "@mui/material/styles": "Import from @emotion/react instead.", |
55 | | - "@mui/material/Table*": "Import from components/Table/Table instead.", |
| 104 | + // "@mui/material/useMediaQuery": "Use Tailwind responsive classes or custom hook instead.", |
| 105 | + // "@mui/system": "Use Tailwind CSS instead.", |
| 106 | + // "@mui/utils": "Use native alternatives or utility libraries instead.", |
| 107 | + // "@mui/x-tree-view": "Use a Tailwind-compatible alternative.", |
| 108 | + // "@emotion/css": "Use Tailwind CSS instead.", |
| 109 | + // "@emotion/react": "Use Tailwind CSS instead.", |
| 110 | + "@emotion/styled": "Use Tailwind CSS instead.", |
| 111 | + // "@emotion/cache": "Use Tailwind CSS instead.", |
| 112 | + // "components/Stack/Stack": "Use Tailwind flex utilities instead (e.g., <div className='flex flex-col gap-4'>).", |
56 | 113 | "lodash": "Use lodash/<name> instead." |
57 | 114 | } |
58 | 115 | } |
|
0 commit comments