diff options
author | Vendicated <vendicated@riseup.net> | 2022-11-07 23:34:14 +0100 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-11-07 23:34:14 +0100 |
commit | f7d9be91407582fd85a70eef89c03a32e37c3c0f (patch) | |
tree | 6522f99d70491aa7f495c287a53fc02c736517ac /src/plugins/spotifyControls | |
parent | 955573d31bd1be435b95ddcc24971b47daf02c0b (diff) | |
download | Vencord-f7d9be91407582fd85a70eef89c03a32e37c3c0f.tar.gz Vencord-f7d9be91407582fd85a70eef89c03a32e37c3c0f.tar.bz2 Vencord-f7d9be91407582fd85a70eef89c03a32e37c3c0f.zip |
lint: Disallow utils index imports
This keeps leading to issues due to circular imports.
Import from specific files instead, index just reexports
Diffstat (limited to 'src/plugins/spotifyControls')
-rw-r--r-- | src/plugins/spotifyControls/PlayerComponent.tsx | 3 | ||||
-rw-r--r-- | src/plugins/spotifyControls/SpotifyStore.ts | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/spotifyControls/PlayerComponent.tsx b/src/plugins/spotifyControls/PlayerComponent.tsx index 0e03121..15a7ef9 100644 --- a/src/plugins/spotifyControls/PlayerComponent.tsx +++ b/src/plugins/spotifyControls/PlayerComponent.tsx @@ -18,7 +18,8 @@ import ErrorBoundary from "../../components/ErrorBoundary"; import { Flex } from "../../components/Flex"; -import { classes, debounce, LazyComponent, lazyWebpack } from "../../utils"; +import { debounce } from "../../utils/debounce"; +import { classes, LazyComponent, lazyWebpack } from "../../utils/misc"; import { ContextMenu, FluxDispatcher, Forms, Menu, React, Tooltip } from "../../webpack/common"; import { filters, find } from "../../webpack/webpack"; import { SpotifyStore, Track } from "./SpotifyStore"; diff --git a/src/plugins/spotifyControls/SpotifyStore.ts b/src/plugins/spotifyControls/SpotifyStore.ts index d7d52bc..0dad503 100644 --- a/src/plugins/spotifyControls/SpotifyStore.ts +++ b/src/plugins/spotifyControls/SpotifyStore.ts @@ -18,7 +18,9 @@ import cssText from "~fileContent/styles.css"; -import { IpcEvents, lazyWebpack, proxyLazy } from "../../utils"; +import IpcEvents from "../../utils/IpcEvents"; +import { lazyWebpack } from "../../utils/misc"; +import { proxyLazy } from "../../utils/proxyLazy"; import { filters } from "../../webpack"; import { Flux, FluxDispatcher } from "../../webpack/common"; |