Setup eslint and enforce rules
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-06-02 22:36:25 -05:00
parent 82e7a1f299
commit 1d5056b753
149 changed files with 6104 additions and 3114 deletions

View File

@@ -14,13 +14,16 @@
*/
export class ErrorWithContext extends Error {
public context: {[key: string]: any} = {}
public originalError?: Error
constructor(
message: string,
context?: {[key: string]: any}
context?: {[key: string]: any},
) {
super(message)
if ( context ) this.context = context
if ( context ) {
this.context = context
}
}
}