Skip to content

Commit

Permalink
Angular/ESLint: activate use-unknown-in-catch-callback-variable rule
Browse files Browse the repository at this point in the history
  • Loading branch information
qmonmert committed Nov 3, 2024
1 parent f936eef commit ef3d72a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));
2 changes: 1 addition & 1 deletion src/test/resources/projects/angular/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));

0 comments on commit ef3d72a

Please sign in to comment.