Migrate from tslint to eslint for linting (#1905)

This commit is contained in:
Kitson Kelly 2019-03-10 04:30:38 +11:00 committed by Ryan Dahl
parent 8c7a12d1b2
commit 034e2cc028
90 changed files with 1041 additions and 1104 deletions

View file

@ -12,7 +12,8 @@ interface EvalErrorInfo {
// The actual thrown entity
// (might be an Error or anything else thrown by the user)
// If isNativeError is true, this is an Error
thrown: any; // tslint:disable-line:no-any
// eslint-disable-next-line @typescript-eslint/no-explicit-any
thrown: any;
}
interface Libdeno {
@ -29,11 +30,9 @@ interface Libdeno {
* Returns an array: [output, errInfo].
* If an error occurs, `output` becomes null and `errInfo` is non-null.
*/
evalContext(
code: string
): [any, EvalErrorInfo | null] /* tslint:disable-line:no-any */;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
evalContext(code: string): [any, EvalErrorInfo | null];
// tslint:disable-next-line:no-any
errorToJSON: (e: Error) => string;
}