workspace: update eslint config

This commit is contained in:
undefined committed 2021-02-01 12:33:48 +08:00
1 parent 4e4f6688bc
commit 3a3983d38d
29 files changed
+169 -166

No files matched your search

+9 -1
View File
@@ -2,6 +2,7 @@ import type { Readable, Writable } from 'stream';
import type { ObjectID } from 'mongodb';
import type fs from 'fs';
import type { Dictionary, NumericDictionary } from 'lodash';
import type * as Koa from 'koa';
import type { Pdoc } from './model/problem';
type document = typeof import('./model/document');
@@ -159,7 +160,7 @@ export interface SampleContentNode {
payload: [string, string],
}
export type ContentNode = PlainContentNode | TextContentNode | SampleContentNode;
export type Content = string | ContentNode[] | Record<string, ContentNode[]>
export type Content = string | ContentNode[] | Record<string, ContentNode[]>;
declare module './model/problem' {
interface Pdoc {
@@ -589,3 +590,10 @@ declare global {
}
}
}
declare module 'koa' {
interface Request extends Koa.BaseRequest {
body?: any;
files?: import('formidable').Files;
}
}