mirror of
https://github.com/denoland/deno.git
synced 2025-09-29 05:34:49 +00:00
Migrate from tslint to eslint for linting (#1905)
This commit is contained in:
parent
8c7a12d1b2
commit
034e2cc028
90 changed files with 1041 additions and 1104 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue