Resolve lint issues due to new default rules

We could turn these rules off, but it seems that they indicate some important inconsistencies.

A few cases have been ignored inline because they should be investigated in more detail, which is out of scope for this PR:
- Metadata representation components compare `BrowseByDataType` to a `ResourceType`. Could be related to #2949.
- We assume that dynamic form dates are always represented by strings, but they can also be `Date` or `object` according to the library (see da1742ce05/projects/ng-dynamic-forms/core/src/lib/model/dynamic-date-control.model.ts (L5))
This commit is contained in:
Yury Bondarenko
2024-04-18 10:11:56 +02:00
parent 14a19b2000
commit dc1053e3f9
33 changed files with 64 additions and 42 deletions

View File

@@ -117,6 +117,8 @@ export class MetadataValuesComponent implements OnChanges {
*/
getQueryParams(value) {
const queryParams = { startsWith: value };
// todo: should compare with type instead?
// eslint-disable-next-line @typescript-eslint/no-unsafe-enum-comparison
if (this.browseDefinition.getRenderType() === VALUE_LIST_BROWSE_DEFINITION.value) {
return { value: value };
}