From e9ed990c111703fb17e8dcd987e0891fad00938e Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 28 Oct 2022 16:06:35 +0300 Subject: Tweak `eslint` configuration --- vnext/src/App.js | 3 +++ vnext/src/ui/Feeds.js | 12 ++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) (limited to 'vnext/src') diff --git a/vnext/src/App.js b/vnext/src/App.js index 79fde2d1..c542dec5 100644 --- a/vnext/src/App.js +++ b/vnext/src/App.js @@ -24,6 +24,9 @@ const elClassHidden = 'header--hidden'; const elClassTop = 'content--top'; +/** + * + */ export default function App({ footer }) { let contentRef = useRef(null); diff --git a/vnext/src/ui/Feeds.js b/vnext/src/ui/Feeds.js index c9199fa6..84319c28 100644 --- a/vnext/src/ui/Feeds.js +++ b/vnext/src/ui/Feeds.js @@ -1,4 +1,4 @@ -import { useState, useEffect, useLayoutEffect } from 'react'; +import { useState, useEffect } from 'react'; import { Link, useLocation, useParams, Navigate } from 'react-router-dom'; import qs from 'qs'; @@ -12,14 +12,14 @@ import UserInfo from './UserInfo'; import { getMessages } from '../api'; /** - * @typedef {Object} Query + * @typedef {object} Query * @property {string} baseUrl - * @property {Object=} search + * @property {object=} search * @property {string} pageParam */ /** - * @typedef {Object} PageProps + * @typedef {object} PageProps * @property {string=} search * @property {import('../api').SecureUser} visitor * @property {import('../api').Message[]=} msgs @@ -120,7 +120,7 @@ export function Home({ visitor }) { } /** - * @typedef {Object} FeedState + * @typedef {object} FeedState * @property { import('../api').SecureUser } visitor * @property { import('../api').Message[]= } msgs * @property { Query} query @@ -168,7 +168,7 @@ function Feed({ visitor, query }) { }; }); setLoading(false); - }).catch(ex => { + }).catch(() => { setState((prevState) => { return { ...prevState, -- cgit v1.2.3