wip
This commit is contained in:
parent
bbff5b0096
commit
be3226ce47
@ -34,6 +34,8 @@ module.exports = {
|
||||
'no-constant-condition': ['warn'],
|
||||
'no-empty-pattern': ['warn'],
|
||||
'no-async-promise-executor': ['off'],
|
||||
'no-useless-escape': ['off'],
|
||||
'no-multi-spaces': ['warn'],
|
||||
'@typescript-eslint/no-inferrable-types': ['warn'],
|
||||
'@typescript-eslint/no-empty-function': ['off'],
|
||||
'@typescript-eslint/no-non-null-assertion': ['off'],
|
||||
|
@ -26,7 +26,7 @@
|
||||
"watch-gulp": "gulp watch",
|
||||
"clean": "gulp clean",
|
||||
"cleanall": "gulp cleanall",
|
||||
"lint": "eslint src/**/*.ts",
|
||||
"lint": "eslint --quiet src/**/*.ts",
|
||||
"cy:open": "cypress open",
|
||||
"cy:run": "cypress run",
|
||||
"e2e": "start-server-and-test start:test http://localhost cy:run",
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { Context } from 'cafy';
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||
export class ID<Maybe = string> extends Context<string | (Maybe extends {} ? string : Maybe)> {
|
||||
public readonly name = 'ID';
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { stringify } from 'querystring';
|
||||
|
||||
export function query(obj: {}): string {
|
||||
export function query(obj: Record<string, unknown>): string {
|
||||
return stringify(Object.entries(obj)
|
||||
.filter(([, v]) => Array.isArray(v) ? v.length : v !== undefined)
|
||||
.reduce((a, [k, v]) => (a[k] = v, a), {} as Record<string, any>));
|
||||
|
@ -7,7 +7,8 @@ import { MoreThan, Not, IsNull } from 'typeorm';
|
||||
|
||||
const logger = queueLogger.createSubLogger('clean-remote-files');
|
||||
|
||||
export default async function cleanRemoteFiles(job: Bull.Job<{}>, done: any): Promise<void> {
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default async function cleanRemoteFiles(job: Bull.Job<Record<string, unknown>>, done: () => void): Promise<void> {
|
||||
logger.info(`Deleting cached remote files...`);
|
||||
|
||||
let deletedCount = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user