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": { "env": {
"es6": true, "es6": true,
"node": true "node": true
@ -19,6 +26,12 @@
"@typescript-eslint" "@typescript-eslint"
], ],
"rules": { "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 Eris from 'eris';
import mongoose from 'mongoose'; import mongoose from 'mongoose';
import fs from 'fs-extra'; import fs from 'fs-extra';
import path from 'path'; import path from 'path';
import config from './config.json'; import config from './config.json';
import Account, { AccountInterface } from './models/Account.js'; import Account, { AccountInterface } from './models/Account';
import Moderation, { ModerationInterface } from './models/Moderation.js'; import Moderation, { ModerationInterface } from './models/Moderation';
import emojis from './stores/emojis.js'; import emojis from './stores/emojis';
import Util from './Util.js'; import Util from './Util';
import Command from './class/Command'; import Command from './class/Command';

View File

@ -18,7 +18,7 @@ export default class Command {
guildOnly?: boolean guildOnly?: boolean
public run(message: Message, args: string[]) {} public run(message: Message, args: string[]) {} // eslint-disable-line
constructor(client: Client) { constructor(client: Client) {
this.name = 'None'; 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) { constructor(client: Client) {
this.client = client; this.client = client;
} }
util: Util = new Util(this.client) util: Util = new Util(this.client)
async run(message: Message) { async run(message: Message) {