@@ -10,11 +10,6 @@ const angularPattern = /^\[((?:[$a-zA-Z0-9]+:)?(?:[$a-zA-Z0-9]+))\] (.*?)\n?(\S+
1010 * Provides an $exceptionHandler for AngularJS
1111 */
1212export class Angular implements Integration {
13- /**
14- * @inheritDoc
15- */
16- public name : string = Angular . id ;
17-
1813 /**
1914 * @inheritDoc
2015 */
@@ -25,9 +20,15 @@ export class Angular implements Integration {
2520 */
2621 public static moduleName : string = 'ngSentry' ;
2722
23+ /**
24+ * @inheritDoc
25+ */
26+ public name : string = Angular . id ;
27+
2828 /**
2929 * Angular's instance
3030 */
31+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3132 private readonly _angular : any ;
3233
3334 /**
@@ -38,8 +39,9 @@ export class Angular implements Integration {
3839 /**
3940 * @inheritDoc
4041 */
42+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4143 public constructor ( options : { angular ?: any } = { } ) {
42- // tslint: disable-next-line: no-unsafe -any
44+ // eslint- disable-next-line @typescript-eslint/ no-explicit -any
4345 this . _angular = options . angular || getGlobalObject < any > ( ) . angular ;
4446 }
4547
@@ -57,7 +59,8 @@ export class Angular implements Integration {
5759 // tslint:disable: no-unsafe-any
5860 this . _angular . module ( Angular . moduleName , [ ] ) . config ( [
5961 '$provide' ,
60- ( $provide : any ) => {
62+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
63+ ( $provide : any ) : void => {
6164 $provide . decorator ( '$exceptionHandler' , [ '$delegate' , this . _$exceptionHandlerDecorator . bind ( this ) ] ) ;
6265 } ,
6366 ] ) ;
@@ -67,9 +70,9 @@ export class Angular implements Integration {
6770 /**
6871 * Angular's exceptionHandler for Sentry integration
6972 */
70- // tslint: disable-next-line: no-unsafe -any
73+ // eslint- disable-next-line @typescript-eslint/ no-explicit -any
7174 private _$exceptionHandlerDecorator ( $delegate : any ) : any {
72- return ( exception : Error , cause ?: string ) => {
75+ return ( exception : Error , cause ?: string ) : void => {
7376 const hub = this . _getCurrentHub && this . _getCurrentHub ( ) ;
7477
7578 if ( hub && hub . getIntegration ( Angular ) ) {
0 commit comments