fix: update eslint to respect typescript and run eslint fix

This commit is contained in:
Marius Begby committed 2023-08-26 23:01:12 +02:00
1 parent 9125e4a5da
commit 1a7f800ba2
15 files changed
+325 -77

No files matched your search

+5 -5
View File
@@ -16,8 +16,8 @@ exports.postBotStats = async ({ client, executionId }) => {
let guildCount = 0;
let memberCount = 0;
let shardCount = client.shard.count;
let shardId = client.shard.ids[0];
const shardCount = client.shard.count;
const shardId = client.shard.ids[0];
logger.debug('Gathering data about guild and member count from shards...');
await client.shard
@@ -119,14 +119,14 @@ exports.postBotStats = async ({ client, executionId }) => {
logger.info(`Starting to post bot stats with guild count ${guildCount} and member count ${memberCount}...`);
let statusCodes = [];
const statusCodes = [];
sites.map((site) => {
if (site.disabled) {
return;
}
let options = {
const options = {
protocol: 'https:',
hostname: site.hostname,
port: 443,
@@ -138,7 +138,7 @@ exports.postBotStats = async ({ client, executionId }) => {
}
};
let request = https.request(options, (res) => {
const request = https.request(options, (res) => {
res.statusCode === 200
? logger.debug(`Request to ${site.hostname}: statusCode: ${res.statusCode}`)
: logger.warn(`Request to ${site.hostname}: statusCode: ${res.statusCode}`);
+1 -1
View File
@@ -10,7 +10,7 @@ exports.getUptimeFormatted = async ({ executionId }) => {
let uptimeFormattedString = '';
const uptimeInSeconds = process.uptime();
let uptimeDate = new Date(0);
const uptimeDate = new Date(0);
uptimeDate.setSeconds(uptimeInSeconds.toFixed(0));
uptimeFormattedString = `${
uptimeDate.getUTCDate() - 1