forked from engineering/cloudservices
More linting config fixes
parent
529147f925
commit
e872f08815
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -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';
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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';
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
import { Message } from 'eris'
|
import { Message } from 'eris';
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue