mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
ESLint/TypeScript: enforce no-implicit-any-catch
TypeScript try/catch and RxJs catchError are not type-safe. https://typescript-eslint.io/rules/no-implicit-any-catch/ https://devblogs.microsoft.com/typescript/announcing-typescript-4-0/#unknown-on-catch https://github.com/cartant/eslint-plugin-rxjs/blob/main/docs/rules/no-implicit-any-catch.md
This commit is contained in:
@@ -239,7 +239,6 @@
|
||||
"method"
|
||||
],
|
||||
|
||||
"rxjs/no-implicit-any-catch": "off", // todo: investigate how best to solve these
|
||||
"rxjs/no-nested-subscribe": "off" // todo: go over _all_ cases
|
||||
}
|
||||
},
|
||||
|
@@ -40,7 +40,8 @@
|
||||
"node",
|
||||
"jasmine"
|
||||
],
|
||||
"useDefineForClassFields": false
|
||||
"useDefineForClassFields": false,
|
||||
"useUnknownInCatchVariables": true
|
||||
},
|
||||
"angularCompilerOptions": {
|
||||
"fullTemplateTypeCheck": true,
|
||||
|
Reference in New Issue
Block a user