mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user