chore: update no-restricted-imports lint rule (#12180)

- prevent importing from the "monolith" lodash module. individual modules are better for tree shaking.
- prevent importing `useTheme` and types from @mui/material/styles. prefer importing from @emotion/react.
This commit is contained in:
Kayla Washburn-Love
2024-02-16 09:54:40 -07:00
committed by GitHub
parent 75870c22ab
commit dbaafc863c
16 changed files with 88 additions and 67 deletions
+1
View File
@@ -1,3 +1,4 @@
// eslint-disable-next-line no-restricted-imports -- we still use `Theme` as a basis for our actual theme, for now.
import type { Theme as MuiTheme } from "@mui/material/styles";
import type * as monaco from "monaco-editor";
import type { NewTheme } from "./experimental";