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/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));