diff --git a/src/main/resources/generator/client/angular/core/eslint.config.mjs.mustache b/src/main/resources/generator/client/angular/core/eslint.config.mjs.mustache index edf40964fcc..f7a0f731435 100644 --- a/src/main/resources/generator/client/angular/core/eslint.config.mjs.mustache +++ b/src/main/resources/generator/client/angular/core/eslint.config.mjs.mustache @@ -59,7 +59,6 @@ export default tseslint.config( '@typescript-eslint/no-non-null-assertion': 'off', '@typescript-eslint/no-unsafe-member-access': 'off', '@typescript-eslint/no-unsafe-argument': 'off', - '@typescript-eslint/use-unknown-in-catch-callback-variable': 'off', '@typescript-eslint/no-unsafe-call': 'off', '@typescript-eslint/restrict-template-expressions': ['error', { allowNumber: true }], }, diff --git a/src/main/resources/generator/client/angular/core/src/main/webapp/main.ts.mustache b/src/main/resources/generator/client/angular/core/src/main/webapp/main.ts.mustache index 5b0d17d36eb..e3354f70bb1 100644 --- a/src/main/resources/generator/client/angular/core/src/main/webapp/main.ts.mustache +++ b/src/main/resources/generator/client/angular/core/src/main/webapp/main.ts.mustache @@ -20,4 +20,4 @@ bootstrapApplication(AppComponent, { importProvidersFrom([BrowserAnimationsModule]), { provide: REMOVE_STYLES_ON_COMPONENT_DESTROY, useValue: true }, ], -}).catch(err => console.error(err)); +}).catch((err: unknown) => console.error(err)); diff --git a/src/main/resources/generator/client/angular/security/oauth2/src/main/webapp/app/auth/oauth2-auth.service.ts.mustache b/src/main/resources/generator/client/angular/security/oauth2/src/main/webapp/app/auth/oauth2-auth.service.ts.mustache index 0d9c1c66b24..e0c045ac740 100644 --- a/src/main/resources/generator/client/angular/security/oauth2/src/main/webapp/app/auth/oauth2-auth.service.ts.mustache +++ b/src/main/resources/generator/client/angular/security/oauth2/src/main/webapp/app/auth/oauth2-auth.service.ts.mustache @@ -54,6 +54,6 @@ export class Oauth2AuthService { console.debug(`Token not refreshed, valid for ${Math.round(exp + timeSkew - Date.now() / 1000)} seconds`); } }) - .catch(e => console.error(`Failed to refresh token: ${e}`)); + .catch((e: unknown) => console.error(`Failed to refresh token: ${e}`)); } } diff --git a/src/test/resources/projects/angular/main.ts b/src/test/resources/projects/angular/main.ts index 1e8e0d09095..8c90f30397c 100644 --- a/src/test/resources/projects/angular/main.ts +++ b/src/test/resources/projects/angular/main.ts @@ -20,4 +20,4 @@ bootstrapApplication(AppComponent, { importProvidersFrom([BrowserAnimationsModule]), { provide: REMOVE_STYLES_ON_COMPONENT_DESTROY, useValue: true }, ], -}).catch(err => console.error(err)); +}).catch((err: unknown) => console.error(err));