aboutsummaryrefslogtreecommitdiff
path: root/vnext
diff options
context:
space:
mode:
Diffstat (limited to 'vnext')
-rw-r--r--vnext/.eslintrc3
-rw-r--r--vnext/src/App.js3
-rw-r--r--vnext/src/ui/Feeds.js12
3 files changed, 12 insertions, 6 deletions
diff --git a/vnext/.eslintrc b/vnext/.eslintrc
index 639eb60a..30cc2392 100644
--- a/vnext/.eslintrc
+++ b/vnext/.eslintrc
@@ -41,6 +41,9 @@
],
"rules": {
"quotes": ["error", "single"],
+ "no-cond-assign": "warn",
+ "no-unused-vars": "warn",
+ "no-useless-escape": "warn",
"only-ascii/only-ascii": ["warn", { "allowedChars": "✓←→♡ ·—©" }],
"react/prop-types": "off",
"testing-library/no-node-access": "off",
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,