diff --git a/.eslintrc.json b/.eslintrc.json index 75d9e49..4297cdd 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,4 +1,11 @@ { + "settings": { + "import/resolver": { + "node": { + "extensions": [".js", ".jsx", ".ts", ".tsx"] + } + } + }, "env": { "es6": true, "node": true @@ -19,6 +26,12 @@ "@typescript-eslint" ], "rules": { - "linebreak-style": "off" + "linebreak-style": "off", + "no-unused-vars": "off", + "max-len": "off", + "import/no-dynamic-require": "off", + "global-require": "off", + "class-methods-use-this":"off", + "no-restricted-syntax": "off" } } \ No newline at end of file diff --git a/src/Client.ts b/src/Client.ts index ff33815..7cdf0ff 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -1,12 +1,14 @@ +/* eslint-disable no-console */ + import Eris from 'eris'; import mongoose from 'mongoose'; import fs from 'fs-extra'; import path from 'path'; import config from './config.json'; -import Account, { AccountInterface } from './models/Account.js'; -import Moderation, { ModerationInterface } from './models/Moderation.js'; -import emojis from './stores/emojis.js'; -import Util from './Util.js'; +import Account, { AccountInterface } from './models/Account'; +import Moderation, { ModerationInterface } from './models/Moderation'; +import emojis from './stores/emojis'; +import Util from './Util'; import Command from './class/Command'; diff --git a/src/class/Command.ts b/src/class/Command.ts index 8447594..52a46a3 100644 --- a/src/class/Command.ts +++ b/src/class/Command.ts @@ -18,7 +18,7 @@ export default class Command { guildOnly?: boolean - public run(message: Message, args: string[]) {} + public run(message: Message, args: string[]) {} // eslint-disable-line constructor(client: Client) { this.name = 'None'; diff --git a/src/commands/help.ts b/src/commands/help.ts index 302578d..ed70dc7 100644 --- a/src/commands/help.ts +++ b/src/commands/help.ts @@ -1 +1 @@ -import { Message } from 'eris' \ No newline at end of file +import { Message } from 'eris'; diff --git a/src/events/messageCreate.ts b/src/events/messageCreate.ts index 190f762..c6ff516 100644 --- a/src/events/messageCreate.ts +++ b/src/events/messageCreate.ts @@ -10,6 +10,7 @@ export default class { constructor(client: Client) { this.client = client; } + util: Util = new Util(this.client) async run(message: Message) {