diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2019-03-10 04:30:38 +1100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-03-09 12:30:38 -0500 |
commit | 034e2cc02829c9244b32232074c7a48af827a2fb (patch) | |
tree | bade01606a1ee076c1f753ce99c97ddb1e4edf30 /js/libdeno.ts | |
parent | 8c7a12d1b258f0ef5ab27f49c424331d43e8d97f (diff) |
Migrate from tslint to eslint for linting (#1905)
Diffstat (limited to 'js/libdeno.ts')
-rw-r--r-- | js/libdeno.ts | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/js/libdeno.ts b/js/libdeno.ts index ee43413f3..33e9e4f5f 100644 --- a/js/libdeno.ts +++ b/js/libdeno.ts @@ -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; } |