From c3d6d703162c651975d60264a0cc9213c24a31ce Mon Sep 17 00:00:00 2001 From: Isaac Date: Mon, 13 Feb 2023 15:07:05 +0000 Subject: [PATCH] style: lint --- scripts/keygen.js | 1 + src/commands/user/create.js | 2 +- src/listeners/client/ready.js | 6 +++--- src/schemas/settings.js | 2 ++ src/stdin/eval.js | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/scripts/keygen.js b/scripts/keygen.js index 08ec5d0..6b19700 100644 --- a/scripts/keygen.js +++ b/scripts/keygen.js @@ -1,3 +1,4 @@ +/* eslint-disable no-console */ const { randomBytes } = require('crypto'); const { short } = require('leeks.js'); diff --git a/src/commands/user/create.js b/src/commands/user/create.js index 5f0470a..4cf06a0 100644 --- a/src/commands/user/create.js +++ b/src/commands/user/create.js @@ -13,7 +13,7 @@ module.exports = class CreateUserCommand extends UserCommand { }); } - async run(interaction) { + async run(/* interaction */) { // TODO: isStaff? // TODO: user->create // select category diff --git a/src/listeners/client/ready.js b/src/listeners/client/ready.js index 97b0a97..a736f20 100644 --- a/src/listeners/client/ready.js +++ b/src/listeners/client/ready.js @@ -121,9 +121,9 @@ module.exports = class extends Listener { // staleSince: Date.now(), // }); - for (const [ticketId, $] of client.tickets.$stale) { - // ⌛ - } + // for (const [ticketId, $] of client.tickets.$stale) { + // // ⌛ + // } }, ms('5m')); } }; diff --git a/src/schemas/settings.js b/src/schemas/settings.js index e1081b7..9b7694f 100644 --- a/src/schemas/settings.js +++ b/src/schemas/settings.js @@ -1,3 +1,5 @@ +// TODO +/* eslint-disable no-undef */ module.exports = joi.object({ archive: joi.boolean().optional(), autoClose: joi.number().min(3_600_000).optional(), diff --git a/src/stdin/eval.js b/src/stdin/eval.js index e9787b6..6a5de5c 100644 --- a/src/stdin/eval.js +++ b/src/stdin/eval.js @@ -12,7 +12,7 @@ module.exports = class extends StdinCommand { const toEval = input.join(' '); try { const res = await eval(toEval); - console.log(res); + console.log(res); // eslint-disable-line no-console return true; } catch (error) { this.client.log.error(error);