From d5ad51d0e9d193420626db032149f36d0ef2f9c3 Mon Sep 17 00:00:00 2001 From: jacoobes Date: Sun, 13 Feb 2022 22:37:38 -0600 Subject: [PATCH] eslint require semis! --- .eslintrc | 3 ++- src/handler/sern.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.eslintrc b/.eslintrc index 6598da8..3dac692 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,6 +4,7 @@ "parserOptions": { "ecmaVersion": "esnext", "sourceType": "" }, "rules": { "@typescript-eslint/no-non-null-assertion": "off", - "quotes": [2, "single", { "avoidEscape": true, "allowTemplateLiterals" : true }] + "quotes": [2, "single", { "avoidEscape": true, "allowTemplateLiterals" : true }], + "semi" : ["error", "always"] } } \ No newline at end of file diff --git a/src/handler/sern.ts b/src/handler/sern.ts index 028a8fa..b1f714c 100644 --- a/src/handler/sern.ts +++ b/src/handler/sern.ts @@ -16,7 +16,7 @@ import type { Message } from 'discord.js'; -import { Ok, Result, None, Some, Option } from 'ts-results'; +import { Ok, Result, None, Some } from 'ts-results'; import { isBot, hasPrefix, fmt } from './utilities/messageHelpers'; /** @@ -154,6 +154,7 @@ export class Handler { } case 'public': { // Creating global commands + // TODO : warn user they will be creating a public command await this.client.application!.commands .create({ name: cmdName,