Skip to content

Commit 935689a

Browse files
committed
more lint fixes
1 parent 7e73b32 commit 935689a

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

eslint.config.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ export default [
3333
semi: ['error', 'never'],
3434
quotes: ['error', 'single'],
3535
'no-console': 'error',
36-
'no-unused-vars': 'off'
36+
'no-unused-vars': 'error',
37+
'no-undef': 'error'
3738
},
3839
},
3940
{

src/chat/infinite.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ export async function infiniteMessageArea (dom, wasStore, chatChannel, options)
349349
}
350350
}
351351

352+
// eslint-disable-next-line no-unused-vars
352353
async function scrollForwardButtonHandler (_event) {
353354
if (messageTable.extendedForwards) {
354355
removePreviousMessages(false, messageTable)
@@ -404,9 +405,9 @@ export async function infiniteMessageArea (dom, wasStore, chatChannel, options)
404405
const test = true
405406
if (test) { // ws options.infinite but need for non-infinite
406407
const titleTR = dom.createElement('tr')
407-
const scrollBackbuttonCell = titleTR.appendChild(
408+
/* const scrollBackbuttonCell = titleTR.appendChild(
408409
dom.createElement('td')
409-
)
410+
) */
410411
// up traingles: noun_1369237.svg
411412
// down triangles: noun_1369241.svg
412413
/*

src/chat/thread.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,8 @@ export function thread (dom, kb, subject, messageStore, options) {
259259
return message
260260
}
261261

262-
const _deleteMessage = async function (message) { // alain: must delete message and all linked with isReplacedBy
262+
// eslint-disable-next-line no-unused-vars
263+
async function deleteMessage (message) { // alain: must delete message and all linked with isReplacedBy
263264
// alain: check that me is not the author and ask for confirmation.
264265
const deletions = await store.connectedStatements(message, messageStore)
265266
await updater.updateMany(deletions, [], function (uri, ok, body) {

0 commit comments

Comments
 (0)