eslint: sort imports & exports

This commit is contained in:
Martti Malmi
2024-01-04 19:01:18 +02:00
parent 046d4d97bd
commit 3fe3c7a98d
267 changed files with 1281 additions and 1037 deletions

View File

@ -1,8 +1,9 @@
import { NostrLink, TaggedNostrEvent } from "@snort/system";
import ProfileImage from "@/Components/User/ProfileImage";
import Text from "@/Components/Text/Text";
import { Link } from "react-router-dom";
import NoteTime from "@/Components/Event/NoteTime";
import Text from "@/Components/Text/Text";
import ProfileImage from "@/Components/User/ProfileImage";
export default function ShortNote({ event }: { event: TaggedNostrEvent }) {
// replace newlines with spaces, replace double spaces with single spaces

View File

@ -1,12 +1,14 @@
import { ReactNode } from "react";
import NostrBandApi from "@/External/NostrBand";
import { ErrorOrOffline } from "../ErrorOrOffline";
import { HashTagHeader } from "@/Pages/HashTagsPage";
import { useLocale } from "@/IntlProvider";
import classNames from "classnames";
import { ReactNode } from "react";
import { Link } from "react-router-dom";
import useCachedFetch from "@/Hooks/useCachedFetch";
import PageSpinner from "@/Components/PageSpinner";
import NostrBandApi from "@/External/NostrBand";
import useCachedFetch from "@/Hooks/useCachedFetch";
import { useLocale } from "@/IntlProvider";
import { HashTagHeader } from "@/Pages/HashTagsPage";
import { ErrorOrOffline } from "../ErrorOrOffline";
export default function TrendingHashtags({
title,

View File

@ -1,21 +1,21 @@
import { useState } from "react";
import { removeUndefined } from "@snort/shared";
import { NostrEvent, NostrLink, TaggedNostrEvent } from "@snort/system";
import { useReactions } from "@snort/system-react";
import PageSpinner from "@/Components/PageSpinner";
import Note from "@/Components/Event/Note";
import NostrBandApi from "@/External/NostrBand";
import { ErrorOrOffline } from "@/Components/ErrorOrOffline";
import { useLocale } from "@/IntlProvider";
import useModeration from "@/Hooks/useModeration";
import ShortNote from "@/Components/Trending/ShortNote";
import classNames from "classnames";
import { useState } from "react";
import { ErrorOrOffline } from "@/Components/ErrorOrOffline";
import Note from "@/Components/Event/Note";
import { DisplayAs, DisplayAsSelector } from "@/Components/Feed/DisplayAsSelector";
import ImageGridItem from "@/Components/Feed/ImageGridItem";
import PageSpinner from "@/Components/PageSpinner";
import { SpotlightThreadModal } from "@/Components/Spotlight/SpotlightThreadModal";
import useLogin from "@/Hooks/useLogin";
import ShortNote from "@/Components/Trending/ShortNote";
import NostrBandApi from "@/External/NostrBand";
import useCachedFetch from "@/Hooks/useCachedFetch";
import { removeUndefined } from "@snort/shared";
import useLogin from "@/Hooks/useLogin";
import useModeration from "@/Hooks/useModeration";
import { useLocale } from "@/IntlProvider";
import { System } from "@/system";
export default function TrendingNotes({ count = Infinity, small = false }: { count: number; small: boolean }) {

View File

@ -1,11 +1,13 @@
import { ReactNode } from "react";
import { HexKey } from "@snort/system";
import FollowListBase from "@/Components/User/FollowListBase";
import { ReactNode } from "react";
import PageSpinner from "@/Components/PageSpinner";
import FollowListBase from "@/Components/User/FollowListBase";
import NostrBandApi from "@/External/NostrBand";
import { ErrorOrOffline } from "../ErrorOrOffline";
import useCachedFetch from "@/Hooks/useCachedFetch";
import { ErrorOrOffline } from "../ErrorOrOffline";
export default function TrendingUsers({ title, count = Infinity }: { title?: ReactNode; count?: number }) {
const api = new NostrBandApi();
const trendingProfilesUrl = api.trendingProfilesUrl();