diff --git a/packages/sdks/angular-sdk/.eslintrc.json b/packages/sdks/angular-sdk/.eslintrc.json index d15e3a8d9..3eba10fd1 100644 --- a/packages/sdks/angular-sdk/.eslintrc.json +++ b/packages/sdks/angular-sdk/.eslintrc.json @@ -11,6 +11,7 @@ "plugin:@angular-eslint/template/process-inline-templates" ], "rules": { + "no-console": 2, "@angular-eslint/directive-selector": [ "error", { diff --git a/packages/sdks/angular-sdk/projects/angular-sdk/src/lib/descope-auth.module.ts b/packages/sdks/angular-sdk/projects/angular-sdk/src/lib/descope-auth.module.ts index e7096a87c..aa643e89f 100644 --- a/packages/sdks/angular-sdk/projects/angular-sdk/src/lib/descope-auth.module.ts +++ b/packages/sdks/angular-sdk/projects/angular-sdk/src/lib/descope-auth.module.ts @@ -47,9 +47,8 @@ import { DescopeAuthConfig } from './types/types'; export class DescopeAuthModule { constructor(@Optional() @SkipSelf() parentModule?: DescopeAuthModule) { if (parentModule) { - throw new Error( - 'DescopeAuthModule is already loaded. Import it only once' - ); + // eslint-disable-next-line no-console + console.log('DescopeAuthModule is loaded in a child module'); } } diff --git a/packages/sdks/angular-sdk/projects/angular-sdk/src/lib/services/descope-auth.service.ts b/packages/sdks/angular-sdk/projects/angular-sdk/src/lib/services/descope-auth.service.ts index 76310bf2d..f9d89bd9d 100644 --- a/packages/sdks/angular-sdk/projects/angular-sdk/src/lib/services/descope-auth.service.ts +++ b/packages/sdks/angular-sdk/projects/angular-sdk/src/lib/services/descope-auth.service.ts @@ -1,3 +1,4 @@ +/* eslint-disable no-console */ // workaround for TS issue https://github.com/microsoft/TypeScript/issues/42873 // eslint-disable-next-line import type * as _1 from '@descope/core-js-sdk'; diff --git a/packages/sdks/angular-sdk/projects/demo-app/src/app/home/home.component.ts b/packages/sdks/angular-sdk/projects/demo-app/src/app/home/home.component.ts index 60c26b12a..c40eb5e83 100644 --- a/packages/sdks/angular-sdk/projects/demo-app/src/app/home/home.component.ts +++ b/packages/sdks/angular-sdk/projects/demo-app/src/app/home/home.component.ts @@ -1,3 +1,4 @@ +/* eslint-disable no-console */ import { Component, OnInit } from '@angular/core'; import { DescopeAuthService } from '../../../../angular-sdk/src/lib/services/descope-auth.service'; import { Router } from '@angular/router'; diff --git a/packages/sdks/angular-sdk/projects/demo-app/src/app/login/login.component.ts b/packages/sdks/angular-sdk/projects/demo-app/src/app/login/login.component.ts index a972ff9dc..267a32012 100644 --- a/packages/sdks/angular-sdk/projects/demo-app/src/app/login/login.component.ts +++ b/packages/sdks/angular-sdk/projects/demo-app/src/app/login/login.component.ts @@ -1,3 +1,4 @@ +/* eslint-disable no-console */ import { Component } from '@angular/core'; import { environment } from '../../environments/environment'; import { Router } from '@angular/router'; diff --git a/packages/sdks/angular-sdk/projects/demo-app/src/app/my-user-profile/my-user-profile.component.ts b/packages/sdks/angular-sdk/projects/demo-app/src/app/my-user-profile/my-user-profile.component.ts index 1181eb8da..4b706420b 100644 --- a/packages/sdks/angular-sdk/projects/demo-app/src/app/my-user-profile/my-user-profile.component.ts +++ b/packages/sdks/angular-sdk/projects/demo-app/src/app/my-user-profile/my-user-profile.component.ts @@ -1,3 +1,4 @@ +/* eslint-disable no-console */ import { Component } from '@angular/core'; import { environment } from '../../environments/environment'; import { Router } from '@angular/router'; diff --git a/packages/sdks/angular-sdk/projects/demo-app/src/app/protected/protected.component.ts b/packages/sdks/angular-sdk/projects/demo-app/src/app/protected/protected.component.ts index d4d8a5ca0..c330ca085 100644 --- a/packages/sdks/angular-sdk/projects/demo-app/src/app/protected/protected.component.ts +++ b/packages/sdks/angular-sdk/projects/demo-app/src/app/protected/protected.component.ts @@ -1,3 +1,4 @@ +/* eslint-disable no-console */ import { Component } from '@angular/core'; import { Router } from '@angular/router'; import { environment } from '../../environments/environment'; diff --git a/packages/sdks/angular-sdk/projects/demo-app/src/main.ts b/packages/sdks/angular-sdk/projects/demo-app/src/main.ts index 17a5cd4e0..8d6f4caae 100644 --- a/packages/sdks/angular-sdk/projects/demo-app/src/main.ts +++ b/packages/sdks/angular-sdk/projects/demo-app/src/main.ts @@ -1,3 +1,4 @@ +/* eslint-disable no-console */ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { AppModule } from './app/app.module'; diff --git a/packages/sdks/react-sdk/examples/app/ManageAccessKeys.tsx b/packages/sdks/react-sdk/examples/app/ManageAccessKeys.tsx index 18412dead..659785cc9 100644 --- a/packages/sdks/react-sdk/examples/app/ManageAccessKeys.tsx +++ b/packages/sdks/react-sdk/examples/app/ManageAccessKeys.tsx @@ -62,12 +62,12 @@ const ManageAccessKeys = () => {

Manage Access Keys

Manage My Access Keys

);