1
0
Fork 0

More linting config fixes

refactor/models
Bsian 2019-10-15 19:03:40 +01:00
parent 529147f925
commit e872f08815
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
5 changed files with 23 additions and 7 deletions

View File

@ -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"
}
}

View File

@ -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';

View File

@ -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';

View File

@ -1 +1 @@
import { Message } from 'eris'
import { Message } from 'eris';

View File

@ -10,6 +10,7 @@ export default class {
constructor(client: Client) {
this.client = client;
}
util: Util = new Util(this.client)
async run(message: Message) {