mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-19 11:27:02 -04:00
lint: Disallow utils index imports
This keeps leading to issues due to circular imports. Import from specific files instead, index just reexports
This commit is contained in:
parent
955573d31b
commit
f7d9be9140
22 changed files with 217 additions and 30 deletions
|
@ -22,8 +22,8 @@ import { classes, lazyWebpack, useAwaiter } from "../../../utils/misc";
|
|||
import { Settings } from "../../../Vencord";
|
||||
import { filters } from "../../../webpack";
|
||||
import { UserStore } from "../../../webpack/common";
|
||||
import { fetchPronouns, formatPronouns } from "../pronoundbUtils";
|
||||
import { PronounMapping } from "../types";
|
||||
import { fetchPronouns, formatPronouns } from "../utils";
|
||||
|
||||
const styles: Record<string, string> = lazyWebpack(filters.byProps("timestampInline"));
|
||||
|
||||
|
|
|
@ -16,11 +16,11 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { useAwaiter } from "../../../utils";
|
||||
import { useAwaiter } from "../../../utils/misc";
|
||||
import { Settings } from "../../../Vencord";
|
||||
import { UserStore } from "../../../webpack/common";
|
||||
import { fetchPronouns, formatPronouns } from "../pronoundbUtils";
|
||||
import { PronounMapping, UserProfileProps } from "../types";
|
||||
import { fetchPronouns, formatPronouns } from "../utils";
|
||||
|
||||
export default function PronounsProfileWrapper(props: UserProfileProps, pronounsComponent: JSX.Element) {
|
||||
// Don't bother fetching bot or system users
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue